Hash :
e54b645f
Author :
Date :
2021-03-28T20:02:21
xalloc: new function xpalloc, from dfa Move xpalloc from dfa.c to xmalloc.c and change it from static to extern. The function is useful in other contexts; I’m about to use it in coreutils. * lib/dfa.c: Include idx.h, instead of rolling our own idx_t and IDX_MAX. Do not include intprops.h; no longer needed. (xpalloc): Move from here ... * lib/xmalloc.c (xpalloc): ... to here, and make it extern. Include intprops.h and minmax.h, needed by xpalloc. * lib/xalloc.h: Include idx.h, for idx_t. * modules/dfa (Depends-on): Add idx; remove intprops. * modules/xalloc (Depends-on): Add idx, intprops, minmax.
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
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
c99
ctype
flexmember
idx
locale
regex
stdbool
stddef
stdint
stdio
stdlib
string
verify
wchar
wctype-h
xalloc
xalloc-die
configure.ac:
AC_REQUIRE([AC_C_INLINE])
Makefile.am:
lib_SOURCES += dfa.c localeinfo.c
Include:
"dfa.h"
"localeinfo.h"
Link:
$(LIB_MBRTOWC)
License:
GPL
Maintainer:
Jim Meyering, Paul Eggert