diff options
author | Karl Williamson <public@khwilliamson.com> | 2011-02-27 17:51:33 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2011-02-27 19:21:32 -0700 |
commit | c229b64cfdf63c0671f41130fa3b2bb15dbf9779 (patch) | |
tree | c7a7104316a38747b25c453e723a0d8b0d8e17f5 /proto.h | |
parent | c93d5d8be00caac56508448f35362b1b3fa58f02 (diff) | |
download | perl-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |