summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-01-23 14:44:59 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-01-23 14:44:59 +0000
commit92e67595817e2efa2a2f6c3e6498b1f1babb5fbd (patch)
tree76b73812aa48ecb7c930efd8074555c3ce07c6f3 /sv.c
parentc9869e1c0cac4f243c84d27552ad981d5363e0f7 (diff)
downloadperl-92e67595817e2efa2a2f6c3e6498b1f1babb5fbd.tar.gz
Un-const magic virtual tables; this consting breaks the nasty
things done by Swig, as noticed by Audrey. p4raw-id: //depot/perl@26924
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index 6c884b04f9..60237b666a 100644
--- a/sv.c
+++ b/sv.c
@@ -4060,7 +4060,7 @@ to contain an C<SV*> and is stored as-is with its REFCNT incremented.
=cut
*/
MAGIC *
-Perl_sv_magicext(pTHX_ SV* sv, SV* obj, int how, const MGVTBL *vtable,
+Perl_sv_magicext(pTHX_ SV* sv, SV* obj, int how, MGVTBL *vtable,
const char* name, I32 namlen)
{
dVAR;
@@ -4149,7 +4149,7 @@ void
Perl_sv_magic(pTHX_ register SV *sv, SV *obj, int how, const char *name, I32 namlen)
{
dVAR;
- const MGVTBL *vtable;
+ MGVTBL *vtable;
MAGIC* mg;
#ifdef PERL_OLD_COPY_ON_WRITE