summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorRichard Hitt <rbh00@utsglobal.com>2002-12-06 08:47:42 -0800
committerhv <hv@crypt.org>2002-12-17 01:43:28 +0000
commit9febdf04c602e91a389f75497c9add388bc632ec (patch)
tree5997238a86666e4319034761549523a4335f8e31 /scope.c
parentc7c737cb28949ebe168789b54bc0a5da1ada7664 (diff)
downloadperl-9febdf04c602e91a389f75497c9add388bc632ec.tar.gz
[Fwd: Patch for perl utf8-related bug]
[perl #18932] p4raw-id: //depot/perl@18312
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/scope.c b/scope.c
index 8691057527..0896bd49dc 100644
--- a/scope.c
+++ b/scope.c
@@ -391,6 +391,15 @@ Perl_save_long(pTHX_ long int *longp)
}
void
+Perl_save_bool(pTHX_ bool *boolp)
+{
+ SSCHECK(3);
+ SSPUSHBOOL(*boolp);
+ SSPUSHPTR(boolp);
+ SSPUSHINT(SAVEt_BOOL);
+}
+
+void
Perl_save_I32(pTHX_ I32 *intp)
{
SSCHECK(3);
@@ -789,6 +798,10 @@ Perl_leave_scope(pTHX_ I32 base)
ptr = SSPOPPTR;
*(long*)ptr = (long)SSPOPLONG;
break;
+ case SAVEt_BOOL: /* bool reference */
+ ptr = SSPOPPTR;
+ *(bool*)ptr = (bool)SSPOPBOOL;
+ break;
case SAVEt_I32: /* I32 reference */
ptr = SSPOPPTR;
*(I32*)ptr = (I32)SSPOPINT;