summaryrefslogtreecommitdiff
path: root/mathoms.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-11-30 22:46:37 +0000
committerNicholas Clark <nick@ccl4.org>2008-11-30 22:46:37 +0000
commit2fd8beea017eccf05d12bfa6e4db7c5340ce637b (patch)
tree49346b27333d4b5a7519f212fe63cced96e2933a /mathoms.c
parentc6ae76470e6575530141df6c32cf71111bc2e391 (diff)
downloadperl-2fd8beea017eccf05d12bfa6e4db7c5340ce637b.tar.gz
Convert all the scope save functions of the form
SSCHECK(2); SSPUSHPTR(o); SSPUSHINT(SAVEt_FREEOP); into a single function Perl_save_pushptr(ptr, type), which the others call. Implement the others as macros. This reduces the object code size. p4raw-id: //depot/perl@34956
Diffstat (limited to 'mathoms.c')
-rw-r--r--mathoms.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/mathoms.c b/mathoms.c
index 2b765b8db8..3bdba65052 100644
--- a/mathoms.c
+++ b/mathoms.c
@@ -1429,6 +1429,44 @@ Perl_sv_insert(pTHX_ SV *const bigstr, const STRLEN offset, const STRLEN len,
sv_insert_flags(bigstr, offset, len, little, littlelen, SV_GMAGIC);
}
+void
+Perl_save_freesv(pTHX_ SV *sv)
+{
+ dVAR;
+ save_freesv(sv);
+}
+
+void
+Perl_save_mortalizesv(pTHX_ SV *sv)
+{
+ dVAR;
+
+ PERL_ARGS_ASSERT_SAVE_MORTALIZESV;
+
+ save_mortalizesv(sv);
+}
+
+void
+Perl_save_freeop(pTHX_ OP *o)
+{
+ dVAR;
+ save_freeop(o);
+}
+
+void
+Perl_save_freepv(pTHX_ char *pv)
+{
+ dVAR;
+ save_freepv(pv);
+}
+
+void
+Perl_save_op(pTHX)
+{
+ dVAR;
+ save_op();
+}
+
#endif /* NO_MATHOMS */
/*