X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=gv.h;h=fc9985a2df2ed0e85faaba31dcf4d0fa18427b1a;hb=98eae8f585b9800849b5e5482e2d405f21bab67e;hp=8a8ac656e999dfedd77140dfaf7138ed5a3d12a4;hpb=aa6893958c2bfb6fa4ab923c8466c188c65748fd;p=p5sagit%2Fp5-mst-13.2.git diff --git a/gv.h b/gv.h index 8a8ac65..fc9985a 100644 --- a/gv.h +++ b/gv.h @@ -1,6 +1,6 @@ /* gv.h * - * Copyright (c) 1991-1994, Larry Wall + * Copyright (c) 1991-1999, Larry Wall * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. @@ -127,6 +127,12 @@ HV *GvHVn(); #define DM_EGID 0x020 #define DM_DELAY 0x100 -#define GV_ADD 0x01 -#define GV_ADDMULTI 0x02 -#define GV_ADDWARN 0x04 +/* + * symbol creation flags, for use in gv_fetchpv() and 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 */ +#define GV_ADDOUR 0x20 /* add "our" variable */