diff options
author | Vincent Pit <perl@profvince.com> | 2009-07-25 00:43:56 +0200 |
---|---|---|
committer | Vincent Pit <perl@profvince.com> | 2009-07-25 23:26:06 +0200 |
commit | 75d34a09f38381e487470136b539a7fba0f02b44 (patch) | |
tree | e95f445ae544e45ed74cdaace574f50591d435d5 /scope.h | |
parent | 91d1c79f6c648258e3465cf0cdbe8df3ab262de1 (diff) | |
download | perl-75d34a09f38381e487470136b539a7fba0f02b44.tar.gz |
Add a new SAVEf_KEEPOLDELEM flag to save_scalar_at() and save_{a,h}elem_flags()
When set, save_scalar_at() doesn't replace the given SV by a fresh new one. local magic is not called in this case.
Diffstat (limited to 'scope.h')
-rw-r--r-- | scope.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -57,6 +57,7 @@ #define SAVEt_ADELETE 46 #define SAVEf_SETMAGIC 1 +#define SAVEf_KEEPOLDELEM 2 #define save_aelem(av,idx,sptr) save_aelem_flags(av,idx,sptr,SAVEf_SETMAGIC) #define save_helem(hv,key,sptr) save_helem_flags(hv,key,sptr,SAVEf_SETMAGIC) |