diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-10-31 08:55:20 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-10-31 08:55:20 +0000 |
commit | 159b6efe04c56d08ae56a63921b5ab3a69ac2ee9 (patch) | |
tree | d48340b2de188981511861f9089de49d53b12874 /handy.h | |
parent | 88e52f1cd82cd6da272e85a8b52d3a27cf1db31e (diff) | |
download | perl-159b6efe04c56d08ae56a63921b5ab3a69ac2ee9.tar.gz |
Add MUTABLE_GV(), and eliminate (V *) casts in *.c.
Can't easily do gv.h, as GvGP() (at least) needs to split into two
macros - one const for reading, one non-const for writing.
p4raw-id: //depot/perl@34679
Diffstat (limited to 'handy.h')
-rw-r--r-- | handy.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -56,6 +56,7 @@ Null SV pointer. (No longer available when C<PERL_CORE> is defined.) #define MUTABLE_AV(p) ((AV *)MUTABLE_PTR(p)) #define MUTABLE_CV(p) ((CV *)MUTABLE_PTR(p)) +#define MUTABLE_GV(p) ((GV *)MUTABLE_PTR(p)) #define MUTABLE_HV(p) ((HV *)MUTABLE_PTR(p)) #define MUTABLE_IO(p) ((IO *)MUTABLE_PTR(p)) #define MUTABLE_SV(p) ((SV *)MUTABLE_PTR(p)) |