summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-12-27 10:39:02 -0700
committerKarl Williamson <khw@cpan.org>2016-02-10 21:16:43 -0700
commit6421685ecc2e22ca71451c4a545a2a2593260491 (patch)
tree37059caf1246b9fe5549e4ef2ffca6ddf7120665 /proto.h
parent26edd312d375cfe44d81eedb8694435022e2d8dd (diff)
downloadperl-6421685ecc2e22ca71451c4a545a2a2593260491.tar.gz
regcomp.c: Extract duped code into one fcn
This takes code that was duplicated and makes it into a single static inline function, so that maintenance tasks don't have to be done on both copies.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index 0084440e02..4f2d6871a5 100644
--- a/proto.h
+++ b/proto.h
@@ -4750,6 +4750,9 @@ PERL_STATIC_INLINE STRLEN* S_get_invlist_iter_addr(SV* invlist)
STATIC bool S_grok_bslash_N(pTHX_ RExC_state_t *pRExC_state, regnode** nodep, UV *code_point_p, int* cp_count, I32 *flagp, const U32 depth);
#define PERL_ARGS_ASSERT_GROK_BSLASH_N \
assert(pRExC_state); assert(flagp)
+PERL_STATIC_INLINE regnode* S_handle_named_backref(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, char * parse_start, char ch);
+#define PERL_ARGS_ASSERT_HANDLE_NAMED_BACKREF \
+ assert(pRExC_state); assert(flagp); assert(parse_start)
STATIC int S_handle_possible_posix(pTHX_ RExC_state_t *pRExC_state, const char* const s, char ** updated_parse_ptr, AV** posix_warnings);
#define PERL_ARGS_ASSERT_HANDLE_POSSIBLE_POSIX \
assert(pRExC_state); assert(s)