summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>2010-09-22 13:44:36 -0400
committerAndy Dougherty <doughera@lafayette.edu>2010-09-22 13:44:36 -0400
commit04e98a4df2ab89550ea2ab5f96ddd3932e2e1ec9 (patch)
tree315e2c2bedf6c6b6bfbb24da4fdb3216631cb018 /regcomp.c
parent2748c776108ea3c2dab18eeb6a710e819486df17 (diff)
downloadperl-04e98a4df2ab89550ea2ab5f96ddd3932e2e1ec9.tar.gz
Extract regcurly as a static inline function.
This patch extracts regcurly from regcomp.c and converts it to a static inline function in a new file dquote_static.c that is now #included by regcomp.c and toke.c. This change will require 'make regen'.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c27
1 files changed, 2 insertions, 25 deletions
diff --git a/regcomp.c b/regcomp.c
index 2871e4a10c..de957893bf 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -85,6 +85,8 @@
# include "regcomp.h"
#endif
+#include "dquote_static.c"
+
#ifdef op
#undef op
#endif /* op */
@@ -9006,31 +9008,6 @@ S_regtail_study(pTHX_ RExC_state_t *pRExC_state, regnode *p, const regnode *val,
#endif
/*
- - regcurly - a little FSA that accepts {\d+,?\d*}
- */
-#ifndef PERL_IN_XSUB_RE
-I32
-Perl_regcurly(register const char *s)
-{
- PERL_ARGS_ASSERT_REGCURLY;
-
- if (*s++ != '{')
- return FALSE;
- if (!isDIGIT(*s))
- return FALSE;
- while (isDIGIT(*s))
- s++;
- if (*s == ',')
- s++;
- while (isDIGIT(*s))
- s++;
- if (*s != '}')
- return FALSE;
- return TRUE;
-}
-#endif
-
-/*
- regdump - dump a regexp onto Perl_debug_log in vaguely comprehensible form
*/
#ifdef DEBUGGING