[PATCH] Some _l fixes
Jakub Jelinek
jakub@redhat.com
Tue Aug 27 15:28:00 GMT 2002
Hi!
This is just the part without *ftime_l changes...
The question which I still have:
a) should isascii_l and toascii_l be exported
b) what about strptime_l
2002-08-28 Jakub Jelinek <jakub@redhat.com>
* ctype/ctype.h (isascii_l, toascii_l): Define to _l counterparts.
* ctype/ctype-extn.c (isblank_l): Add weak alias.
* stdlib/strfmon_l.c (strfmon_l): Likewise.
* sysdeps/generic/strtol_l.c (strtol_l): Likewise.
* sysdeps/generic/strtoll_l.c (strtoll_l): Likewise.
* sysdeps/generic/strtoul_l.c (strtoul_l): Likewise.
* sysdeps/generic/strtoull_l.c (strtoull_l): Likewise.
* wctype/iswctype_l.c (iswctype_l): Likewise.
--- libc/ctype/ctype.h.jj 2002-08-08 10:39:15.000000000 +0200
+++ libc/ctype/ctype.h 2002-08-28 00:03:33.000000000 +0200
@@ -291,8 +291,8 @@ extern int toupper_l (int __c, __locale_
# define isblank_l(c,l) __isblank_l ((c), (l))
# if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN
-# define isascii_l(c,l) __isascii ((c), (l))
-# define toascii_l(c,l) __toascii ((c), (l))
+# define isascii_l(c,l) __isascii_l ((c), (l))
+# define toascii_l(c,l) __toascii_l ((c), (l))
# endif
# endif /* Not __NO_CTYPE. */
--- libc/ctype/ctype-extn.c.jj 2001-08-23 18:47:05.000000000 +0200
+++ libc/ctype/ctype-extn.c 2002-08-28 00:04:12.000000000 +0200
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1997, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -59,3 +59,4 @@ __isblank_l (int c, __locale_t l)
{
return __isctype_l (c, _ISblank, l);
}
+weak_alias (__isblank_l, isblank_l)
--- libc/stdlib/strfmon_l.c.jj 2001-08-23 18:49:14.000000000 +0200
+++ libc/stdlib/strfmon_l.c 2002-08-28 00:09:23.000000000 +0200
@@ -1,5 +1,5 @@
/* Formatting a monetary value according to the given locale.
- Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
@@ -20,3 +20,5 @@
#define USE_IN_EXTENDED_LOCALE_MODEL 1
#include <strfmon.c>
+
+weak_alias (__strfmon_l, strfmon_l)
--- libc/sysdeps/generic/strtol_l.c.jj 2001-08-23 18:49:38.000000000 +0200
+++ libc/sysdeps/generic/strtol_l.c 2002-08-28 00:11:58.000000000 +0200
@@ -1,5 +1,5 @@
/* Convert string representing a number to integer value, using given locale.
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -26,3 +26,5 @@ extern long int ____strtol_l_internal (c
__locale_t);
#include "strtol.c"
+
+weak_alias (__strtol_l, strtol_l)
--- libc/sysdeps/generic/strtoll_l.c.jj 2001-08-23 18:49:41.000000000 +0200
+++ libc/sysdeps/generic/strtoll_l.c 2002-08-28 00:12:23.000000000 +0200
@@ -1,5 +1,5 @@
/* Convert string representing a number to integer value, using given locale.
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -26,3 +26,5 @@ extern long long int ____strtoll_l_inter
__locale_t);
#include <strtoll.c>
+
+weak_alias (__strtoll_l, strtoll_l)
--- libc/sysdeps/generic/strtoul_l.c.jj 2001-08-23 18:49:41.000000000 +0200
+++ libc/sysdeps/generic/strtoul_l.c 2002-08-28 00:12:56.000000000 +0200
@@ -1,5 +1,5 @@
/* Convert string representing a number to integer value, using given locale.
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -26,3 +26,5 @@ extern unsigned long int ____strtoul_l_i
int, __locale_t);
#include "strtoul.c"
+
+weak_alias (__strtoul_l, strtoul_l)
--- libc/sysdeps/generic/strtoull_l.c.jj 2001-08-23 18:49:41.000000000 +0200
+++ libc/sysdeps/generic/strtoull_l.c 2002-08-28 00:13:13.000000000 +0200
@@ -1,5 +1,5 @@
/* Convert string representing a number to integer value, using given locale.
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -26,3 +26,5 @@ extern unsigned long long int ____strtou
int, int, __locale_t);
#include <strtoull.c>
+
+weak_alias (__strtoull_l, strtoull_l)
--- libc/wctype/iswctype_l.c.jj 2001-08-23 18:51:43.000000000 +0200
+++ libc/wctype/iswctype_l.c 2002-08-28 00:05:05.000000000 +0200
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 2000, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1996.
@@ -34,3 +34,4 @@ __iswctype_l (wint_t wc, wctype_t desc,
return wctype_table_lookup ((const char *) desc, wc);
}
+weak_alias (__iswctype_l, iswctype_l)
Jakub
More information about the Libc-hacker
mailing list