diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-09-18 21:52:25 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-09-18 21:52:25 +0000 |
commit | 51a37f8016223ef5212790d4185d213114f2fd9b (patch) | |
tree | b3648ca0b191c5a7fb60a438e6ad2a4ef7516601 /gv.c | |
parent | 2b33924249a3e03558df740efaba2154c35e2bcb (diff) | |
download | perl-51a37f8016223ef5212790d4185d213114f2fd9b.tar.gz |
It looks like the only way to reliably make Perl_hv_name_set a pure
macro in 5.8.x is to make it available as hv_name_set.
[Otherwise when and where aTHX_ hv gets expanded to foo, hv causes
warnings or other games when Perl_hv_name_set() is a macro]
p4raw-id: //depot/perl@25475
Diffstat (limited to 'gv.c')
-rw-r--r-- | gv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -669,7 +669,7 @@ Perl_gv_stashpvn(pTHX_ const char *name, U32 namelen, I32 create) GvHV(tmpgv) = newHV(); stash = GvHV(tmpgv); if (!HvNAME_get(stash)) - Perl_hv_name_set(aTHX_ stash, name, namelen, 0); + hv_name_set(stash, name, namelen, 0); return stash; } @@ -759,7 +759,7 @@ Perl_gv_fetchpvn_flags(pTHX_ const char *nambeg, STRLEN full_len, I32 flags, stash = GvHV(gv) = newHV(); if (!HvNAME_get(stash)) - Perl_hv_name_set(aTHX_ stash, nambeg, namend - nambeg, 0); + hv_name_set(stash, nambeg, namend - nambeg, 0); } if (*namend == ':') |