diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-01-28 15:44:04 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-01-28 15:44:04 +0000 |
commit | 5c1737d116a34c9fc2f84dad1ca8ff52ccdaaa64 (patch) | |
tree | 35038b20dc63be53277b64fae3fe2aeafa04276a /handy.h | |
parent | 5d581361370ea6b2ccaa8b33836e4524ded42d12 (diff) | |
download | perl-5c1737d116a34c9fc2f84dad1ca8ff52ccdaaa64.tar.gz |
Add gv_fetchpvs, which uses STR_WITH_LEN to call gv_fetchpvn_flags.
Many strlen()s saved.
p4raw-id: //depot/perl@26983
Diffstat (limited to 'handy.h')
-rw-r--r-- | handy.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -250,8 +250,10 @@ typedef U64TYPE U64; #define sv_catpvs(sv, str) Perl_sv_catpvn_flags(aTHX_ sv, STR_WITH_LEN(str), SV_GMAGIC) #define savepvs(str) Perl_savepvn(aTHX_ STR_WITH_LEN(str)) #define gv_stashpvs(str, create) Perl_gv_stashpvn(aTHX_ STR_WITH_LEN(str), create) +#define gv_fetchpvs(namebeg, add, sv_type) Perl_gv_fetchpvn_flags(aTHX_ STR_WITH_LEN(namebeg), add, sv_type) #define hv_fetchs(hv,key,lval) Perl_hv_fetch(aTHX_ hv, STR_WITH_LEN(key), lval) + /* =head1 Miscellaneous Functions |