#define leashmon corpsenm /* gets m_id of attached pet */
#define fromsink corpsenm /* a potion from a sink */
#define novelidx corpsenm /* 3.6 tribute - the index of the novel title */
+#define migr_species corpsenm /* species to endow for MIGR_TO_SPECIES */
int usecount; /* overloaded for various things that tally */
#define spestudied usecount /* # of times a spellbook has been studied */
unsigned oeaten; /* nutrition left in food, if partly eaten */
/* Return the wall mode for a T wall. */
static int
set_twall(x0, y0, x1, y1, x2, y2, x3, y3)
+#ifdef WA_VERBOSE
int x0, y0; /* used #if WA_VERBOSE */
+#else
+int x0, y0 UNUSED;
+#endif
int x1, y1, x2, y2, x3, y3;
{
int wmode, is_1, is_2, is_3;
-#ifndef WA_VERBOSE
- /* non-verbose more_than_one() doesn't use these */
- nhUse(x0);
- nhUse(y0);
-#endif
-
is_1 = check_pos(x1, y1, WM_T_LONG);
is_2 = check_pos(x2, y2, WM_T_BL);
is_3 = check_pos(x3, y3, WM_T_BR);
if ((where & MIGR_TO_SPECIES) == 0)
continue;
- if ((mtmp->data->mflags2 & DELIVER_PM) == otmp->corpsenm) {
+ if (otmp->migr_species != NON_PM
+ && (mtmp->data->mflags2 & DELIVER_PM) == (unsigned) otmp->migr_species) {
obj_extract_self(otmp);
otmp->owornmask = 0L;
otmp->ox = otmp->oy = 0;
}
free_oname(otmp);
}
- otmp->corpsenm = NON_PM;
+ otmp->migr_species = NON_PM;
(void) add_to_minv(mtmp, otmp);
cnt++;
if (maxobj && cnt >= maxobj)
void
silly_thing(word, otmp)
const char *word;
+#ifdef OBSOLETE_HANDLING
struct obj *otmp;
-{
-#if 1 /* 'P','R' vs 'W','T' handling is obsolete */
- nhUse(otmp);
#else
+struct obj *otmp UNUSED;
+#endif
+{
+#ifdef OBSOLETE_HANDLING
+ /* 'P','R' vs 'W','T' handling is obsolete */
const char *s1, *s2, *s3;
int ocls = otmp->oclass, otyp = otmp->otyp;
static char *FDECL(version_id_string, (char *, const char *));
static char *FDECL(bannerc_string, (char *, const char *));
-static int FDECL(case_insensitive_comp, (const char *, const char *));
static void NDECL(make_version);
static char *FDECL(eos, (char *));
#if 0
#endif
#endif /* MAKEDEFS_C || FOR_RUNTIME */
+#if defined(MAKEDEFS_C) || defined(FOR_RUNTIME) || defined(WIN32) \
+ || (defined(CROSSCOMPILE_TARGET) && defined(__DATE__) && defined(__TIME__))
+static int FDECL(case_insensitive_comp, (const char *, const char *));
+#endif
+
#if !defined(MAKEDEFS_C) && defined(WIN32)
extern int GUILaunched;
#endif
static void NDECL(build_savebones_compat_string);
static int idxopttext, done_runtime_opt_init_once = 0;
#define MAXOPT 40
+#if !defined(MAKEDEFS_C) && defined(CROSSCOMPILE_TARGET) \
+ && defined(__DATE__) && defined(__TIME__)
static char rttimebuf[MAXOPT];
+#endif
static char *opttext[120] = { 0 };
char optbuf[BUFSZ];
static struct version_info version;
#endif /* HAS_NO_MKSTEMP */
#endif /* MAKEDEFS_C || FOR_RUNTIME */
+#if defined(MAKEDEFS_C) || defined(FOR_RUNTIME) || defined(WIN32) \
+ || (defined(CROSSCOMPILE_TARGET) && defined(__DATE__) && defined(__TIME__))
static int
case_insensitive_comp(s1, s2)
const char *s1;
}
return u1 - u2;
}
+#endif
static char *
eos(str)
otmp = mksobj(otyp, init, artif);
add_to_migration(otmp);
otmp->owornmask = (long) MIGR_TO_SPECIES;
- otmp->corpsenm = mflags2;
+ otmp->migr_species = mflags2;
return otmp;
}
boolean tinitial, tfrom_file;
{
char *op;
- boolean negated, got_match = FALSE, has_val = FALSE;
+ boolean negated, got_match = FALSE;
+#if 0
+ boolean has_val = FALSE;
+#endif
int i, matchidx = -1, optresult = optn_err, optlen, optlen_wo_val;
boolean retval = TRUE;
optlen = (int) strlen(opts);
optlen_wo_val = length_without_val(opts, optlen);
if (optlen_wo_val < optlen) {
+#if 0
has_val = TRUE;
+#endif
optlen = optlen_wo_val;
- } else {
+ }
+#if 0
+ else {
has_val = FALSE;
}
+#endif
for (i = 0; i < OPTCOUNT; ++i) {
got_match = FALSE;
static void
rest_levl(nhfp, rlecomp)
NHFILE *nhfp;
+#ifdef RLECOMP
boolean rlecomp;
+#else
+boolean rlecomp UNUSED;
+#endif
{
#ifdef RLECOMP
short i, j;
}
return;
}
-#else /* !RLECOMP */
- nhUse(rlecomp);
-#endif /* ?RLECOMP */
+#endif /* RLECOMP */
if (nhfp->structlevel) {
mread(nhfp->fd, (genericptr_t) levl, sizeof levl);
}
static int
find_montype(L, s)
-lua_State *L;
+lua_State *L UNUSED;
const char *s;
{
int i;
for (i = LOW_PM; i < NUMMONS; i++)
if (!strcmpi(mons[i].mname, s))
return i;
- nhUse(L);
return NON_PM;
}
void
sysopt_seduce_set(val)
+#if 0
int val;
{
-#if 0
/*
* Attack substitution is now done on the fly in getmattk(mhitu.c).
*/
mons[PM_SUCCUBUS].mattk[x] = setval[x];
}
#else
- nhUse(val);
-#endif /*0*/
+int val UNUSED;
+{
+#endif
return;
}
/*ARGSUSED*/
int
tty_nh_poskey(x, y, mod)
+#if defined(WIN32CON)
int *x, *y, *mod;
+#else
+int *x UNUSED, *y UNUSED, *mod UNUSED;
+#endif
{
int i;
if (ttyDisplay && ttyDisplay->toplin == 1)
ttyDisplay->toplin = 2;
#else /* !WIN32CON */
- nhUse(x);
- nhUse(y);
- nhUse(mod);
-
i = tty_nhgetch();
#endif /* ?WIN32CON */
return i;