]> git.kaiwu.me - njs.git/commit
Building regexp backend as an external.
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 24 Dec 2021 15:48:11 +0000 (15:48 +0000)
committerDmitry Volyntsev <xeioex@nginx.com>
Fri, 24 Dec 2021 15:48:11 +0000 (15:48 +0000)
commitdab37f775147a99c6a8a98a4abe0013062959ec5
treec5608467afde3b97a6215900abc9efd2ca32f87e
parent00ef29516143738e3d57884e43eefda75a475597
Building regexp backend as an external.

This allows not to build PCRE specific code as a part of libnjs.a thus
supporting nginx builds with flags like --with-pcre=PCRE_DIR.  When
--no-pcre configure option is provided external code have to implement
methods declared in njs_regex.h.

This also closes #18 issue on Github.
auto/options
auto/pcre
auto/sources
auto/summary
external/njs_regex.c [moved from src/njs_pcre.c with 63% similarity]
nginx/config
nginx/config.make
nginx/ngx_js_regex.c [new file with mode: 0644]
src/njs_pcre2.c [deleted file]