From: Dave Mitchell Date: Sat, 6 Nov 2004 11:59:16 +0000 (+0000) Subject: document regcomp.c/regexec.c's dual life under ext/re/ X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e4a054ea0a8cd1ea68a25b95ec3055e51df2d6d4;p=p5sagit%2Fp5-mst-13.2.git document regcomp.c/regexec.c's dual life under ext/re/ p4raw-id: //depot/perl@23482 --- diff --git a/regcomp.c b/regcomp.c index 2bcb16e..97e81bc 100644 --- a/regcomp.c +++ b/regcomp.c @@ -8,6 +8,11 @@ /* This file contains functions for compiling a regular expression. See * also regexec.c which funnily enough, contains functions for executing * a regular expression. + * + * This file is also copied at build time to ext/re/re_comp.c, where + * it's built with -DPERL_EXT_RE_BUILD -DPERL_EXT_RE_DEBUG -DPERL_EXT. + * This causes the main functions to be compiled under new names and with + * debugging support added, which makes "use re 'debug'" work. */ /* NOTE: this is derived from Henry Spencer's regexp code, and should not diff --git a/regexec.c b/regexec.c index fd3bc05..6a7f064 100644 --- a/regexec.c +++ b/regexec.c @@ -8,6 +8,12 @@ /* This file contains functions for executing a regular expression. See * also regcomp.c which funnily enough, contains functions for compiling * a regular expression. + * + * This file is also copied at build time to ext/re/re_exec.c, where + * it's built with -DPERL_EXT_RE_BUILD -DPERL_EXT_RE_DEBUG -DPERL_EXT. + * This causes the main functions to be compiled under new names and with + * debugging support added, which makes "use re 'debug'" work. + */ /* NOTE: this is derived from Henry Spencer's regexp code, and should not