Blame SOURCES/glibc-rh1505492-prototypes-intl.patch

147e83
Introduce prototype-style function definitions in the intl
147e83
subdirectory.  Upstream, this was done as part of a gnulib import:
147e83
147e83
commit 6d248857845aee307440a77062a93b167cd2ac9c
147e83
Author: Will Newton <will.newton@linaro.org>
147e83
Date:   Wed Dec 10 12:03:53 2014 +0000
147e83
147e83
    intl: Merge with gettext version 0.19.3
147e83
147e83
diff --git a/intl/bindtextdom.c b/intl/bindtextdom.c
147e83
index 98a3606db1353957..64c683384e62ce36 100644
147e83
--- a/intl/bindtextdom.c
147e83
+++ b/intl/bindtextdom.c
147e83
@@ -96,10 +96,8 @@ static void set_binding_values PARAMS ((const char *domainname,
147e83
    If DIRNAMEP or CODESETP is NULL, the corresponding attribute is neither
147e83
    modified nor returned.  */
147e83
 static void
147e83
-set_binding_values (domainname, dirnamep, codesetp)
147e83
-     const char *domainname;
147e83
-     const char **dirnamep;
147e83
-     const char **codesetp;
147e83
+set_binding_values (const char *domainname, const char **dirnamep,
147e83
+		    const char **codesetp)
147e83
 {
147e83
   struct binding *binding;
147e83
   int modified;
147e83
@@ -341,9 +339,7 @@ set_binding_values (domainname, dirnamep, codesetp)
147e83
 /* Specify that the DOMAINNAME message catalog will be found
147e83
    in DIRNAME rather than in the system locale data base.  */
147e83
 char *
147e83
-BINDTEXTDOMAIN (domainname, dirname)
147e83
-     const char *domainname;
147e83
-     const char *dirname;
147e83
+BINDTEXTDOMAIN (const char *domainname, const char *dirname)
147e83
 {
147e83
   set_binding_values (domainname, &dirname, NULL);
147e83
   return (char *) dirname;
147e83
@@ -352,9 +348,7 @@ BINDTEXTDOMAIN (domainname, dirname)
147e83
 /* Specify the character encoding in which the messages from the
147e83
    DOMAINNAME message catalog will be returned.  */
147e83
 char *
147e83
-BIND_TEXTDOMAIN_CODESET (domainname, codeset)
147e83
-     const char *domainname;
147e83
-     const char *codeset;
147e83
+BIND_TEXTDOMAIN_CODESET (const char *domainname, const char *codeset)
147e83
 {
147e83
   set_binding_values (domainname, NULL, &codeset);
147e83
   return (char *) codeset;
147e83
diff --git a/intl/dcgettext.c b/intl/dcgettext.c
147e83
index 0f2942be4556ef97..a54c747e346b7599 100644
147e83
--- a/intl/dcgettext.c
147e83
+++ b/intl/dcgettext.c
147e83
@@ -44,10 +44,7 @@
147e83
 /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
147e83
    locale.  */
147e83
 char *
147e83
-DCGETTEXT (domainname, msgid, category)
147e83
-     const char *domainname;
147e83
-     const char *msgid;
147e83
-     int category;
147e83
+DCGETTEXT (const char *domainname, const char *msgid, int category)
147e83
 {
147e83
   return DCIGETTEXT (domainname, msgid, NULL, 0, 0, category);
147e83
 }
147e83
diff --git a/intl/dcigettext.c b/intl/dcigettext.c
147e83
index c005f1b88d2da1a5..02eb8ad10ebd6eb4 100644
147e83
--- a/intl/dcigettext.c
147e83
+++ b/intl/dcigettext.c
147e83
@@ -225,9 +225,7 @@ static void *root;
147e83
 /* Function to compare two entries in the table of known translations.  */
147e83
 static int transcmp PARAMS ((const void *p1, const void *p2));
147e83
 static int
147e83
-transcmp (p1, p2)
147e83
-     const void *p1;
147e83
-     const void *p2;
147e83
+transcmp (const void *p1, const void *p2)
147e83
 {
147e83
   const struct known_translation_t *s1;
147e83
   const struct known_translation_t *s2;
147e83
@@ -407,13 +405,8 @@ static int enable_secure;
147e83
    CATEGORY locale and, if PLURAL is nonzero, search over string
147e83
    depending on the plural form determined by N.  */
147e83
 char *
147e83
-DCIGETTEXT (domainname, msgid1, msgid2, plural, n, category)
147e83
-     const char *domainname;
147e83
-     const char *msgid1;
147e83
-     const char *msgid2;
147e83
-     int plural;
147e83
-     unsigned long int n;
147e83
-     int category;
147e83
+DCIGETTEXT (const char *domainname, const char *msgid1, const char *msgid2,
147e83
+	    int plural, unsigned long int n, int category)
147e83
 {
147e83
 #ifndef HAVE_ALLOCA
147e83
   struct block_list *block_list = NULL;
147e83
@@ -743,12 +736,8 @@ DCIGETTEXT (domainname, msgid1, msgid2, plural, n, category)
147e83
 
147e83
 char *
147e83
 internal_function
147e83
-_nl_find_msg (domain_file, domainbinding, msgid, convert, lengthp)
147e83
-     struct loaded_l10nfile *domain_file;
147e83
-     struct binding *domainbinding;
147e83
-     const char *msgid;
147e83
-     int convert;
147e83
-     size_t *lengthp;
147e83
+_nl_find_msg (struct loaded_l10nfile *domain_file, struct binding *domainbinding,
147e83
+	      const char *msgid, int convert, size_t *lengthp)
147e83
 {
147e83
   struct loaded_domain *domain;
147e83
   nls_uint32 nstrings;
147e83
@@ -1242,11 +1231,8 @@ _nl_find_msg (domain_file, domainbinding, msgid, convert, lengthp)
147e83
 /* Look up a plural variant.  */
147e83
 static char *
147e83
 internal_function
147e83
-plural_lookup (domain, n, translation, translation_len)
147e83
-     struct loaded_l10nfile *domain;
147e83
-     unsigned long int n;
147e83
-     const char *translation;
147e83
-     size_t translation_len;
147e83
+plural_lookup (struct loaded_l10nfile *domain, unsigned long int n,
147e83
+	       const char *translation, size_t translation_len)
147e83
 {
147e83
   struct loaded_domain *domaindata = (struct loaded_domain *) domain->data;
147e83
   unsigned long int index;
147e83
@@ -1283,8 +1269,7 @@ plural_lookup (domain, n, translation, translation_len)
147e83
 /* Return string representation of locale CATEGORY.  */
147e83
 static const char *
147e83
 internal_function
147e83
-category_to_name (category)
147e83
-     int category;
147e83
+category_to_name (int category)
147e83
 {
147e83
   const char *retval;
147e83
 
147e83
@@ -1344,9 +1329,7 @@ category_to_name (category)
147e83
 /* Guess value of current locale from value of the environment variables.  */
147e83
 static const char *
147e83
 internal_function
147e83
-guess_category_value (category, categoryname)
147e83
-     int category;
147e83
-     const char *categoryname;
147e83
+guess_category_value (int category, const char *categoryname)
147e83
 {
147e83
   const char *language;
147e83
   const char *retval;
147e83
@@ -1374,8 +1357,7 @@ guess_category_value (category, categoryname)
147e83
 /* Returns the output charset.  */
147e83
 static const char *
147e83
 internal_function
147e83
-get_output_charset (domainbinding)
147e83
-     struct binding *domainbinding;
147e83
+get_output_charset (struct binding *domainbinding)
147e83
 {
147e83
   /* The output charset should normally be determined by the locale.  But
147e83
      sometimes the locale is not used or not correctly set up, so we provide
147e83
@@ -1433,9 +1415,7 @@ get_output_charset (domainbinding)
147e83
    to be defined.  */
147e83
 #if !_LIBC && !HAVE_STPCPY
147e83
 static char *
147e83
-stpcpy (dest, src)
147e83
-     char *dest;
147e83
-     const char *src;
147e83
+stpcpy (char *dest, const char *src)
147e83
 {
147e83
   while ((*dest++ = *src++) != '\0')
147e83
     /* Do nothing. */ ;
147e83
@@ -1445,10 +1425,7 @@ stpcpy (dest, src)
147e83
 
147e83
 #if !_LIBC && !HAVE_MEMPCPY
147e83
 static void *
147e83
-mempcpy (dest, src, n)
147e83
-     void *dest;
147e83
-     const void *src;
147e83
-     size_t n;
147e83
+mempcpy (void *dest, const void *src, size_t n)
147e83
 {
147e83
   return (void *) ((char *) memcpy (dest, src, n) + n);
147e83
 }
147e83
diff --git a/intl/dcngettext.c b/intl/dcngettext.c
147e83
index b0e2ee8d8cb214ea..1a64fd1f818823c8 100644
147e83
--- a/intl/dcngettext.c
147e83
+++ b/intl/dcngettext.c
147e83
@@ -44,12 +44,8 @@
147e83
 /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
147e83
    locale.  */
147e83
 char *
147e83
-DCNGETTEXT (domainname, msgid1, msgid2, n, category)
147e83
-     const char *domainname;
147e83
-     const char *msgid1;
147e83
-     const char *msgid2;
147e83
-     unsigned long int n;
147e83
-     int category;
147e83
+DCNGETTEXT (const char *domainname, const char *msgid1, const char *msgid2,
147e83
+            unsigned long int n, int category)
147e83
 {
147e83
   return DCIGETTEXT (domainname, msgid1, msgid2, 1, n, category);
147e83
 }
147e83
diff --git a/intl/dgettext.c b/intl/dgettext.c
147e83
index 7718f4e4e021bbfd..eba96b745c0c24c7 100644
147e83
--- a/intl/dgettext.c
147e83
+++ b/intl/dgettext.c
147e83
@@ -46,9 +46,7 @@
147e83
 /* Look up MSGID in the DOMAINNAME message catalog of the current
147e83
    LC_MESSAGES locale.  */
147e83
 char *
147e83
-DGETTEXT (domainname, msgid)
147e83
-     const char *domainname;
147e83
-     const char *msgid;
147e83
+DGETTEXT (const char *domainname, const char *msgid)
147e83
 {
147e83
   return DCGETTEXT (domainname, msgid, LC_MESSAGES);
147e83
 }
147e83
diff --git a/intl/dngettext.c b/intl/dngettext.c
147e83
index 18ff68e94e7b19b3..8b62b1b7d60608b3 100644
147e83
--- a/intl/dngettext.c
147e83
+++ b/intl/dngettext.c
147e83
@@ -46,11 +46,8 @@
147e83
 /* Look up MSGID in the DOMAINNAME message catalog of the current
147e83
    LC_MESSAGES locale and skip message according to the plural form.  */
147e83
 char *
147e83
-DNGETTEXT (domainname, msgid1, msgid2, n)
147e83
-     const char *domainname;
147e83
-     const char *msgid1;
147e83
-     const char *msgid2;
147e83
-     unsigned long int n;
147e83
+DNGETTEXT (const char *domainname, const char *msgid1, const char *msgid2,
147e83
+           unsigned long int n)
147e83
 {
147e83
   return DCNGETTEXT (domainname, msgid1, msgid2, n, LC_MESSAGES);
147e83
 }
147e83
diff --git a/intl/explodename.c b/intl/explodename.c
147e83
index 52506c4c70671a29..679deebfc4a8a628 100644
147e83
--- a/intl/explodename.c
147e83
+++ b/intl/explodename.c
147e83
@@ -40,8 +40,7 @@
147e83
 static char *_nl_find_language PARAMS ((const char *name));
147e83
 
147e83
 static char *
147e83
-_nl_find_language (name)
147e83
-     const char *name;
147e83
+_nl_find_language (const char *name)
147e83
 {
147e83
   while (name[0] != '\0' && name[0] != '_' && name[0] != '@' && name[0] != '.')
147e83
     ++name;
147e83
@@ -51,14 +50,9 @@ _nl_find_language (name)
147e83
 
147e83
 
147e83
 int
147e83
-_nl_explode_name (name, language, modifier, territory, codeset,
147e83
-		  normalized_codeset)
147e83
-     char *name;
147e83
-     const char **language;
147e83
-     const char **modifier;
147e83
-     const char **territory;
147e83
-     const char **codeset;
147e83
-     const char **normalized_codeset;
147e83
+_nl_explode_name (char *name, const char **language, const char **modifier,
147e83
+		  const char **territory, const char **codeset,
147e83
+		  const char **normalized_codeset)
147e83
 {
147e83
   char *cp;
147e83
   int mask;
147e83
diff --git a/intl/finddomain.c b/intl/finddomain.c
147e83
index 4fff9dad5de54dad..6c3b80b26b6fc88f 100644
147e83
--- a/intl/finddomain.c
147e83
+++ b/intl/finddomain.c
147e83
@@ -49,11 +49,8 @@ static struct loaded_l10nfile *_nl_loaded_domains;
147e83
    established bindings.  */
147e83
 struct loaded_l10nfile *
147e83
 internal_function
147e83
-_nl_find_domain (dirname, locale, domainname, domainbinding)
147e83
-     const char *dirname;
147e83
-     char *locale;
147e83
-     const char *domainname;
147e83
-     struct binding *domainbinding;
147e83
+_nl_find_domain (const char *dirname, char *locale, const char *domainname,
147e83
+		 struct binding *domainbinding)
147e83
 {
147e83
   struct loaded_l10nfile *retval;
147e83
   const char *language;
147e83
diff --git a/intl/gettext.c b/intl/gettext.c
147e83
index fbc598407d9a7e3a..028f0e713971b475 100644
147e83
--- a/intl/gettext.c
147e83
+++ b/intl/gettext.c
147e83
@@ -52,8 +52,7 @@
147e83
    LC_MESSAGES locale.  If not found, returns MSGID itself (the default
147e83
    text).  */
147e83
 char *
147e83
-GETTEXT (msgid)
147e83
-     const char *msgid;
147e83
+GETTEXT (const char *msgid)
147e83
 {
147e83
   return DCGETTEXT (NULL, msgid, LC_MESSAGES);
147e83
 }
147e83
diff --git a/intl/hash-string.c b/intl/hash-string.c
147e83
index 1b6cfa01b683a9f2..cf267492cc8d3834 100644
147e83
--- a/intl/hash-string.c
147e83
+++ b/intl/hash-string.c
147e83
@@ -23,8 +23,7 @@
147e83
    [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools,
147e83
    1986, 1987 Bell Telephone Laboratories, Inc.]  */
147e83
 unsigned long int
147e83
-__hash_string (str_param)
147e83
-     const char *str_param;
147e83
+__hash_string (const char *str_param)
147e83
 {
147e83
   unsigned long int hval, g;
147e83
   const char *str = str_param;
147e83
diff --git a/intl/l10nflist.c b/intl/l10nflist.c
147e83
index 424f2dffc3d7b8e6..7bc2ec81bbbc3d9c 100644
147e83
--- a/intl/l10nflist.c
147e83
+++ b/intl/l10nflist.c
147e83
@@ -69,9 +69,7 @@ static char *stpcpy PARAMS ((char *dest, const char *src));
147e83
 static size_t argz_count__ PARAMS ((const char *argz, size_t len));
147e83
 
147e83
 static size_t
147e83
-argz_count__ (argz, len)
147e83
-     const char *argz;
147e83
-     size_t len;
147e83
+argz_count__ (const char *argz, size_t len)
147e83
 {
147e83
   size_t count = 0;
147e83
   while (len > 0)
147e83
@@ -93,10 +91,7 @@ argz_count__ (argz, len)
147e83
 static void argz_stringify__ PARAMS ((char *argz, size_t len, int sep));
147e83
 
147e83
 static void
147e83
-argz_stringify__ (argz, len, sep)
147e83
-     char *argz;
147e83
-     size_t len;
147e83
-     int sep;
147e83
+argz_stringify__ (char *argz, size_t len, int sep)
147e83
 {
147e83
   while (len > 0)
147e83
     {
147e83
@@ -116,10 +111,7 @@ static char *argz_next__ PARAMS ((char *argz, size_t argz_len,
147e83
 				  const char *entry));
147e83
 
147e83
 static char *
147e83
-argz_next__ (argz, argz_len, entry)
147e83
-     char *argz;
147e83
-     size_t argz_len;
147e83
-     const char *entry;
147e83
+argz_next__ (char *argz, size_t argz_len, const char *entry)
147e83
 {
147e83
   if (entry)
147e83
     {
147e83
@@ -144,8 +136,7 @@ argz_next__ (argz, argz_len, entry)
147e83
 static int pop PARAMS ((int x));
147e83
 
147e83
 static inline int
147e83
-pop (x)
147e83
-     int x;
147e83
+pop (int x)
147e83
 {
147e83
   /* We assume that no more than 16 bits are used.  */
147e83
   x = ((x & ~0x5555) >> 1) + (x & 0x5555);
147e83
@@ -159,20 +150,12 @@ pop (x)
147e83
 
147e83
 
147e83
 struct loaded_l10nfile *
147e83
-_nl_make_l10nflist (l10nfile_list, dirlist, dirlist_len, mask, language,
147e83
-		    territory, codeset, normalized_codeset, modifier,
147e83
-		    filename, do_allocate)
147e83
-     struct loaded_l10nfile **l10nfile_list;
147e83
-     const char *dirlist;
147e83
-     size_t dirlist_len;
147e83
-     int mask;
147e83
-     const char *language;
147e83
-     const char *territory;
147e83
-     const char *codeset;
147e83
-     const char *normalized_codeset;
147e83
-     const char *modifier;
147e83
-     const char *filename;
147e83
-     int do_allocate;
147e83
+_nl_make_l10nflist (struct loaded_l10nfile **l10nfile_list,
147e83
+		    const char *dirlist, size_t dirlist_len,
147e83
+		    int mask, const char *language,
147e83
+		    const char *territory, const char *codeset,
147e83
+		    const char *normalized_codeset, const char *modifier,
147e83
+		    const char *filename, int do_allocate)
147e83
 {
147e83
   char *abs_filename;
147e83
   struct loaded_l10nfile *last = NULL;
147e83
@@ -315,9 +298,7 @@ _nl_make_l10nflist (l10nfile_list, dirlist, dirlist_len, mask, language,
147e83
    names.  The return value is dynamically allocated and has to be
147e83
    freed by the caller.  */
147e83
 const char *
147e83
-_nl_normalize_codeset (codeset, name_len)
147e83
-     const char *codeset;
147e83
-     size_t name_len;
147e83
+_nl_normalize_codeset (const char *codeset, size_t name_len)
147e83
 {
147e83
   int len = 0;
147e83
   int only_digit = 1;
147e83
@@ -368,9 +349,7 @@ _nl_normalize_codeset (codeset, name_len)
147e83
    to be defined.  */
147e83
 #if !_LIBC && !HAVE_STPCPY
147e83
 static char *
147e83
-stpcpy (dest, src)
147e83
-     char *dest;
147e83
-     const char *src;
147e83
+stpcpy (char *dest, const char *src)
147e83
 {
147e83
   while ((*dest++ = *src++) != '\0')
147e83
     /* Do nothing. */ ;
147e83
diff --git a/intl/loadmsgcat.c b/intl/loadmsgcat.c
147e83
index 243783a9ac4d0929..8ee719d9c3034724 100644
147e83
--- a/intl/loadmsgcat.c
147e83
+++ b/intl/loadmsgcat.c
147e83
@@ -487,8 +487,7 @@ int _nl_msg_cat_cntr;
147e83
 
147e83
 /* Expand a system dependent string segment.  Return NULL if unsupported.  */
147e83
 static const char *
147e83
-get_sysdep_segment_value (name)
147e83
-     const char *name;
147e83
+get_sysdep_segment_value (const char *name)
147e83
 {
147e83
   /* Test for an ISO C 99 section 7.8.1 format string directive.
147e83
      Syntax:
147e83
@@ -757,9 +756,8 @@ get_sysdep_segment_value (name)
147e83
    message catalog do nothing.  */
147e83
 void
147e83
 internal_function
147e83
-_nl_load_domain (domain_file, domainbinding)
147e83
-     struct loaded_l10nfile *domain_file;
147e83
-     struct binding *domainbinding;
147e83
+_nl_load_domain (struct loaded_l10nfile *domain_file,
147e83
+		 struct binding *domainbinding)
147e83
 {
147e83
   __libc_lock_define_initialized_recursive (static, lock);
147e83
   int fd = -1;
147e83
@@ -1278,8 +1276,7 @@ _nl_load_domain (domain_file, domainbinding)
147e83
 #ifdef _LIBC
147e83
 void
147e83
 internal_function __libc_freeres_fn_section
147e83
-_nl_unload_domain (domain)
147e83
-     struct loaded_domain *domain;
147e83
+_nl_unload_domain (struct loaded_domain *domain)
147e83
 {
147e83
   size_t i;
147e83
 
147e83
diff --git a/intl/localealias.c b/intl/localealias.c
147e83
index 2f067dfe2cd7a130..29eef89c9e3d86bc 100644
147e83
--- a/intl/localealias.c
147e83
+++ b/intl/localealias.c
147e83
@@ -137,8 +137,7 @@ static int alias_compare PARAMS ((const struct alias_map *map1,
147e83
 
147e83
 
147e83
 const char *
147e83
-_nl_expand_alias (name)
147e83
-    const char *name;
147e83
+_nl_expand_alias (const char *name)
147e83
 {
147e83
   static const char *locale_alias_path = LOCALE_ALIAS_PATH;
147e83
   struct alias_map *retval;
147e83
@@ -200,9 +199,7 @@ _nl_expand_alias (name)
147e83
 
147e83
 static size_t
147e83
 internal_function
147e83
-read_alias_file (fname, fname_len)
147e83
-     const char *fname;
147e83
-     int fname_len;
147e83
+read_alias_file (const char *fname, int fname_len)
147e83
 {
147e83
   FILE *fp;
147e83
   char *full_fname;
147e83
@@ -381,9 +378,7 @@ extend_alias_table (void)
147e83
 
147e83
 
147e83
 static int
147e83
-alias_compare (map1, map2)
147e83
-     const struct alias_map *map1;
147e83
-     const struct alias_map *map2;
147e83
+alias_compare (const struct alias_map *map1, const struct alias_map *map2)
147e83
 {
147e83
 #if defined _LIBC || defined HAVE_STRCASECMP
147e83
   return strcasecmp (map1->alias, map2->alias);
147e83
diff --git a/intl/ngettext.c b/intl/ngettext.c
147e83
index 109e9da0e5cdc5d4..f3f8e076a1fc55aa 100644
147e83
--- a/intl/ngettext.c
147e83
+++ b/intl/ngettext.c
147e83
@@ -54,10 +54,7 @@
147e83
    LC_MESSAGES locale.  If not found, returns MSGID itself (the default
147e83
    text).  */
147e83
 char *
147e83
-NGETTEXT (msgid1, msgid2, n)
147e83
-     const char *msgid1;
147e83
-     const char *msgid2;
147e83
-     unsigned long int n;
147e83
+NGETTEXT (const char *msgid1, const char *msgid2, unsigned long int n)
147e83
 {
147e83
   return DCNGETTEXT (NULL, msgid1, msgid2, n, LC_MESSAGES);
147e83
 }
147e83
diff --git a/intl/plural-eval.c b/intl/plural-eval.c
147e83
index e692e379b14100b7..d44eb257e466e852 100644
147e83
--- a/intl/plural-eval.c
147e83
+++ b/intl/plural-eval.c
147e83
@@ -22,9 +22,7 @@ static unsigned long int plural_eval (const struct expression *pexp,
147e83
 
147e83
 static unsigned long int
147e83
 internal_function
147e83
-plural_eval (pexp, n)
147e83
-     const struct expression *pexp;
147e83
-     unsigned long int n;
147e83
+plural_eval (const struct expression *pexp, unsigned long int n)
147e83
 {
147e83
   switch (pexp->nargs)
147e83
     {
147e83
diff --git a/intl/plural-exp.c b/intl/plural-exp.c
147e83
index e157bba4adfca8df..abfbf0a1ef26a76d 100644
147e83
--- a/intl/plural-exp.c
147e83
+++ b/intl/plural-exp.c
147e83
@@ -96,10 +96,9 @@ init_germanic_plural (void)
147e83
 
147e83
 void
147e83
 internal_function
147e83
-EXTRACT_PLURAL_EXPRESSION (nullentry, pluralp, npluralsp)
147e83
-     const char *nullentry;
147e83
-     const struct expression **pluralp;
147e83
-     unsigned long int *npluralsp;
147e83
+EXTRACT_PLURAL_EXPRESSION (const char *nullentry,
147e83
+			   const struct expression **pluralp,
147e83
+			   unsigned long int *npluralsp)
147e83
 {
147e83
   if (nullentry != NULL)
147e83
     {
147e83
diff --git a/intl/plural.c b/intl/plural.c
147e83
index 0d8bf4c6d59ff646..3898ab6aeaadcc2d 100644
147e83
--- a/intl/plural.c
147e83
+++ b/intl/plural.c
147e83
@@ -212,10 +212,7 @@ static void yyerror PARAMS ((const char *str));
147e83
 /* Allocation of expressions.  */
147e83
 
147e83
 static struct expression *
147e83
-new_exp (nargs, op, args)
147e83
-     int nargs;
147e83
-     enum operator op;
147e83
-     struct expression * const *args;
147e83
+new_exp (int nargs, enum operator op, struct expression * const *args)
147e83
 {
147e83
   int i;
147e83
   struct expression *newp;
147e83
@@ -244,16 +241,13 @@ new_exp (nargs, op, args)
147e83
 }
147e83
 
147e83
 static inline struct expression *
147e83
-new_exp_0 (op)
147e83
-     enum operator op;
147e83
+new_exp_0 (enum operator op)
147e83
 {
147e83
   return new_exp (0, op, NULL);
147e83
 }
147e83
 
147e83
 static inline struct expression *
147e83
-new_exp_1 (op, right)
147e83
-     enum operator op;
147e83
-     struct expression *right;
147e83
+new_exp_1 (enum operator op, struct expression *right)
147e83
 {
147e83
   struct expression *args[1];
147e83
 
147e83
@@ -262,10 +256,7 @@ new_exp_1 (op, right)
147e83
 }
147e83
 
147e83
 static struct expression *
147e83
-new_exp_2 (op, left, right)
147e83
-     enum operator op;
147e83
-     struct expression *left;
147e83
-     struct expression *right;
147e83
+new_exp_2 (enum operator op, struct expression *left, struct expression *right)
147e83
 {
147e83
   struct expression *args[2];
147e83
 
147e83
@@ -275,11 +266,8 @@ new_exp_2 (op, left, right)
147e83
 }
147e83
 
147e83
 static inline struct expression *
147e83
-new_exp_3 (op, bexp, tbranch, fbranch)
147e83
-     enum operator op;
147e83
-     struct expression *bexp;
147e83
-     struct expression *tbranch;
147e83
-     struct expression *fbranch;
147e83
+new_exp_3 (enum operator op, struct expression *bexp,
147e83
+	   struct expression *tbranch, struct expression *fbranch)
147e83
 {
147e83
   struct expression *args[3];
147e83
 
147e83
@@ -1874,8 +1862,7 @@ yyreturn:
147e83
 
147e83
 void
147e83
 internal_function
147e83
-FREE_EXPRESSION (exp)
147e83
-     struct expression *exp;
147e83
+FREE_EXPRESSION (struct expression *exp)
147e83
 {
147e83
   if (exp == NULL)
147e83
     return;
147e83
@@ -1901,9 +1888,7 @@ FREE_EXPRESSION (exp)
147e83
 
147e83
 
147e83
 static int
147e83
-yylex (lval, pexp)
147e83
-     YYSTYPE *lval;
147e83
-     const char **pexp;
147e83
+yylex (YYSTYPE *lval, const char **pexp)
147e83
 {
147e83
   const char *exp = *pexp;
147e83
   int result;
147e83
@@ -2046,8 +2031,7 @@ yylex (lval, pexp)
147e83
 
147e83
 
147e83
 static void
147e83
-yyerror (str)
147e83
-     const char *str;
147e83
+yyerror (const char *str)
147e83
 {
147e83
   /* Do nothing.  We don't print error messages here.  */
147e83
 }
147e83
diff --git a/intl/plural.y b/intl/plural.y
147e83
index 2df3604dcf7ecfb6..7cfac172bd157b8a 100644
147e83
--- a/intl/plural.y
147e83
+++ b/intl/plural.y
147e83
@@ -72,10 +72,7 @@ static void yyerror PARAMS ((const char *str));
147e83
 /* Allocation of expressions.  */
147e83
 
147e83
 static struct expression *
147e83
-new_exp (nargs, op, args)
147e83
-     int nargs;
147e83
-     enum operator op;
147e83
-     struct expression * const *args;
147e83
+new_exp (int nargs, enum operator op, struct expression * const *args)
147e83
 {
147e83
   int i;
147e83
   struct expression *newp;
147e83
@@ -104,16 +101,13 @@ new_exp (nargs, op, args)
147e83
 }
147e83
 
147e83
 static inline struct expression *
147e83
-new_exp_0 (op)
147e83
-     enum operator op;
147e83
+new_exp_0 (enum operator op)
147e83
 {
147e83
   return new_exp (0, op, NULL);
147e83
 }
147e83
 
147e83
 static inline struct expression *
147e83
-new_exp_1 (op, right)
147e83
-     enum operator op;
147e83
-     struct expression *right;
147e83
+new_exp_1 (enum operator op, struct expression *right)
147e83
 {
147e83
   struct expression *args[1];
147e83
 
147e83
@@ -122,10 +116,7 @@ new_exp_1 (op, right)
147e83
 }
147e83
 
147e83
 static struct expression *
147e83
-new_exp_2 (op, left, right)
147e83
-     enum operator op;
147e83
-     struct expression *left;
147e83
-     struct expression *right;
147e83
+new_exp_2 (enum operator op, struct expression *left, struct expression *right)
147e83
 {
147e83
   struct expression *args[2];
147e83
 
147e83
@@ -135,11 +126,8 @@ new_exp_2 (op, left, right)
147e83
 }
147e83
 
147e83
 static inline struct expression *
147e83
-new_exp_3 (op, bexp, tbranch, fbranch)
147e83
-     enum operator op;
147e83
-     struct expression *bexp;
147e83
-     struct expression *tbranch;
147e83
-     struct expression *fbranch;
147e83
+new_exp_3 (enum operator op, struct expression *bexp,
147e83
+	   struct expression *tbranch, struct expression *fbranch)
147e83
 {
147e83
   struct expression *args[3];
147e83
 
147e83
@@ -230,8 +218,7 @@ exp:	  exp '?' exp ':' exp
147e83
 
147e83
 void
147e83
 internal_function
147e83
-FREE_EXPRESSION (exp)
147e83
-     struct expression *exp;
147e83
+FREE_EXPRESSION (struct expression *exp)
147e83
 {
147e83
   if (exp == NULL)
147e83
     return;
147e83
@@ -257,9 +244,7 @@ FREE_EXPRESSION (exp)
147e83
 
147e83
 
147e83
 static int
147e83
-yylex (lval, pexp)
147e83
-     YYSTYPE *lval;
147e83
-     const char **pexp;
147e83
+yylex (YYSTYPE *lval, const char **pexp)
147e83
 {
147e83
   const char *exp = *pexp;
147e83
   int result;
147e83
@@ -402,8 +387,7 @@ yylex (lval, pexp)
147e83
 
147e83
 
147e83
 static void
147e83
-yyerror (str)
147e83
-     const char *str;
147e83
+yyerror (const char *str)
147e83
 {
147e83
   /* Do nothing.  We don't print error messages here.  */
147e83
 }
147e83
diff --git a/intl/textdomain.c b/intl/textdomain.c
147e83
index 35fb2e4c9951fe74..7d1029fa02ffdb34 100644
147e83
--- a/intl/textdomain.c
147e83
+++ b/intl/textdomain.c
147e83
@@ -77,8 +77,7 @@ __libc_rwlock_define (extern, _nl_state_lock attribute_hidden)
147e83
    If DOMAINNAME is null, return the current default.
147e83
    If DOMAINNAME is "", reset to the default of "messages".  */
147e83
 char *
147e83
-TEXTDOMAIN (domainname)
147e83
-     const char *domainname;
147e83
+TEXTDOMAIN (const char *domainname)
147e83
 {
147e83
   char *new_domain;
147e83
   char *old_domain;