bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] strtol.c fixup (rename LOCALE_PARAM_DECL to LOCALE_PARAM_PR


From: Paul Eggert
Subject: [Bug-gnulib] strtol.c fixup (rename LOCALE_PARAM_DECL to LOCALE_PARAM_PROTO)
Date: 12 Sep 2003 13:24:37 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

My recent change to strtol.c didn't follow the glibc naming conventions.
Sorry about that.  I installed this patch.

2003-09-12  Paul Eggert  <address@hidden>

        * strtol.c (LOCALE_PARAM_PROTO): Renamed from
        LOCALE_PARAM_DECL, for consistency with glibc.

Index: lib/strtol.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/strtol.c,v
retrieving revision 1.17
diff -p -u -r1.17 strtol.c
--- lib/strtol.c        12 Sep 2003 18:24:51 -0000      1.17
+++ lib/strtol.c        12 Sep 2003 19:56:34 -0000
@@ -171,10 +171,10 @@ extern int errno;
 # define _NL_CURRENT(category, item) \
   (current->values[_NL_ITEM_INDEX (item)].string)
 # define LOCALE_PARAM , loc
-# define LOCALE_PARAM_DECL , __locale_t loc
+# define LOCALE_PARAM_PROTO , __locale_t loc
 #else
 # define LOCALE_PARAM
-# define LOCALE_PARAM_DECL
+# define LOCALE_PARAM_PROTO
 #endif
 
 #if defined _LIBC || defined HAVE_WCHAR_H
@@ -235,7 +235,7 @@ extern int errno;
 
 INT
 INTERNAL (strtol) (const STRING_TYPE *nptr, STRING_TYPE **endptr,
-                  int base, int group LOCALE_PARAM_DECL)
+                  int base, int group LOCALE_PARAM_PROTO)
 {
   int negative;
   register unsigned LONG int cutoff;
@@ -426,7 +426,7 @@ INT
 weak_function
 #endif
 strtol (const STRING_TYPE *nptr, STRING_TYPE **endptr,
-       int base LOCALE_PARAM_DECL)
+       int base LOCALE_PARAM_PROTO)
 {
   return INTERNAL (strtol) (nptr, endptr, base, 0 LOCALE_PARAM);
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]