diff options
author | Karl Williamson <public@khwilliamson.com> | 2011-02-26 10:16:20 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2011-02-27 19:21:31 -0700 |
commit | c52a3e710d22e427503266cd12c740eaf81515ea (patch) | |
tree | ee1fcbc1aea89b546e36b011816246bd26fbc180 /proto.h | |
parent | 2644ea75792e7142cc4124f2579ddfe278e562c0 (diff) | |
download | perl-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.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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); |