Revert "rfilter initialized to UNDEFINED."

This reverts commit 716c2ceccf.
This commit is contained in:
nhmall
2018-11-23 22:17:03 -05:00
parent 5e5e321378
commit bf3602eb1b
3 changed files with 3 additions and 8 deletions
-7
View File
@@ -22,13 +22,6 @@
0 \ 0 \
} }
/* UNDEFINED and UNDEFINED_PTR are used to initialize variables whose
initialized value is not relied upon. UNDEFINED can be used to
initialized any value type except pointers. UNDEFINED_PTR can be used
only on pointer types. */
#define UNDEFINED { 0 }
#define UNDEFINED_PTR NULL
/* symbolic names for capacity levels */ /* symbolic names for capacity levels */
enum encumbrance_types { enum encumbrance_types {
UNENCUMBERED = 0, UNENCUMBERED = 0,
+2
View File
@@ -325,6 +325,8 @@ decl_init()
return; return;
} }
#define UNDEFINED { 0 } /* move to hack.h if we are keeping */
#define UNDEFINED_PTR NULL /* move to hack.h if we are keeping */
#define IVMAGIC 0xdeadbeef #define IVMAGIC 0xdeadbeef
const struct instance_globals g_init = { const struct instance_globals g_init = {
+1 -1
View File
@@ -769,7 +769,7 @@ const struct Align aligns[] = {
static struct { static struct {
boolean roles[SIZE(roles)]; boolean roles[SIZE(roles)];
short mask; short mask;
} rfilter = UNDEFINED; } rfilter;
STATIC_DCL int NDECL(randrole_filtered); STATIC_DCL int NDECL(randrole_filtered);
STATIC_DCL char *FDECL(promptsep, (char *, int)); STATIC_DCL char *FDECL(promptsep, (char *, int));