summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-11-26 19:36:06 +0000
committerNicholas Clark <nick@ccl4.org>2008-11-26 19:36:06 +0000
commitb7783a124ffeaab87679eba041dd9997f4d5372a (patch)
treeaf245ee575199fdd19d5d912348560ee4e2f5f53 /proto.h
parente3cf49e2e2df78528afdd14c4a3219cf5059e6eb (diff)
downloadperl-b7783a124ffeaab87679eba041dd9997f4d5372a.tar.gz
force_list(), fold_constants() and gen_constant_list() can be static.
p4raw-id: //depot/perl@34924
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/proto.h b/proto.h
index 8d25afb7e5..6187a98794 100644
--- a/proto.h
+++ b/proto.h
@@ -798,12 +798,14 @@ PERL_CALLCONV char* Perl_find_script(pTHX_ const char *scriptname, bool dosearch
#define PERL_ARGS_ASSERT_FIND_SCRIPT \
assert(scriptname)
-PERL_CALLCONV OP* Perl_force_list(pTHX_ OP* arg);
-PERL_CALLCONV OP* Perl_fold_constants(pTHX_ OP *o)
+#if defined(PERL_IN_OP_C)
+STATIC OP* S_force_list(pTHX_ OP* arg);
+STATIC OP* S_fold_constants(pTHX_ OP *o)
__attribute__nonnull__(pTHX_1);
#define PERL_ARGS_ASSERT_FOLD_CONSTANTS \
assert(o)
+#endif
PERL_CALLCONV char* Perl_form(pTHX_ const char* pat, ...)
__attribute__format__(__printf__,pTHX_1,pTHX_2)
__attribute__nonnull__(pTHX_1);
@@ -816,7 +818,7 @@ PERL_CALLCONV char* Perl_vform(pTHX_ const char* pat, va_list* args)
assert(pat)
PERL_CALLCONV void Perl_free_tmps(pTHX);
-PERL_CALLCONV OP* Perl_gen_constant_list(pTHX_ OP* o);
+STATIC OP* S_gen_constant_list(pTHX_ OP* o);
#if !defined(HAS_GETENV_LEN)
PERL_CALLCONV char* Perl_getenv_len(pTHX_ const char *env_elem, unsigned long *len)
__attribute__nonnull__(pTHX_1)