summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2016-07-27 18:35:22 -0700
committerFather Chrysostomos <sprout@cpan.org>2016-07-27 22:10:17 -0700
commitf8c1150140e8f939dc97b3c3554dd59f92b7b0af (patch)
treeae51eb048b3ddf98ea93905ffa514684c26e13a0 /scope.c
parent8657e86b4fb3c8cf23a0c23b7093dda2e79b462b (diff)
downloadperl-f8c1150140e8f939dc97b3c3554dd59f92b7b0af.tar.gz
Unmathomize save_iv
I need to call it from toke.c.
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/scope.c b/scope.c
index 55f801ab32..408c6f3d25 100644
--- a/scope.c
+++ b/scope.c
@@ -497,6 +497,17 @@ Perl_save_strlen(pTHX_ STRLEN *ptr)
SS_ADD_END(3);
}
+void
+Perl_save_iv(pTHX_ IV *ivp)
+{
+ PERL_ARGS_ASSERT_SAVE_IV;
+
+ SSCHECK(3);
+ SSPUSHIV(*ivp);
+ SSPUSHPTR(ivp);
+ SSPUSHUV(SAVEt_IV);
+}
+
/* Cannot use save_sptr() to store a char* since the SV** cast will
* force word-alignment and we'll miss the pointer.
*/