Re: [PATCH 2/4] regex: simplify by assuming C99

2019-10-12 Thread Bruno Haible
Paul Eggert wrote: > Simplify by assuming C99 macros and const. > * lib/regexec.c (re_search_internal): Simplify by assuming C99 > initializers. I confirm that it builds fine, even with weird compilers such as HP-UX cc and MSVC 14. Bruno

[PATCH 2/4] regex: simplify by assuming C99

2019-10-09 Thread Paul Eggert
* config/srclist.txt: Comment out regex_internal.h and regexec.c temporarily. * lib/regex_internal.h (lock_define, re_match_context_t): Simplify by assuming C99 macros and const. * lib/regexec.c (re_search_internal): Simplify by assuming C99 initializers. Remove unnecessary assignment, as mctx is