summaryrefslogtreecommitdiff
path: root/scope.h
diff options
context:
space:
mode:
authorVincent Pit <perl@profvince.com>2008-12-28 13:49:41 +0100
committerVincent Pit <perl@profvince.com>2008-12-28 15:46:41 +0100
commitc68ec7a9f950f968bb39608a47e0228e03511a18 (patch)
tree8c91cd97a32669a380b021b83db95db30a3e6e4b /scope.h
parentd30e492cced9a7022652176a253f8f900679d9b0 (diff)
downloadperl-c68ec7a9f950f968bb39608a47e0228e03511a18.tar.gz
Add save_adelete()/SAVEADELETE() to save on the stack an array element delete
Diffstat (limited to 'scope.h')
-rw-r--r--scope.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/scope.h b/scope.h
index 70b7165a86..97e0d7aa3f 100644
--- a/scope.h
+++ b/scope.h
@@ -54,6 +54,7 @@
#define SAVEt_COMPILE_WARNINGS 43
#define SAVEt_STACK_CXPOS 44
#define SAVEt_PARSER 45
+#define SAVEt_ADELETE 46
#define SAVEf_SETMAGIC 1
@@ -142,6 +143,8 @@ Closing bracket on a callback. See C<ENTER> and L<perlcall>.
#define SAVESETSVFLAGS(sv,mask,val) save_set_svflags(sv,mask,val)
#define SAVEDELETE(h,k,l) \
save_delete(MUTABLE_HV(h), (char*)(k), (I32)(l))
+#define SAVEADELETE(a,k) \
+ save_adelete(MUTABLE_AV(a), (I32)(k))
#define SAVEDESTRUCTOR(f,p) \
save_destructor((DESTRUCTORFUNC_NOCONTEXT_t)(f), (void*)(p))