-/* NetHack 3.7 mdlib.c $NHDT-Date: 1562180226 2019/07/03 18:57:06 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.149 $ */
+/* NetHack 3.7 mdlib.c $NHDT-Date: 1574634382 2019/11/24 22:26:22 $ $NHDT-Branch: paxed-quest-lua $:$NHDT-Revision: 1.0 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Kenneth Lorber, Kensington, Maryland, 2015. */
/* Copyright (c) M. Stephenson, 1990, 1991. */
#if !defined(AMIGA) || defined(AZTEC_C)
#define rewind(fp) fseek((fp), 0L, SEEK_SET) /* guarantee a return value */
#endif /* AMIGA || AZTEC_C */
-
+#else
+#ifndef GLOBAL_H
+#include "global.h"
+#endif
#endif /* !MAKEDEFS_C */
void NDECL(build_options);
{
char buf[BUFSZ];
int i, length, winsyscnt;
-
- build_savebones_compat_string();
- opttext[idxopttext] = strdup(optbuf);
- if (idxopttext < (MAXOPT - 1))
- idxopttext++;
- Sprintf(optbuf,
- "%sNetHack version %d.%d.%d%s\n",
- opt_indent,
- VERSION_MAJOR, VERSION_MINOR, PATCHLEVEL,
+ const char *bosuffix = {
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
#if (NH_DEVEL_STATUS == NH_STATUS_BETA)
" [beta]"
#endif
#else
""
-#endif /* NH_DEVEL_STATUS == NH_STATUS_RELEASED */
- );
+#endif
+ };
+
+ build_savebones_compat_string();
+ opttext[idxopttext] = strdup(optbuf);
+ if (idxopttext < (MAXOPT - 1))
+ idxopttext++;
+ (void) sprintf(optbuf,
+ "%sNetHack version %d.%d.%d%s\n",opt_indent,
+ VERSION_MAJOR, VERSION_MINOR, PATCHLEVEL, bosuffix);
opttext[idxopttext] = strdup(optbuf);
if (idxopttext < (MAXOPT - 1))
idxopttext++;
-/* NetHack 3.6 questpgr.c $NHDT-Date: 1505172128 2017/09/11 23:22:08 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.38 $ */
+/* NetHack 3.6 questpgr.c $NHDT-Date: 1574634383 2019/11/24 22:26:23 $ $NHDT-Branch: paxed-quest-lua $:$NHDT-Revision: 1.63 $ */
/* Copyright 1991, M. Stephenson */
/* NetHack may be freely redistributed. See license for details. */
static const char *NDECL(guardname);
static const char *NDECL(homebase);
static void FDECL(qtext_pronoun, (CHAR_P, CHAR_P));
-static struct qtmsg *FDECL(msg_in, (struct qtmsg *, int));
static void FDECL(convert_arg, (CHAR_P));
static void FDECL(convert_line, (char *,char *));
static void FDECL(deliver_by_pline, (const char *));
static void FDECL(deliver_by_window, (const char *, int));
static boolean FDECL(skip_pager, (BOOLEAN_P));
+#if 0
+static struct qtmsg *FDECL(msg_in, (struct qtmsg *, int));
+#endif
short
quest_info(typ)
return;
}
+#if 0
static struct qtmsg *
msg_in(qtm_list, msgnum)
struct qtmsg *qtm_list;
return (struct qtmsg *) 0;
}
+#endif
static void
convert_arg(c)
static boolean
skip_pager(common)
-boolean common;
+boolean common UNUSED;
{
/* WIZKIT: suppress plot feedback if starting with quest artifact */
if (g.program_state.wizkit_wishing)
-/* NetHack 3.6 makedefs.c $NHDT-Date: 1562180226 2019/07/03 18:57:06 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.149 $ */
+/* NetHack 3.6 makedefs.c $NHDT-Date: 1574634383 2019/11/24 22:26:23 $ $NHDT-Branch: paxed-quest-lua $:$NHDT-Revision: 1.163 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Kenneth Lorber, Kensington, Maryland, 2015. */
/* Copyright (c) M. Stephenson, 1990, 1991. */
#if !defined(CROSSCOMPILE) || defined(CROSSCOMPILE_HOST)
Fprintf(ofp, "\n#if !defined(CROSSCOMPILE) || defined(CROSSCOMPILE_HOST)\n");
-#if 0
- Fprintf(ofp, "/* On a CROSSCOMPILE build, NetHack is built in two steps:\n");
- Fprintf(ofp, " *%s%d. %s\n",
- ind, ++steps, "Build makedefs and its prerequisites, and");
- Fprintf(ofp, " *%s %s\n",
- ind, "execute makedefs to generate date.h, onames.h, and pm.h.");
- Fprintf(ofp, " *%s%d. %s\n *%s %s\n */\n\n", ind, ++steps,
- "Build the rest of NetHack using the cross-compiler",
- ind, "to generate the game code for target platform.");
-#endif
#endif /* CROSSCOMPILE || CROSSCOMPILE_HOST */
if (date_via_env)
Fprintf(ofp, "#define SOURCE_DATE_EPOCH (%lu%s) /* via getenv() */\n",