glibc/locale
Siddhesh Poyarekar 9cd4747089 Add new macro IN_MODULE to identify module in which source is built
The current scheme to identify which module a translation unit is
built in depends on defining multiple macros IS_IN_* and also defining
NOT_IN_libc if we're building a non-libc module.  In addition, there
is an IN_LIB macro that does effectively the same thing, but for
different modules (notably the systemtap probes).  This macro scheme
unifies both ideas to use just one macro IN_MODULE and assign it a
value depending on the module it is being built into.  If the module
is not defined, it defaults to MODULE_libc.

Patches that follow will replace uses of IS_IN_* variables with the
IS_IN() macro.  libc-symbols.h has been converted already to give an
example of how such a transition will look.

Verified that there are no relevant binary changes.  One source change
that will crop up repeatedly is that of nscd_stat, since it uses the
build timestamp as a constant in its logic.

	* Makeconfig (in-module): Get value of libof set for the
	translation unit.
	(CPPFLAGS): Use $(in-module).
	* Makerules: Don't suffix routine names for nonlib.
	* include/libc-modules.h: New file.
	* include/libc-symbols.h: Include libc-modules.h
	(IS_IN): New macro to replace IS_IN_* macros.
	* elf/Makefile: Set libof-* for each routine.
	* elf/rtld-Rules: Likewise.
	* extra-modules.mk: Likewise.
	* iconv/Makefile: Likewise.
	* iconvdata/Makefile: Likewise.
	* locale/Makefile: Likewise.
	* malloc/Makefile: Likewise.
	* nss/Makefile: Likewise.
	* sysdeps/gnu/Makefile: Likewise.
	* sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
	* sysdeps/unix/sysv/linux/Makefile: Likewise.
	* sysdeps/s390/s390-64/Makefile: Likewise.
	* nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
	CPPFLAGS for nscd instead of nonlib.
2014-11-19 12:13:54 +05:30
..
bits
programs Minor cleanup in locale.c 2014-09-12 16:07:23 -07:00
broken_cur_max.c
C_name.c
C-address.c
C-collate.c
C-ctype.c
C-identification.c
C-measurement.c
C-messages.c
C-monetary.c
C-name.c
C-numeric.c
C-paper.c
C-telephone.c
C-time.c
C-translit.h
C-translit.h.in
categories.def
coll-lookup.c
coll-lookup.h
duplocale.c
elem-hash.h
findlocale.c Fix locale memmem namespace (bug 17585). 2014-11-12 22:41:03 +00:00
freelocale.c
gen-translit.pl
global-locale.c
hashval.h
indigits.h
indigitswc.h
iso-639.def New Bhilodi and Tulu locales (BZ #17475) 2014-11-12 17:06:39 +05:30
iso-3166.def
iso-4217.def Revert incorrect removal of the XDR currency from locale/iso-4217.def 2014-05-03 23:45:15 -06:00
langinfo.h
lc-address.c
lc-collate.c
lc-ctype.c
lc-identification.c
lc-measurement.c
lc-messages.c
lc-monetary.c
lc-name.c
lc-numeric.c
lc-paper.c
lc-telephone.c
lc-time.c
loadarchive.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
loadlocale.c Use glibc_likely instead __builtin_expect. 2014-02-10 15:07:12 +01:00
locale.h
localeconv.c
localeinfo.h
localename.c
locarchive.h
Makefile Add new macro IN_MODULE to identify module in which source is built 2014-11-19 12:13:54 +05:30
mb_cur_max.c
newlocale.c
nl_langinfo_l.c fix nl_langinfo with static linking (BZ #16915) 2014-05-20 18:43:14 +02:00
nl_langinfo.c
outdigits.h
outdigitswc.h
setlocale.c setlocale: Use the heap for the copy of the locale argument 2014-07-10 16:29:34 +02:00
strlen-hash.h
SYS_libc.c
tst-C-locale.c
tst-duplocale.c
tst-locname.c
uselocale.c
Versions
weight.h Move findidx nested functions to top-level. 2014-09-11 16:02:17 -07:00
weightwc.h Move findidx nested functions to top-level. 2014-09-11 16:02:17 -07:00
xlocale.c
xlocale.h