diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-01-08 12:00:09 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-01-08 12:02:04 -0800 |
commit | b6207ab38053b606bc80703f785e4334a62e8205 (patch) | |
tree | d4dd267544698002b059ed395ccd33abf6400067 /config | |
parent | 921d2ea19b5eb70293bf110070f04064fd5c9193 (diff) | |
download | gnulib-b6207ab38053b606bc80703f785e4334a62e8205.tar.gz |
regex: remove alloca usage on regex set_regs
Derived from this patch by Adhemerval Zanella:
https://sourceware.org/pipermail/libc-alpha/2021-January/121372.html
* lib/regex_internal.h: Include dynarray.h, for Gnulib.
* lib/regexec.c (DYNARRAY_STRUCT, DYNARRAY_ELEMENT)
(DYNARRAY_PREFIX): New macros.
Include malloc/dynarray-skeleton.c.
(set_regs): Use dynarray rather than alloca.
* modules/regex (Depends-on): Add dynarray.
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions