From: nhmall Date: Sat, 24 Nov 2018 03:17:03 +0000 (-0500) Subject: Revert "rfilter initialized to UNDEFINED." X-Git-Tag: NetHack-3.6.2_Released~161^2~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf3602eb1b854db0b9d87af85b5825b34379da05;p=nethack Revert "rfilter initialized to UNDEFINED." This reverts commit 716c2ceccfd9f8e6efda03942f7135a4cd9e2eeb. --- diff --git a/include/hack.h b/include/hack.h index 3525e1695..5785b8590 100644 --- a/include/hack.h +++ b/include/hack.h @@ -22,13 +22,6 @@ 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, diff --git a/src/decl.c b/src/decl.c index 559969c39..c8aaf7275 100644 --- a/src/decl.c +++ b/src/decl.c @@ -325,6 +325,8 @@ 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 = { diff --git a/src/role.c b/src/role.c index b61babf7c..69adcab7b 100644 --- a/src/role.c +++ b/src/role.c @@ -769,7 +769,7 @@ const struct Align aligns[] = { static struct { boolean roles[SIZE(roles)]; short mask; -} rfilter = UNDEFINED; +} rfilter; STATIC_DCL int NDECL(randrole_filtered); STATIC_DCL char *FDECL(promptsep, (char *, int));