* locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
authorRoland McGrath <roland@gnu.org>
Sun, 4 Aug 2002 02:32:32 +0000 (02:32 +0000)
committerRoland McGrath <roland@gnu.org>
Sun, 4 Aug 2002 02:32:32 +0000 (02:32 +0000)
* elf/Makefile (CFLAGS-vismod2.c): New variable.

ChangeLog
elf/Makefile
locale/nl_langinfo.c

index 3025aea..9bbbbd8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2002-08-03  Roland McGrath  <roland@redhat.com>
 
+       * locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
+
+       * elf/Makefile (CFLAGS-vismod2.c): New variable.
+
        * locale/setlocale.c (_nl_current_names): Variable moved ...
        * locale/localename.c (_nl_current_names): ... here, new file.
        Make it global, with attribute_hidden.
index 71610a6..9c49533 100644 (file)
@@ -147,6 +147,8 @@ modules-nodelete-yes = nodelmod1 nodelmod2 nodelmod3 nodelmod4
 modules-nodlopen-yes = nodlopenmod nodlopenmod2
 extra-objs += $(addsuffix .os,$(strip $(modules-names)))
 
+CFLAGS-vismod2.c := -DNOT_IN_libc
+
 include ../Rules
 
 ifeq (yes,$(build-shared))
index 7b62c73..acaa500 100644 (file)
@@ -1,5 +1,5 @@
 /* User interface for extracting locale-dependent parameters.
-   Copyright (C) 1995,1996,1997,1999,2000,2001 Free Software Foundation, Inc.
+   Copyright (C) 1995,96,97,99,2000,01,02 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
@@ -48,7 +48,7 @@ nl_langinfo (item)
 #ifdef USE_IN_EXTENDED_LOCALE_MODEL
   data = l->__locales[category];
 #else
-  data = *_nl_current[category];
+  data = _NL_CURRENT_DATA (category);
 #endif
 
   if (index >= data->nstrings)