summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorMike Guy <mjtg@cam.ac.uk>2000-08-14 16:26:55 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-14 15:22:14 +0000
commita29d06eddb19ab1d6c524328bb98500ebb28dcdb (patch)
tree44e6944c9a337d9f3f500fd6bff27e6dcfbc49cc /mg.c
parent4f8394d50d9807c4290f54c9461bcd33aec30e0f (diff)
downloadperl-a29d06eddb19ab1d6c524328bb98500ebb28dcdb.tar.gz
Re: [PATCH] @+, @- readonly
Message-Id: <E13OLCZ-00020N-00@libra.cus.cam.ac.uk> p4raw-id: //depot/perl@6620
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index 06140994cf..95f20ad622 100644
--- a/mg.c
+++ b/mg.c
@@ -373,13 +373,19 @@ Perl_magic_regdatum_get(pTHX_ SV *sv, MAGIC *mg)
i = t;
else /* @- */
i = s;
- SvREADONLY_on(sv);
sv_setiv(sv,i);
}
}
return 0;
}
+int
+Perl_magic_regdatum_set(pTHX_ SV *sv, MAGIC *mg)
+{
+ dTHR;
+ Perl_croak(aTHX_ PL_no_modify);
+}
+
U32
Perl_magic_len(pTHX_ SV *sv, MAGIC *mg)
{