diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-01-17 06:30:57 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-01-17 06:30:57 -0800 |
commit | 1620d8059f41c65bdf4dbde03f1b3c0d4cf41233 (patch) | |
tree | 33a958c60af0d024ea716d39e27267a7a4acc6ec /proto.h | |
parent | 60175f94ae4d64a920f29b11a9ba63fa99210cd7 (diff) | |
download | perl-1620d8059f41c65bdf4dbde03f1b3c0d4cf41233.tar.gz |
sv_buf_to_rw can be static
sv_buf_to_ro needs to be non-static because op.c uses it, but
sv_buf_to_rw is only called from sv.c.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -5507,11 +5507,13 @@ PERL_CALLCONV void Perl_sv_buf_to_ro(pTHX_ SV *sv) #define PERL_ARGS_ASSERT_SV_BUF_TO_RO \ assert(sv) -PERL_CALLCONV void Perl_sv_buf_to_rw(pTHX_ SV *sv) +# if defined(PERL_IN_SV_C) +STATIC void S_sv_buf_to_rw(pTHX_ SV *sv) __attribute__nonnull__(pTHX_1); #define PERL_ARGS_ASSERT_SV_BUF_TO_RW \ assert(sv) +# endif #endif #if defined(PERL_DEBUG_READONLY_OPS) PERL_CALLCONV PADOFFSET Perl_op_refcnt_dec(pTHX_ OP *o) |