From 9c105995f0120a86f489fa9da8e150fc55635f02 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Wed, 26 Nov 2008 22:25:18 +0000 Subject: 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 --- proto.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'proto.h') 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); -- cgit v1.2.1