summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-02-26 10:16:20 -0700
committerKarl Williamson <public@khwilliamson.com>2011-02-27 19:21:31 -0700
commitc52a3e710d22e427503266cd12c740eaf81515ea (patch)
treeee1fcbc1aea89b546e36b011816246bd26fbc180 /proto.h
parent2644ea75792e7142cc4124f2579ddfe278e562c0 (diff)
downloadperl-c52a3e710d22e427503266cd12c740eaf81515ea.tar.gz
regcomp.c: accept NULL as inversion list param
Change the function add_range_to_invlist() to accept NULL as the inversion list, in which case it creates it. A common usage of this function is to create the list if it doesn't exist before calling it, so this just makes that code once.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/proto.h b/proto.h
index d4642aa5eb..9c13f8f3ae 100644
--- a/proto.h
+++ b/proto.h
@@ -5961,11 +5961,8 @@ STATIC U32 S_add_data(struct RExC_state_t *pRExC_state, U32 n, const char *s)
#define PERL_ARGS_ASSERT_ADD_DATA \
assert(pRExC_state); assert(s)
-STATIC HV* S_add_range_to_invlist(pTHX_ HV* const invlist, const UV start, const UV end)
- __attribute__warn_unused_result__
- __attribute__nonnull__(pTHX_1);
-#define PERL_ARGS_ASSERT_ADD_RANGE_TO_INVLIST \
- assert(invlist)
+STATIC HV* S_add_range_to_invlist(pTHX_ HV* invlist, const UV start, const UV end)
+ __attribute__warn_unused_result__;
STATIC void S_checkposixcc(pTHX_ struct RExC_state_t *pRExC_state)
__attribute__nonnull__(pTHX_1);