diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-03-28 20:02:21 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-03-28 20:04:52 -0700 |
commit | e54b645fc6b8422562327443bda575c65d931fbd (patch) | |
tree | 3769d3b19c7378eceea9380a74f00887ce210b8e /modules | |
parent | f19e3cff2e3fee26cad50b4d5b3ae9fa3c6862a7 (diff) | |
download | gnulib-e54b645fc6b8422562327443bda575c65d931fbd.tar.gz |
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.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/dfa | 2 | ||||
-rw-r--r-- | modules/xalloc | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/modules/dfa b/modules/dfa index 303957fa50..4b78ef4870 100644 --- a/modules/dfa +++ b/modules/dfa @@ -12,7 +12,7 @@ assert c99 ctype flexmember -intprops +idx locale regex stdbool diff --git a/modules/xalloc b/modules/xalloc index 65007561b5..5fa386a5d9 100644 --- a/modules/xalloc +++ b/modules/xalloc @@ -9,6 +9,9 @@ m4/xalloc.m4 Depends-on: c99 extern-inline +idx +intprops +minmax stdint xalloc-die xalloc-oversized |