summaryrefslogtreecommitdiff
path: root/gv.h
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.h
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.h')
-rw-r--r--gv.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/gv.h b/gv.h
index 2cb24388e7..8d987edbc4 100644
--- a/gv.h
+++ b/gv.h
@@ -127,7 +127,11 @@ HV *GvHVn();
#define DM_EGID 0x020
#define DM_DELAY 0x100
-#define GV_ADD 0x01
-#define GV_ADDMULTI 0x02
-#define GV_ADDWARN 0x04
-#define GV_NOINIT 0x10 /* 8 is used without a symbolic constant */
+/*
+ * symbol creation flags, for use in gv_fetchpv() and perl_get_*v()
+ */
+#define GV_ADD 0x01 /* add, if symbol not already there */
+#define GV_ADDMULTI 0x02 /* add, pretending it has been added already */
+#define GV_ADDWARN 0x04 /* add, but warn if symbol wasn't already there */
+#define GV_ADDINEVAL 0x08 /* add, as though we're doing so within an eval */
+#define GV_NOINIT 0x10 /* add, but don't init symbol, if type != PVGV */