rfilter initialized to UNDEFINED.

This commit is contained in:
Bart House
2018-11-23 10:15:22 -08:00
parent 6a78b203e4
commit 716c2ceccf
3 changed files with 8 additions and 3 deletions

View File

@@ -22,6 +22,13 @@
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 */
enum encumbrance_types {
UNENCUMBERED = 0,

View File

@@ -325,8 +325,6 @@ decl_init()
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
const struct instance_globals g_init = {

View File

@@ -769,7 +769,7 @@ const struct Align aligns[] = {
static struct {
boolean roles[SIZE(roles)];
short mask;
} rfilter;
} rfilter = UNDEFINED;
STATIC_DCL int NDECL(randrole_filtered);
STATIC_DCL char *FDECL(promptsep, (char *, int));