summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-09-23 14:12:09 -0600
committerKarl Williamson <khw@cpan.org>2015-10-11 10:48:32 -0600
commit88738d823fb3f072e9d615472f9d2dbe13456154 (patch)
treee9ca91a1ed9d6a62eb262c42e0a191545561b440 /proto.h
parent96af87ec0a6e6e24db4f385a01ebca73d72cfb00 (diff)
downloadperl-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.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/proto.h b/proto.h
index 79ad937932..df82647679 100644
--- a/proto.h
+++ b/proto.h
@@ -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)