summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-07-05 20:26:43 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-07-05 20:26:43 +0000
commit0f303493c65bc7de97980f1ff363e7d45c736c65 (patch)
tree796a15f826fc05502fd59b75e92ed274c1ebe66a /gv.c
parent10609e9a342de3bae37d4ac9f8d8bc93c0a4e896 (diff)
downloadperl-0f303493c65bc7de97980f1ff363e7d45c736c65.tar.gz
add comments on GV_FOO constants, s/8/GV_ADDINEVAL/
p4raw-id: //depot/perl@1322
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gv.c b/gv.c
index 9358ba3a1c..035f22cdab 100644
--- a/gv.c
+++ b/gv.c
@@ -460,7 +460,7 @@ gv_fetchpv(char *nambeg, I32 add, I32 sv_type)
gv = gvp ? *gvp : Nullgv;
if (gv && gv != (GV*)&sv_undef) {
if (SvTYPE(gv) != SVt_PVGV)
- gv_init(gv, stash, tmpbuf, len, (add & 2));
+ gv_init(gv, stash, tmpbuf, len, (add & GV_ADDMULTI));
else
GvMULTI_on(gv);
}
@@ -563,7 +563,7 @@ gv_fetchpv(char *nambeg, I32 add, I32 sv_type)
if (!stash) {
if (!add)
return Nullgv;
- if (add & ~2) {
+ if (add & ~GV_ADDMULTI) {
char sv_type_char = ((sv_type == SVt_PV) ? '$'
: (sv_type == SVt_PVAV) ? '@'
: (sv_type == SVt_PVHV) ? '%'