From 335a3b0a0d26313537eddfc26db14e33deecc433 Mon Sep 17 00:00:00 2001 From: Arjun Shankar Date: Tue, 25 Sep 2018 15:13:15 +0200 Subject: Clean up iconv/gconv_int.h for unnecessary declarations The variables __gconv_path_elem, __gconv_max_path_elem_len and function __gconv_get_path declared in, as well as the type path_elem and macro GCONV_NCHAR_GOAL defined in gconv_int.h are all used in only one iconv compilation unit each. In addition, the extern declaration of the variable __gconv_nmodules refers to a variable that does not exist any more. Considering this, these symbols do not need to be exposed via a header file. This patch removes the extern declarations from the header file and moves the definitions to the compilation units where they are used. --- iconv/gconv_open.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'iconv/gconv_open.c') diff --git a/iconv/gconv_open.c b/iconv/gconv_open.c index f739561f6e..648ec36b56 100644 --- a/iconv/gconv_open.c +++ b/iconv/gconv_open.c @@ -26,6 +26,10 @@ #include +/* How many character should be converted in one call? */ +#define GCONV_NCHAR_GOAL 8160 + + int __gconv_open (const char *toset, const char *fromset, __gconv_t *handle, int flags) -- cgit 1.4.1