summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-12-08 02:22:31 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-12-08 02:22:31 +0000
commite8347627432a616ec1485de221b2cd8c9e311c8b (patch)
treefc61d6fefbec8f2731573b6fda30cb8a504a34ae /scope.c
parentbebdddfcca3c4bc8bb36ffcdf9e008f3b39772bf (diff)
downloadperl-e8347627432a616ec1485de221b2cd8c9e311c8b.tar.gz
introduce save_I8() for saving byte values
p4raw-id: //depot/perl@4665
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/scope.c b/scope.c
index c0559dad17..7052282edb 100644
--- a/scope.c
+++ b/scope.c
@@ -405,6 +405,16 @@ Perl_save_I16(pTHX_ I16 *intp)
}
void
+Perl_save_I8(pTHX_ I8 *bytep)
+{
+ dTHR;
+ SSCHECK(3);
+ SSPUSHINT(*bytep);
+ SSPUSHPTR(bytep);
+ SSPUSHINT(SAVEt_I8);
+}
+
+void
Perl_save_iv(pTHX_ IV *ivp)
{
dTHR;
@@ -751,6 +761,10 @@ Perl_leave_scope(pTHX_ I32 base)
ptr = SSPOPPTR;
*(I16*)ptr = (I16)SSPOPINT;
break;
+ case SAVEt_I8: /* I8 reference */
+ ptr = SSPOPPTR;
+ *(I8*)ptr = (I8)SSPOPINT;
+ break;
case SAVEt_IV: /* IV reference */
ptr = SSPOPPTR;
*(IV*)ptr = (IV)SSPOPIV;