summaryrefslogtreecommitdiff
path: root/libc/locale/programs/ld-messages.c
AgeCommit message (Collapse)Author
2014-01-03Merge changes between r24468 and r24941 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@24942 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2013-05-18Merge changes between r22954 and r23097 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@23098 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2013-01-10Merge changes between r22062 and r22176 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@22177 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2012-02-18Merge changes between r17050 and r17194 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@17195 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2007-10-30* Makeconfig ($(common-objpfx)gnu/option-groups.h): New generatedjimb
header. * scripts/option-groups.awk: New script, to generate it. * debug/Makefile (CFLAGS-segfault.c): Don't define option group symbols here. * wcsmbs/Makefile (CFLAGS-wcsmbsload.c): Same. * time/Makefile (CFLAGS-strftime_l.c, CFLAGS-strptime_l.c): Same. * intl/Makefile (CFLAGS-dcigettext.c): Same. * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c) (CFLAGS-libc_fatal.c): Same. * misc/Makefile (CFLAGS-error.c, CFLAGS-err.c): Same. * nss/Makefile (CFLAGS-nsswitch.c, CFLAGS-getnssent_r.c) (CFLAGS-getent.c): Same. * string/Makefile (CFLAGS-strerror_l.c): Same. * iconv/Makefile (CFLAGS-gconv_db.c, CFLAGS-gconv_trans.c) (CFLAGS-iconv_prog.c): Same. * locale/Makefile (CFLAGS-C-ctype.c, CFLAGS-xlocale.c) (CFLAGS-ld-messages.c): Same. * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-fmtstream.c): Same. * nptl/Makefile (CFLAGS-pthread_create.c): Same. * posix/Makefile (CFLAGS-glob.c, CFLAGS-bug-regex1.c): Same. * stdio-common/Makefile (CFLAGS-printf_fp.c) (CFLAGS-printf_fphex.c, CFLAGS-fxprintf.c, CFLAGS-tst-popen.c): Same. * libidn/Makefile (CFLAGS-toutf8.c): Same. * debug/segfault.c, wcsmbs/wcsmbsload.c, time/strftime_l.c: * time/strptime_l.c, intl/dcigettext.c: * sysdeps/unix/sysv/linux/libc_fatal.c: * sysdeps/unix/sysv/linux/gethostid.c, misc/err.c, misc/error.c: * nss/getnssent_r.c, nss/nsswitch.c, nss/getent.c: * string/strerror_l.c, iconv/gconv_db.c, iconv/iconv_prog.c: * iconv/gconv_trans.c, locale/xlocale.c, locale/C-ctype.c: * locale/programs/ld-messages.c, argp/argp-help.c: * argp/argp-fmtstream.c, nptl/pthread_create.c, posix/glob.c: * posix/bug-regex1.c, stdio-common/printf_fp.c: * stdio-common/printf_fphex.c, stdio-common/tst-popen.c: * stdio-common/fxprintf.c, libidn/toutf8.c: #include <gnu/option-groups.h>, and test for the symbols that #defines, instead. git-svn-id: svn://svn.eglibc.org/trunk@4026 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2007-09-12Merge changes between r2424 and r3467 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@3468 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2007-06-14Add the OPTION_POSIX_REGEXP option group.jimb
* option-groups.def (OPTION_POSIX_REGEXP): New entry. * option-groups.defaults (OPTION_POSIX_REGEXP): Initialize. * posix/Makefile: Include ../option-groups.mak. (routines): Move 'regex' into the group. * stdlib/Makefile: Put rpmatch in both the OPTION_POSIX_REGEXP and OPTION_EGLIBC_LOCALE_CODE groups. * misc/Makefile: Put regexp in the group. * locale/Makefile (CFLAGS-ld-messages.c): Define OPTION_POSIX_REGEXP as appropriate. * locale/programs/ld-messages.c: Don't check the syntax of 'yes' and 'no' regular expressions if the group isn't enabled. git-svn-id: svn://svn.eglibc.org/trunk@2508 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2006-09-07 * locale/programs/3level.h (TABLE): Remove "result" field.richard
(TABLE,_finalize): Replace with... (add_locale_,TABLE): ...this new function. Add data directly to a locale_file instead of building up a result block. * locale/programs/ld-address.c (address_output): Use the new locale_file interface. * locale/programs/ld-collate.c (obstack_int32_grow) (obstack_int32_grow_fast): Pass the value through maybe_swap_uint32. (collate_finish): Don't call collseq_table_finalize. (output_weightwc): Use maybe_swap_uint32_obstack to reorder the weights array. (collate_output): Likewise the wide collation string. Don't call collidx_table_finalize. Use the new locale_file interface. * locale/programs/ld-ctype.c (wcwidth_table, wctrans_table) (wctrans_table_add): Move definitions. (wctype_table): Likewise. Remove "result" field. (locale_ctype_t): Make "class_3level" an array of wctype_tables, "map_3level" an array of wctrans_tables and "width" a wcwidth_table. (ctype_output): Hoist the setting of default_missing_len and reuse it in the DEFAULT_MISSING case. Use the new locale_file interface. (wctype_finalize): Replace with... (add_locale_wctype_table): ...this new function. Alter as for add_locale_TABLE above. (allocate_arrays): Adjust for new types of locale_ctype_t fields. Don't call wctype_table_finalize, wctrans_table_finalize or wcwidth_table_finalize. * locale/programs/ld-identification.c (identification_output): Use the new locale_file interface. * locale/programs/ld-measurement.c (measurement_output): Likewise. * locale/programs/ld-messages.c (messages_output): Likewise. * locale/programs/ld-monetary.c (monetary_output): Likewise. * locale/programs/ld-name.c (name_output): Likewise. * locale/programs/ld-numeric.c (numeric_output): Likewise. * locale/programs/ld-paper.c (paper_output): Likewise. * locale/programs/ld-telephone.c (telephone_output): Likewise. * locale/programs/ld-time.c (time_output): Likewise. * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): Define. (OPT_BIG_ENDIAN): Define. (options): Add --big-endian and --little-endian. (parse_opt): Handle them. * locale/programs/locfile.c: Include assert.h, wchar.h and localeinfo.h. (obstack_chunk_alloc, obstack_chunk_free): Define. (swap_endianness_p, record_offset, init_locale_data, align_locale_data) (add_locale_empty, add_locale_raw_data, add_locale_raw_obstack) (add_locale_string, add_locale_wstring, add_locale_uint32) (add_locale_uint32_array, add_locale_char, start_locale_structure) (end_locale_structure, start_locale_prelude, end_locale_prelude): New. (write_locale_data): Replace iovec arguments with a locale_file. Build three iovecs internally, one for the header, one for the offsets array and one for the data itself. * locale/programs/locfile.h: Include obstack.h. (locale_file): Redefine as a file-building structure. (swap_endianness_p): Declare. (set_big_endian, swap_uint32, maybe_swap_uint32) (maybe_swap_uint32_array, maybe_swap_uint32_obstack): New functions. (init_locale_data, align_locale_data, add_locale_empty) (add_locale_raw_data, add_locale_raw_obstack, add_locale_string) (add_locale_wstring, add_locale_uint32, add_locale_uint32_array) (add_locale_char, start_locale_structure, end_locale_structure) (start_locale_prelude, end_locale_prelude): Declare. (write_locale_data): Adjust prototype as for locfile.c change. git-svn-id: svn://svn.eglibc.org/trunk@164 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2006-08-17Import glibc-mainline for 2006-08-16gcc
git-svn-id: svn://svn.eglibc.org/fsf/trunk@4 7b3dc134-2b1b-0410-93df-9e9f96275f8d