summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-11-30 23:16:09 +0000
committerDavid Mitchell <davem@iabyn.com>2009-03-30 14:30:26 +0100
commit3249687c8f7c1d9e87133f62a96ea4a106712ca5 (patch)
tree17ce88e4ba309c7e957695a3b30fd4a7b9f71c39 /proto.h
parenteadabbf13a2add65178930dabb5f0e48c8fdfa8f (diff)
downloadperl-3249687c8f7c1d9e87133f62a96ea4a106712ca5.tar.gz
Refactor all of the code of the form
SSCHECK(3); SSPUSHPTR(ptr1); SSPUSHPTR(ptr2); SSPUSHINT(type); into a static function S_save_pushptrptr(). It might be possible to make some of its callers trivial macros, and so eliminate them as functions. But start with the easy part. p4raw-id: //depot/perl@34957 (cherry-picked from commit e22024d3cff7db1071a80c1941fd213f9e45cd7c)
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index ae871b9b0a..3df8ea9e56 100644
--- a/proto.h
+++ b/proto.h
@@ -2922,6 +2922,9 @@ PERL_CALLCONV SV* Perl_save_svref(pTHX_ SV** sptr)
assert(sptr)
PERL_CALLCONV void Perl_save_pushptr(pTHX_ void *const ptr, const int type);
+#if defined(PERL_IN_SCOPE_C)
+STATIC void S_save_pushptrptr(pTHX_ void *const ptr1, void *const ptr2, const int type);
+#endif
PERL_CALLCONV OP* Perl_sawparens(pTHX_ OP* o);
PERL_CALLCONV OP* Perl_scalar(pTHX_ OP* o);
PERL_CALLCONV OP* Perl_scalarkids(pTHX_ OP* o);