Renamed UNDEFINED to UNDEFINED_VALUE.

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

View File

@@ -22,11 +22,11 @@
0 \
}
/* UNDEFINED and UNDEFINED_PTR are used to initialize variables whose
initialized value is not relied upon. UNDEFINED can be used to
/* UNDEFINED_VALUE and UNDEFINED_PTR are used to initialize variables whose
initialized value is not relied upon. UNDEFINED_VALUE can be used to
initialized any value type except pointers. UNDEFINED_PTR can be used
only on pointer types. */
#define UNDEFINED { 0 }
#define UNDEFINED_VALUE { 0 }
#define UNDEFINED_PTR NULL
/* symbolic names for capacity levels */

View File

@@ -345,10 +345,10 @@ const struct instance_globals g_init = {
/* rumors.c */
0, /* true_rumor_size */
0, /* false_rumor_size */
UNDEFINED, /* true_rumor_start*/
UNDEFINED, /* false_rumor_start*/
UNDEFINED, /* true_rumor_end */
UNDEFINED, /* false_rumor_end */
UNDEFINED_VALUE, /* true_rumor_start*/
UNDEFINED_VALUE, /* false_rumor_start*/
UNDEFINED_VALUE, /* true_rumor_end */
UNDEFINED_VALUE, /* 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, /* override_confirmation */
UNDEFINED_VALUE, /* override_confirmation */
/* weapon.c */
UNDEFINED_PTR, /* propellor */
/* zap.c */
UNDEFINED, /* poly_zap */
UNDEFINED, /* obj_zapped */
UNDEFINED_VALUE, /* poly_zap */
UNDEFINED_VALUE, /* obj_zapped */
IVMAGIC /* used to validate that structure layout has been preserved */
};

View File

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