From 5e5e3213783ffbc1f3b8b7418a8274bb9d69f551 Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 23 Nov 2018 22:17:01 -0500 Subject: [PATCH] Revert "Renamed UNDEFINED to UNDEFINED_VALUE." This reverts commit cee4933c244c03e813cbd6d10c8c61104ccc27fd. --- include/hack.h | 6 +++--- src/decl.c | 14 +++++++------- src/role.c | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/hack.h b/include/hack.h index fd38f5b30..3525e1695 100644 --- a/include/hack.h +++ b/include/hack.h @@ -22,11 +22,11 @@ 0 \ } -/* UNDEFINED_VALUE and UNDEFINED_PTR are used to initialize variables whose - initialized value is not relied upon. UNDEFINED_VALUE can be used to +/* 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_VALUE { 0 } +#define UNDEFINED { 0 } #define UNDEFINED_PTR NULL /* symbolic names for capacity levels */ diff --git a/src/decl.c b/src/decl.c index 3214faab1..559969c39 100644 --- a/src/decl.c +++ b/src/decl.c @@ -345,10 +345,10 @@ const struct instance_globals g_init = { /* rumors.c */ 0, /* true_rumor_size */ 0, /* false_rumor_size */ - UNDEFINED_VALUE, /* true_rumor_start*/ - UNDEFINED_VALUE, /* false_rumor_start*/ - UNDEFINED_VALUE, /* true_rumor_end */ - UNDEFINED_VALUE, /* false_rumor_end */ + UNDEFINED, /* true_rumor_start*/ + UNDEFINED, /* false_rumor_start*/ + UNDEFINED, /* true_rumor_end */ + UNDEFINED, /* false_rumor_end */ 0, /* oracle_flag */ 0, /* oracle_cnt */ NULL, /* oracle_loc */ @@ -364,12 +364,12 @@ const struct instance_globals g_init = { STRANGE_OBJECT, /* nocreate3 */ STRANGE_OBJECT, /* nocreate4 */ /* uhitm.c */ - UNDEFINED_VALUE, /* override_confirmation */ + UNDEFINED, /* override_confirmation */ /* weapon.c */ UNDEFINED_PTR, /* propellor */ /* zap.c */ - UNDEFINED_VALUE, /* poly_zap */ - UNDEFINED_VALUE, /* obj_zapped */ + UNDEFINED, /* poly_zap */ + UNDEFINED, /* obj_zapped */ IVMAGIC /* used to validate that structure layout has been preserved */ }; diff --git a/src/role.c b/src/role.c index b5aae5068..b61babf7c 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_VALUE; +} rfilter = UNDEFINED; STATIC_DCL int NDECL(randrole_filtered); STATIC_DCL char *FDECL(promptsep, (char *, int)); -- 2.40.0