mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-05 21:00:05 +00:00
* locale/nl_langinfo.c: Use _NL_CURRENT_DATA.
* elf/Makefile (CFLAGS-vismod2.c): New variable.
This commit is contained in:
parent
30c14c31ae
commit
dc18d4d8e4
@ -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.
|
||||
|
@ -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))
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user