summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-21 20:01:14 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-21 20:01:14 +0000
commit8fb26106616b06907474b33cfb67b5e1e186bd1a (patch)
tree2312f9ce46f627ef9c4bedab01518bbb9dd2be31 /mg.c
parentb363b71387982836a5629ce821dc43de9f38573c (diff)
downloadperl-8fb26106616b06907474b33cfb67b5e1e186bd1a.tar.gz
Retract the #10417 mg.c and embed.pl parts because of
strange SEGVs in 64bit x86 FreeBSD observed by Nicholas Clark. p4raw-id: //depot/perl@10798
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mg.c b/mg.c
index 0cf8228099..65b2f965da 100644
--- a/mg.c
+++ b/mg.c
@@ -40,7 +40,7 @@ struct magic_state {
/* MGS is typedef'ed to struct magic_state in perl.h */
STATIC void
-S_save_magic(pTHX_ IV mgs_ix, SV *sv)
+S_save_magic(pTHX_ I32 mgs_ix, SV *sv)
{
MGS* mgs;
assert(SvMAGICAL(sv));
@@ -93,7 +93,7 @@ Do magic after a value is retrieved from the SV. See C<sv_magic>.
int
Perl_mg_get(pTHX_ SV *sv)
{
- IV mgs_ix;
+ I32 mgs_ix;
MAGIC* mg;
MAGIC** mgp;
int mgp_valid = 0;
@@ -135,7 +135,7 @@ Do magic after a value is assigned to the SV. See C<sv_magic>.
int
Perl_mg_set(pTHX_ SV *sv)
{
- IV mgs_ix;
+ I32 mgs_ix;
MAGIC* mg;
MAGIC* nextmg;
@@ -175,7 +175,7 @@ Perl_mg_length(pTHX_ SV *sv)
for (mg = SvMAGIC(sv); mg; mg = mg->mg_moremagic) {
MGVTBL* vtbl = mg->mg_virtual;
if (vtbl && vtbl->svt_len) {
- IV mgs_ix;
+ I32 mgs_ix;
mgs_ix = SSNEW(sizeof(MGS));
save_magic(mgs_ix, sv);
@@ -190,7 +190,7 @@ Perl_mg_length(pTHX_ SV *sv)
return len;
}
-IV
+I32
Perl_mg_size(pTHX_ SV *sv)
{
MAGIC* mg;
@@ -199,7 +199,7 @@ Perl_mg_size(pTHX_ SV *sv)
for (mg = SvMAGIC(sv); mg; mg = mg->mg_moremagic) {
MGVTBL* vtbl = mg->mg_virtual;
if (vtbl && vtbl->svt_len) {
- IV mgs_ix;
+ I32 mgs_ix;
mgs_ix = SSNEW(sizeof(MGS));
save_magic(mgs_ix, sv);
@@ -234,7 +234,7 @@ Clear something magical that the SV represents. See C<sv_magic>.
int
Perl_mg_clear(pTHX_ SV *sv)
{
- IV mgs_ix;
+ I32 mgs_ix;
MAGIC* mg;
mgs_ix = SSNEW(sizeof(MGS));