summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-01-28 15:44:04 +0000
committerNicholas Clark <nick@ccl4.org>2006-01-28 15:44:04 +0000
commit5c1737d116a34c9fc2f84dad1ca8ff52ccdaaa64 (patch)
tree35038b20dc63be53277b64fae3fe2aeafa04276a /handy.h
parent5d581361370ea6b2ccaa8b33836e4524ded42d12 (diff)
downloadperl-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/handy.h b/handy.h
index 445611118b..66ce4d125c 100644
--- a/handy.h
+++ b/handy.h
@@ -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