]> Savannah Git Hosting - gnulib.git/commit
xalloc: new function xpalloc, from dfa
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 29 Mar 2021 03:02:21 +0000 (20:02 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 29 Mar 2021 03:04:52 +0000 (20:04 -0700)
commite54b645fc6b8422562327443bda575c65d931fbd
tree3769d3b19c7378eceea9380a74f00887ce210b8e
parentf19e3cff2e3fee26cad50b4d5b3ae9fa3c6862a7
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.
ChangeLog
lib/dfa.c
lib/xalloc.h
lib/xmalloc.c
modules/dfa
modules/xalloc