This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Integrate:
authorNicholas Clark <nick@ccl4.org>
Sun, 7 Nov 2004 13:18:19 +0000 (13:18 +0000)
committerNicholas Clark <nick@ccl4.org>
Sun, 7 Nov 2004 13:18:19 +0000 (13:18 +0000)
[ 23482]
document regcomp.c/regexec.c's dual life under ext/re/
p4raw-link: @23482 on //depot/perl: e4a054ea0a8cd1ea68a25b95ec3055e51df2d6d4

p4raw-id: //depot/maint-5.8/perl@23483
p4raw-integrated: from //depot/perl@23480 'merge in' regcomp.c
(@23433..) regexec.c (@23471..)

regcomp.c
regexec.c

index 220e942..0762f55 100644 (file)
--- 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
index 7c82919..b761752 100644 (file)
--- 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