summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/scope.c b/scope.c
index 8a7d0ce5f8..56387e8b13 100644
--- a/scope.c
+++ b/scope.c
@@ -120,7 +120,7 @@ free_tmps(void)
}
}
-static SV *
+STATIC SV *
save_scalar_at(SV **sptr)
{
dTHR;
@@ -450,7 +450,11 @@ save_list(register SV **sarg, I32 maxsarg)
}
void
+#ifdef PERL_OBJECT
+save_destructor(DESTRUCTORFUNC f, void* p)
+#else
save_destructor(void (*f) (void *), void *p)
+#endif
{
dTHR;
SSCHECK(3);
@@ -686,7 +690,7 @@ leave_scope(I32 base)
break;
case SAVEt_DESTRUCTOR:
ptr = SSPOPPTR;
- (*SSPOPDPTR)(ptr);
+ (CALLDESTRUCTOR)(ptr);
break;
case SAVEt_REGCONTEXT:
{