Hash :
776c52c2
Author :
Date :
2023-07-16T07:31:02
dfa: Optimize clearing an mbstate_t. * lib/dfa.c (mbszero) [GAWK]: Add fallback definition. (mbs_to_wchar, lex, addtok_wc, dfaexec_main): Use mbszero. * modules/dfa (Depends-on): Add mbszero.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
Description:
DFA matcher that was initially used by GNU grep, gawk and diffutils
Files:
lib/dfa.c
lib/dfa.h
lib/localeinfo.c
lib/localeinfo.h
Depends-on:
assert
c32isprint
c32isspace
c32rtomb
c32tob
c32tolower
c32toupper
c99
ctype
flexmember
idx
locale
mbrtoc32-regular
mbszero
regex
stdbool
stddef
stdint
stdio
stdlib
string
uchar
# The lonesome_lower array requires ISO C 23 semantics for char32_t.
# But uchar-c23 has a global effect, therefore leave it to each package
# to enable it.
#uchar-c23
verify
wchar
xalloc
xalloc-die
configure.ac:
AC_REQUIRE([AC_C_INLINE])
Makefile.am:
lib_SOURCES += dfa.c localeinfo.c
Include:
"dfa.h"
"localeinfo.h"
Link:
$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
$(MBRTOWC_LIB)
$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
License:
GPL
Maintainer:
Jim Meyering, Paul Eggert