diff options
author | Karl Williamson <khw@cpan.org> | 2015-09-23 14:12:09 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2015-10-11 10:48:32 -0600 |
commit | 88738d823fb3f072e9d615472f9d2dbe13456154 (patch) | |
tree | e9ca91a1ed9d6a62eb262c42e0a191545561b440 /proto.h | |
parent | 96af87ec0a6e6e24db4f385a01ebca73d72cfb00 (diff) | |
download | perl-88738d823fb3f072e9d615472f9d2dbe13456154.tar.gz |
regcomp.c: Fold only use of static function into its caller
regpatws() is only used in one place, and is dangerous to retain it as a
named entity. This is because wherever white space is to be skipped,
(#...) comments are to be as well, so the function that does both things
should be called instead of this one.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -4783,11 +4783,6 @@ STATIC void S_reginsert(pTHX_ RExC_state_t *pRExC_state, U8 op, regnode *opnd, U STATIC regnode* S_regnode_guts(pTHX_ RExC_state_t *pRExC_state, const U8 op, const STRLEN extra_len, const char* const name); #define PERL_ARGS_ASSERT_REGNODE_GUTS \ assert(pRExC_state); assert(name) -STATIC char * S_regpatws(RExC_state_t *pRExC_state, char *p, const bool recognize_comment) - __attribute__warn_unused_result__; -#define PERL_ARGS_ASSERT_REGPATWS \ - assert(pRExC_state); assert(p) - STATIC regnode* S_regpiece(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth); #define PERL_ARGS_ASSERT_REGPIECE \ assert(pRExC_state); assert(flagp) |