mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-04-28 06:33:36 +00:00
4731b2d916822a0acca7f27fea2b75ba40ac6067
This should help merges changes from Gawk, which always uses the char32_t API though that’s sometimes implemented with the wchar_t API even on platforms where wchar_t and char32_t act differently. The idea is to use char32_t uniformly in both the dfa and regex modules, so that they get consistent answers on all platforms. * lib/dfa.c, lib/localeinfo.c, lib/localeinfo.h: If GAWK, do not include <wctype.h> or redefine the Gnulib char32_t types and functions to be wchar.h and wctype.h functions or define mbszero and streq, as I think I have a better way to do this with Gawk that is less intrusive here; instead, always include <uchar.h>. * lib/dfa.c: Do not include <wchar.h>. Include "getext.h" before including "xalloc.h" and "localinfo.h", as Gnulib doesn’t care about the order and this works better with Gawk’s way of overriding Gnulib. (parse_bracket_exp): Use && instead of &; either is correct and both are equally fast nowadays but && triggers a warning in some Gawk compiles. * lib/dfa.h (_GL_ATTRIBUTE_MALLOC, _GL_ATTRIBUTE_DEALLOC) (_GL_ATTRIBUTE_DEALLOC_FREE) (_GL_ATTRIBUTE_RETURNS_NONNULL) [!_GL_ATTRIBUTE_MALLOC]: Remove, as Gawk’s custom.h can define them. * lib/localeinfo.c: Go back to using <verify.h> and ‘verify’ instead of using static_assert which Gawk can’t easily use because it does not use Gnulib’s assert-h module. * lib/localeinfo.h: Do not include <limits.h>, avoding some namespace pollution. (struct localeinfo): Use (unsigned char) -1 instead of UCHAR_MAX to avoid the need to include <limits.h>. * modules/dfa (Depends-on): Remove wchar-h.
Please create and read the docs with $ cd doc $ make gnulib.html $ xdg-open gnulib.html or read the online manual at https://www.gnu.org/software/gnulib/manual/gnulib.html
Description
Languages
C
80.3%
M4
9.3%
Shell
3.8%
C++
2.6%
Python
1.6%
Other
2.2%