summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-07-26 17:53:31 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-07-26 17:53:31 +0000
commitf4d13ee9d0b78f23038694a8d4237f00da3ad10c (patch)
tree108fd1ba1a50ecae4676be3f211323ef2dc63a40 /sv.c
parented8504609e65bf608915df5053decb2c1e5c56e9 (diff)
downloadperl-f4d13ee9d0b78f23038694a8d4237f00da3ad10c.tar.gz
Fix *foo{FORMAT}.
From: "H.Merijn Brand" <h.m.brand@hccnet.nl> Subject: Re: Looking for a starting point (Mark-Jason?, Chip?, Jarkko?) Date: Wed, 26 Jul 2000 19:51:02 +0200 Message-Id: <20000726194952.41DD.H.M.BRAND@hccnet.nl> From: Graham Barr <gbarr@pobox.com> Subject: Re: Looking for a starting point (Mark-Jason?, Chip?, Jarkko?) Date: Wed, 26 Jul 2000 17:38:36 +0100 Message-ID: <20000726173836.L472@pobox.com> p4raw-id: //depot/perl@6445
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index 60db71848f..e248d144b0 100644
--- a/sv.c
+++ b/sv.c
@@ -2831,6 +2831,13 @@ Perl_sv_setsv(pTHX_ SV *dstr, register SV *sstr)
dref = (SV*)GvIOp(dstr);
GvIOp(dstr) = (IO*)sref;
break;
+ case SVt_PVFM:
+ if (intro)
+ SAVESPTR(GvFORM(dstr));
+ else
+ dref = (SV*)GvFORM(dstr);
+ GvFORM(dstr) = (CV*)sref;
+ break;
default:
if (intro)
SAVESPTR(GvSV(dstr));