summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-12-31 11:54:44 -0700
committerKarl Williamson <public@khwilliamson.com>2013-01-11 11:50:35 -0700
commit6b976e32dcccdff3dde7682ad9314dc5cd918e17 (patch)
tree4c44eacac564ebc264ea2e25bdec5a0c29d8e9d6 /embed.h
parent3c6cc85ea284b6b479dc5c19e0ca344a5e1103dc (diff)
downloadperl-6b976e32dcccdff3dde7682ad9314dc5cd918e17.tar.gz
regcomp.c: Use a parameter to simplify some code
When parsing \p{} outside of a bracketed character class, code in regcomp.c has pretended it is a bracketed character class by changing and restoring the parsing pointers, and then calling the charclass handler. This code can be simplified by instead passing a flag to the handler meaning to just parse one item. The faking is simpler there, with no restoring necessary. Also we can eliminate the duplicate handling of special cases. Future commits will make more extensive use of this mechanism.
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed.h b/embed.h
index ac543e5777..c0439a6771 100644
--- a/embed.h
+++ b/embed.h
@@ -935,7 +935,7 @@
#define reganode(a,b,c) S_reganode(aTHX_ a,b,c)
#define regatom(a,b,c) S_regatom(aTHX_ a,b,c)
#define regbranch(a,b,c,d) S_regbranch(aTHX_ a,b,c,d)
-#define regclass(a,b,c) S_regclass(aTHX_ a,b,c)
+#define regclass(a,b,c,d) S_regclass(aTHX_ a,b,c,d)
#define reginsert(a,b,c,d) S_reginsert(aTHX_ a,b,c,d)
#define regpiece(a,b,c) S_regpiece(aTHX_ a,b,c)
#define regpposixcc(a,b,c) S_regpposixcc(aTHX_ a,b,c)