summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-02-27 17:51:33 -0700
committerKarl Williamson <public@khwilliamson.com>2011-02-27 19:21:32 -0700
commitc229b64cfdf63c0671f41130fa3b2bb15dbf9779 (patch)
treec7a7104316a38747b25c453e723a0d8b0d8e17f5 /proto.h
parentc93d5d8be00caac56508448f35362b1b3fa58f02 (diff)
downloadperl-c229b64cfdf63c0671f41130fa3b2bb15dbf9779.tar.gz
regcomp.c: Add fcn add_cp_to_invlist()
This is just an inline shorthand when a single code point is all that is needed. A macro could have been used instead, but this just seemed nicer.
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 2faf6d5091..92e1ad3732 100644
--- a/proto.h
+++ b/proto.h
@@ -5960,6 +5960,9 @@ STATIC void S_add_alternate(pTHX_ AV** alternate_ptr, U8* string, STRLEN len)
#define PERL_ARGS_ASSERT_ADD_ALTERNATE \
assert(alternate_ptr); assert(string)
+PERL_STATIC_INLINE HV* S_add_cp_to_invlist(pTHX_ HV* invlist, const UV cp)
+ __attribute__warn_unused_result__;
+
STATIC U32 S_add_data(struct RExC_state_t *pRExC_state, U32 n, const char *s)
__attribute__warn_unused_result__
__attribute__nonnull__(1)