diff options
author | Richard Hitt <rbh00@utsglobal.com> | 2002-12-06 08:47:42 -0800 |
---|---|---|
committer | hv <hv@crypt.org> | 2002-12-17 01:43:28 +0000 |
commit | 9febdf04c602e91a389f75497c9add388bc632ec (patch) | |
tree | 5997238a86666e4319034761549523a4335f8e31 /scope.c | |
parent | c7c737cb28949ebe168789b54bc0a5da1ada7664 (diff) | |
download | perl-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.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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; |