summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-11-26 22:25:18 +0000
committerNicholas Clark <nick@ccl4.org>2008-11-26 22:25:18 +0000
commit9c105995f0120a86f489fa9da8e150fc55635f02 (patch)
tree1616d443a1213e27344ffb50679b59392fae193a /proto.h
parent1f676739c0ff005ad6d6d4d3691c095800bc458c (diff)
downloadperl-9c105995f0120a86f489fa9da8e150fc55635f02.tar.gz
rxres_free() and rxres_restore() are only used in pp_ctl.c, so can be
static. Macros PUSHSUBST() and POPSUBST() are only viable in PERL_CORE. p4raw-id: //depot/perl@34935
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/proto.h b/proto.h
index 18071f8161..30faee8f35 100644
--- a/proto.h
+++ b/proto.h
@@ -2705,17 +2705,19 @@ PERL_CALLCONV int Perl_rsignal_save(pTHX_ int i, Sighandler_t t1, Sigsave_t* sav
assert(save)
PERL_CALLCONV Sighandler_t Perl_rsignal_state(pTHX_ int i);
-PERL_CALLCONV void Perl_rxres_free(pTHX_ void** rsp)
+#if defined(PERL_IN_PP_CTL_C)
+STATIC void S_rxres_free(pTHX_ void** rsp)
__attribute__nonnull__(pTHX_1);
#define PERL_ARGS_ASSERT_RXRES_FREE \
assert(rsp)
-PERL_CALLCONV void Perl_rxres_restore(pTHX_ void **rsp, REGEXP *rx)
+STATIC void S_rxres_restore(pTHX_ void **rsp, REGEXP *rx)
__attribute__nonnull__(pTHX_1)
__attribute__nonnull__(pTHX_2);
#define PERL_ARGS_ASSERT_RXRES_RESTORE \
assert(rsp); assert(rx)
+#endif
PERL_CALLCONV void Perl_rxres_save(pTHX_ void **rsp, REGEXP *rx)
__attribute__nonnull__(pTHX_1)
__attribute__nonnull__(pTHX_2);