diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-03-03 12:22:19 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-03-03 12:22:19 +0000 |
commit | 13d6edb45df716e9bd8a40bf4d0dcc0834c8e1d8 (patch) | |
tree | 5332ce2bea844b2fbdd84bfb242e0e113164be0e /regexec.c | |
parent | 2246ee039f9382f6a88766dc2e05a32de5ee2c3c (diff) | |
download | perl-13d6edb45df716e9bd8a40bf4d0dcc0834c8e1d8.tar.gz |
Define and initialise reg_name only once.
This allows re to be a static extension.
As it's now no-longer a static variable in regcomp.c, it needs a PL_
prefix.
p4raw-id: //depot/perl@30451
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2485,7 +2485,7 @@ regmatch(), slabs allocated since entry are freed. PerlIO_printf(Perl_debug_log, \ " %*s"pp" %s%s%s%s%s\n", \ depth*2, "", \ - reg_name[st->resume_state], \ + PL_reg_name[st->resume_state], \ ((st==yes_state||st==mark_state) ? "[" : ""), \ ((st==yes_state) ? "Y" : ""), \ ((st==mark_state) ? "M" : ""), \ @@ -5008,7 +5008,7 @@ NULL } PerlIO_printf(Perl_error_log, "%*s#%-3d %-10s %s\n", REPORT_CODE_OFF + 2 + depth * 2,"", - curd, reg_name[cur->resume_state], + curd, PL_reg_name[cur->resume_state], (curyes == cur) ? "yes" : "" ); if (curyes == cur) |