Merge branch 'NetHack-3.7' into to500
This commit is contained in:
+1
-1
@@ -642,7 +642,7 @@ Cross-compiler url: https://emscripten.org/docs/getting_started/downloads.html
|
|||||||
|
|
||||||
sudo apt-get install python3 cmake default-jre
|
sudo apt-get install python3 cmake default-jre
|
||||||
|
|
||||||
For macOS, you will need to install Xcode, git, cmake, Python 3.5 or new
|
For macOS, you will need to install Xcode, git, cmake, Python 3.5 or newer
|
||||||
(at time of this writing).
|
(at time of this writing).
|
||||||
|
|
||||||
After installing the prerequisite packages above, obtain the cross-compiler
|
After installing the prerequisite packages above, obtain the cross-compiler
|
||||||
|
|||||||
+6
-6
@@ -36,7 +36,7 @@
|
|||||||
/* Hint: if you're not developing code, don't define
|
/* Hint: if you're not developing code, don't define
|
||||||
ULTRIX_PROTO. */
|
ULTRIX_PROTO. */
|
||||||
|
|
||||||
#include "config1.h" /* should auto-detect MSDOS, MAC, AMIGA, and WIN32 */
|
#include "config1.h" /* should auto-detect MSDOS, MACOS9, AMIGA, and WIN32 */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Consolidated version, patchlevel, development status.
|
* Consolidated version, patchlevel, development status.
|
||||||
@@ -67,8 +67,8 @@
|
|||||||
* tty, X11, mac, amii, BeOS, Qt, Gem, Gnome, shim
|
* tty, X11, mac, amii, BeOS, Qt, Gem, Gnome, shim
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* MAC also means MAC windows */
|
/* MACOS9 also means MAC windows */
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
#ifndef AUX
|
#ifndef AUX
|
||||||
#define DEFAULT_WINDOW_SYS "mac"
|
#define DEFAULT_WINDOW_SYS "mac"
|
||||||
#endif
|
#endif
|
||||||
@@ -339,7 +339,7 @@
|
|||||||
#define ENTRYMAX 100 /* must be >= 10 */
|
#define ENTRYMAX 100 /* must be >= 10 */
|
||||||
#endif
|
#endif
|
||||||
#ifndef PERS_IS_UID
|
#ifndef PERS_IS_UID
|
||||||
#if !defined(MICRO) && !defined(MAC) && !defined(WIN32)
|
#if !defined(MICRO) && !defined(MACOS9) && !defined(WIN32)
|
||||||
#define PERS_IS_UID 1 /* delete for PERSMAX per name; now per uid */
|
#define PERS_IS_UID 1 /* delete for PERSMAX per name; now per uid */
|
||||||
#else
|
#else
|
||||||
#define PERS_IS_UID 0
|
#define PERS_IS_UID 0
|
||||||
@@ -434,7 +434,7 @@
|
|||||||
*/
|
*/
|
||||||
#define INSURANCE /* allow crashed game recovery */
|
#define INSURANCE /* allow crashed game recovery */
|
||||||
|
|
||||||
#if !defined(MAC) && !defined(SHIM_GRAPHICS)
|
#if !defined(MACOS9) && !defined(SHIM_GRAPHICS)
|
||||||
#define CHDIR /* delete if no chdir() available */
|
#define CHDIR /* delete if no chdir() available */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -533,7 +533,7 @@ typedef unsigned char uchar;
|
|||||||
#define MACRO_CPATH /* use clear_path macros instead of functions */
|
#define MACRO_CPATH /* use clear_path macros instead of functions */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(MAC)
|
#if !defined(MACOS9)
|
||||||
#if !defined(NOCLIPPING)
|
#if !defined(NOCLIPPING)
|
||||||
#define CLIPPING /* allow smaller screens -- ERS */
|
#define CLIPPING /* allow smaller screens -- ERS */
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+4
-4
@@ -45,23 +45,23 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef macintosh /* Auto-defined symbol for MPW compilers (sc and mrc) */
|
#ifdef macintosh /* Auto-defined symbol for MPW compilers (sc and mrc) */
|
||||||
#define MAC
|
#define MACOS9
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef THINK_C /* Think C auto-defined symbol */
|
#ifdef THINK_C /* Think C auto-defined symbol */
|
||||||
#define MAC
|
#define MACOS9
|
||||||
#define NEED_VARARGS
|
#define NEED_VARARGS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __MWERKS__ /* defined by Metrowerks' Codewarrior compiler */
|
#ifdef __MWERKS__ /* defined by Metrowerks' Codewarrior compiler */
|
||||||
#ifndef __BEOS__ /* BeOS */
|
#ifndef __BEOS__ /* BeOS */
|
||||||
#define MAC
|
#define MACOS9
|
||||||
#endif
|
#endif
|
||||||
#define NEED_VARARGS
|
#define NEED_VARARGS
|
||||||
#define USE_STDARG
|
#define USE_STDARG
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MAC) || defined(__BEOS__)
|
#if defined(MACOS9) || defined(__BEOS__)
|
||||||
#define DLB
|
#define DLB
|
||||||
#undef UNIX
|
#undef UNIX
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
#ifdef DLB
|
#ifdef DLB
|
||||||
|
|
||||||
/* implementations */
|
/* implementations */
|
||||||
#if defined(MAC) && !defined(MAC_CROSS)
|
#if defined(MACOS9) && !defined(MACOS9_CROSS)
|
||||||
#define DLBRSRC /* use Mac resources */
|
#define DLBRSRC /* use Mac resources */
|
||||||
#else
|
#else
|
||||||
#define DLBLIB /* use a set of external files */
|
#define DLBLIB /* use a set of external files */
|
||||||
|
|||||||
+1
-1
@@ -1451,7 +1451,7 @@ extern boolean stumble_on_door_mimic(coordxy, coordxy);
|
|||||||
extern int doopen_indir(coordxy, coordxy);
|
extern int doopen_indir(coordxy, coordxy);
|
||||||
extern int doclose(void);
|
extern int doclose(void);
|
||||||
|
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
/* outdated functions removed */
|
/* outdated functions removed */
|
||||||
/* ### macfile.c ### */
|
/* ### macfile.c ### */
|
||||||
/* ### macmain.c ### */
|
/* ### macmain.c ### */
|
||||||
|
|||||||
+1
-1
@@ -501,7 +501,7 @@ struct instance_flags {
|
|||||||
#ifdef MAC_GRAPHICS_ENV
|
#ifdef MAC_GRAPHICS_ENV
|
||||||
#define large_font obsolete
|
#define large_font obsolete
|
||||||
#endif
|
#endif
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
#define popup_dialog wc_popup_dialog
|
#define popup_dialog wc_popup_dialog
|
||||||
#endif
|
#endif
|
||||||
#define preload_tiles wc_preload_tiles
|
#define preload_tiles wc_preload_tiles
|
||||||
|
|||||||
+1
-1
@@ -185,7 +185,7 @@ typedef uchar nhsym;
|
|||||||
#ifdef AMIGA
|
#ifdef AMIGA
|
||||||
#define PORT_ID "Amiga"
|
#define PORT_ID "Amiga"
|
||||||
#endif
|
#endif
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
#define PORT_ID "Mac"
|
#define PORT_ID "Mac"
|
||||||
#endif
|
#endif
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
|||||||
+3
-3
@@ -357,7 +357,7 @@ static int optfn_##a(int, int, boolean, char *, char *);
|
|||||||
NHOPTB(herecmd_menu, Advanced, 0, opt_in, set_in_game,
|
NHOPTB(herecmd_menu, Advanced, 0, opt_in, set_in_game,
|
||||||
Off, Yes, No, No, NoAlias, &iflags.herecmd_menu, Term_False,
|
Off, Yes, No, No, NoAlias, &iflags.herecmd_menu, Term_False,
|
||||||
"show commands available in this location")
|
"show commands available in this location")
|
||||||
#if defined(MAC)
|
#if defined(MACOS9)
|
||||||
NHOPTC(hicolor, Advanced, 15, opt_in, set_in_config,
|
NHOPTC(hicolor, Advanced, 15, opt_in, set_in_config,
|
||||||
No, Yes, No, No, NoAlias,
|
No, Yes, No, No, NoAlias,
|
||||||
"same as palette, only order is reversed")
|
"same as palette, only order is reversed")
|
||||||
@@ -390,7 +390,7 @@ static int optfn_##a(int, int, boolean, char *, char *);
|
|||||||
NHOPTB(idlecheckpoint, Advanced, 0, opt_in, set_in_game,
|
NHOPTB(idlecheckpoint, Advanced, 0, opt_in, set_in_game,
|
||||||
Off, Yes, No, No, NoAlias, &iflags.idlecheckpoint, Term_Off,
|
Off, Yes, No, No, NoAlias, &iflags.idlecheckpoint, Term_Off,
|
||||||
"update checkpoint file if input is idle for 10 seconds")
|
"update checkpoint file if input is idle for 10 seconds")
|
||||||
#ifndef MAC
|
#ifndef MACOS9
|
||||||
NHOPTB(ignintr, Advanced, 0, opt_in, set_in_game,
|
NHOPTB(ignintr, Advanced, 0, opt_in, set_in_game,
|
||||||
Off, Yes, No, No, NoAlias, &flags.ignintr, Term_False,
|
Off, Yes, No, No, NoAlias, &flags.ignintr, Term_False,
|
||||||
"ignore interrupt signals")
|
"ignore interrupt signals")
|
||||||
@@ -542,7 +542,7 @@ static int optfn_##a(int, int, boolean, char *, char *);
|
|||||||
No, Yes, No, No, NoAlias,
|
No, Yes, No, No, NoAlias,
|
||||||
"the inventory order of the items in your pack")
|
"the inventory order of the items in your pack")
|
||||||
#ifdef CHANGE_COLOR
|
#ifdef CHANGE_COLOR
|
||||||
#ifndef MAC /* not old Mac OS9 */
|
#ifndef MACOS9 /* not old Mac OS9 */
|
||||||
NHOPTC(palette, Advanced, 15, opt_in, set_gameview,
|
NHOPTC(palette, Advanced, 15, opt_in, set_gameview,
|
||||||
No, Yes, Yes, No, "hicolor",
|
No, Yes, Yes, No, "hicolor",
|
||||||
"palette (adjust an RGB color in palette (color/R-G-B)")
|
"palette (adjust an RGB color in palette (color/R-G-B)")
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* might display need graphics code? */
|
/* might display need graphics code? */
|
||||||
#if !defined(AMIGA) && !defined(TOS) && !defined(MAC)
|
#if !defined(AMIGA) && !defined(TOS) && !defined(MACOS9)
|
||||||
#if defined(TERMLIB) || defined(OS2) || defined(MSDOS)
|
#if defined(TERMLIB) || defined(OS2) || defined(MSDOS)
|
||||||
#define ASCIIGRAPH
|
#define ASCIIGRAPH
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+3
-3
@@ -76,7 +76,7 @@ struct window_procs {
|
|||||||
void (*win_delay_output)(void);
|
void (*win_delay_output)(void);
|
||||||
#ifdef CHANGE_COLOR
|
#ifdef CHANGE_COLOR
|
||||||
void (*win_change_color)(int, long, int);
|
void (*win_change_color)(int, long, int);
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
void (*win_change_background)(int);
|
void (*win_change_background)(int);
|
||||||
short (*win_set_font_name)(winid, char *);
|
short (*win_set_font_name)(winid, char *);
|
||||||
#endif
|
#endif
|
||||||
@@ -162,7 +162,7 @@ extern
|
|||||||
#define nh_delay_output (*windowprocs.win_delay_output)
|
#define nh_delay_output (*windowprocs.win_delay_output)
|
||||||
#ifdef CHANGE_COLOR
|
#ifdef CHANGE_COLOR
|
||||||
#define change_color (*windowprocs.win_change_color)
|
#define change_color (*windowprocs.win_change_color)
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
#define change_background (*windowprocs.win_change_background)
|
#define change_background (*windowprocs.win_change_background)
|
||||||
#define set_font_name (*windowprocs.win_set_font_name)
|
#define set_font_name (*windowprocs.win_set_font_name)
|
||||||
#endif
|
#endif
|
||||||
@@ -394,7 +394,7 @@ struct chain_procs {
|
|||||||
void (*win_delay_output)(CARGS);
|
void (*win_delay_output)(CARGS);
|
||||||
#ifdef CHANGE_COLOR
|
#ifdef CHANGE_COLOR
|
||||||
void (*win_change_color)(CARGS, int, long, int);
|
void (*win_change_color)(CARGS, int, long, int);
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
void (*win_change_background)(CARGS, int);
|
void (*win_change_background)(CARGS, int);
|
||||||
short (*win_set_font_name)(CARGS, winid, char *);
|
short (*win_set_font_name)(CARGS, winid, char *);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+3
-3
@@ -280,7 +280,7 @@ extern void tty_number_pad(int);
|
|||||||
extern void tty_delay_output(void);
|
extern void tty_delay_output(void);
|
||||||
#ifdef CHANGE_COLOR
|
#ifdef CHANGE_COLOR
|
||||||
extern void tty_change_color(int color, long rgb, int reverse);
|
extern void tty_change_color(int color, long rgb, int reverse);
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
extern void tty_change_background(int white_or_black);
|
extern void tty_change_background(int white_or_black);
|
||||||
extern short set_tty_font_name(winid, char *);
|
extern short set_tty_font_name(winid, char *);
|
||||||
#endif
|
#endif
|
||||||
@@ -331,7 +331,7 @@ extern char *tgetstr(const char *, char **);
|
|||||||
extern char *tgoto(const char *, int, int);
|
extern char *tgoto(const char *, int, int);
|
||||||
#endif /* NO_TERMCAP_HEADERS */
|
#endif /* NO_TERMCAP_HEADERS */
|
||||||
#else /* ?NO_TERMS */
|
#else /* ?NO_TERMS */
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
#ifdef putchar
|
#ifdef putchar
|
||||||
#undef putchar
|
#undef putchar
|
||||||
#undef putc
|
#undef putc
|
||||||
@@ -342,7 +342,7 @@ extern char *tgoto(const char *, int, int);
|
|||||||
extern int term_putc(int c);
|
extern int term_putc(int c);
|
||||||
extern int term_flush(void *desc);
|
extern int term_flush(void *desc);
|
||||||
extern int term_puts(const char *str);
|
extern int term_puts(const char *str);
|
||||||
#endif /* MAC */
|
#endif /* MACOS9 */
|
||||||
#if defined(MSDOS) || defined(WIN32)
|
#if defined(MSDOS) || defined(WIN32)
|
||||||
#if defined(SCREEN_BIOS) || defined(SCREEN_DJGPPFAST) || defined(WIN32)
|
#if defined(SCREEN_BIOS) || defined(SCREEN_DJGPPFAST) || defined(WIN32)
|
||||||
#undef putchar
|
#undef putchar
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
* set "Prefix File" to include/mac-carbon.h
|
* set "Prefix File" to include/mac-carbon.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define MACOS9
|
||||||
#define MAC
|
#define MAC
|
||||||
#undef UNIX
|
#undef UNIX
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#undef MAC
|
#undef MAC
|
||||||
|
#undef MACOS9
|
||||||
#define UNIX
|
#define UNIX
|
||||||
#define BSD
|
#define BSD
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
/* Stuff needed for the core of NetHack */
|
/* Stuff needed for the core of NetHack */
|
||||||
#undef MAC
|
#undef MAC
|
||||||
|
#undef MACOS9
|
||||||
#define UNIX
|
#define UNIX
|
||||||
#define BSD
|
#define BSD
|
||||||
#define __FreeBSD__ /* Darwin is based on FreeBSD */
|
#define __FreeBSD__ /* Darwin is based on FreeBSD */
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
/*-Copyright (c) Kevin Hugo, 2004. */
|
/*-Copyright (c) Kevin Hugo, 2004. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
#ifndef MACCONF_H
|
#ifndef MACCONF_H
|
||||||
#define MACCONF_H
|
#define MACCONF_H
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
* __MWERKS__ Metrowerks' Codewarrior compiler
|
* __MWERKS__ Metrowerks' Codewarrior compiler
|
||||||
*
|
*
|
||||||
* We use these early in config.h to define some needed symbols,
|
* We use these early in config.h to define some needed symbols,
|
||||||
* including MAC.
|
* including MACOS9.
|
||||||
#
|
#
|
||||||
# The Metrowerks compiler defines __STDC__ (which sets NHSTC) and uses
|
# The Metrowerks compiler defines __STDC__ (which sets NHSTC) and uses
|
||||||
# WIDENED_PROTOTYPES (defined if UNWIDENED_PROTOTYPES is undefined and
|
# WIDENED_PROTOTYPES (defined if UNWIDENED_PROTOTYPES is undefined and
|
||||||
@@ -123,4 +123,4 @@ extern void error(const char *, ...);
|
|||||||
#define MAC_GRAPHICS_ENV
|
#define MAC_GRAPHICS_ENV
|
||||||
|
|
||||||
#endif /* ! MACCONF_H */
|
#endif /* ! MACCONF_H */
|
||||||
#endif /* MAC */
|
#endif /* MACOS9 */
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
/* some old <sys/types.h> may not define off_t and size_t; if your system is
|
/* some old <sys/types.h> may not define off_t and size_t; if your system is
|
||||||
* one of these, define them by hand below
|
* one of these, define them by hand below
|
||||||
*/
|
*/
|
||||||
#if (defined(VMS) && !defined(__GNUC__)) || defined(MAC)
|
#if (defined(VMS) && !defined(__GNUC__)) || defined(MACOS9)
|
||||||
#include <types.h>
|
#include <types.h>
|
||||||
#else
|
#else
|
||||||
#ifndef AMIGA
|
#ifndef AMIGA
|
||||||
@@ -41,7 +41,7 @@ typedef unsigned int size_t;
|
|||||||
#endif
|
#endif
|
||||||
#endif /* MICRO && !TOS */
|
#endif /* MICRO && !TOS */
|
||||||
|
|
||||||
#if defined(__TURBOC__) || defined(MAC)
|
#if defined(__TURBOC__) || defined(MACOS9)
|
||||||
#include <time.h> /* time_t is not in <sys/types.h> */
|
#include <time.h> /* time_t is not in <sys/types.h> */
|
||||||
#endif
|
#endif
|
||||||
#if defined(ULTRIX) && !(defined(ULTRIX_PROTO) || defined(NHSTDC))
|
#if defined(ULTRIX) && !(defined(ULTRIX_PROTO) || defined(NHSTDC))
|
||||||
@@ -200,7 +200,7 @@ extern int unlink(const char *);
|
|||||||
|
|
||||||
#endif /* AZTEC_50 && __GNUC__ */
|
#endif /* AZTEC_50 && __GNUC__ */
|
||||||
|
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
#ifndef __CONDITIONALMACROS__ /* universal headers */
|
#ifndef __CONDITIONALMACROS__ /* universal headers */
|
||||||
extern int close(int); /* unistd.h */
|
extern int close(int); /* unistd.h */
|
||||||
extern int read(int, char *, int); /* unistd.h */
|
extern int read(int, char *, int); /* unistd.h */
|
||||||
@@ -313,7 +313,7 @@ extern long fork(void);
|
|||||||
/* The POSIX string.h is required to define all the mem* and str* functions */
|
/* The POSIX string.h is required to define all the mem* and str* functions */
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#else
|
#else
|
||||||
#if defined(SYSV) || defined(VMS) || defined(MAC) || defined(SUNOS4)
|
#if defined(SYSV) || defined(VMS) || defined(MACOS9) || defined(SUNOS4)
|
||||||
#if defined(NHSTDC) || (defined(VMS) && !defined(ANCIENT_VAXC))
|
#if defined(NHSTDC) || (defined(VMS) && !defined(ANCIENT_VAXC))
|
||||||
#if !defined(_AIX32) && !(defined(SUNOS4) && defined(__STDC__))
|
#if !defined(_AIX32) && !(defined(SUNOS4) && defined(__STDC__))
|
||||||
/* Solaris unbundled cc (acc) */
|
/* Solaris unbundled cc (acc) */
|
||||||
@@ -423,7 +423,7 @@ extern char *strncat(char *, const char *, size_t);
|
|||||||
extern char *strpbrk(const char *, const char *);
|
extern char *strpbrk(const char *, const char *);
|
||||||
|
|
||||||
#ifdef NOT_C99
|
#ifdef NOT_C99
|
||||||
#if defined(SYSV) || defined(MICRO) || defined(MAC) || defined(VMS) \
|
#if defined(SYSV) || defined(MICRO) || defined(MACOS9) || defined(VMS) \
|
||||||
|| defined(HPUX)
|
|| defined(HPUX)
|
||||||
extern char *strchr(const char *, int);
|
extern char *strchr(const char *, int);
|
||||||
extern char *strrchr(const char *, int);
|
extern char *strrchr(const char *, int);
|
||||||
@@ -435,7 +435,7 @@ extern char *rindex(const char *, int);
|
|||||||
|
|
||||||
extern int strcmp(const char *, const char *);
|
extern int strcmp(const char *, const char *);
|
||||||
extern int strncmp(const char *, const char *, size_t);
|
extern int strncmp(const char *, const char *, size_t);
|
||||||
#if defined(MICRO) || defined(MAC) || defined(VMS)
|
#if defined(MICRO) || defined(MACOS9) || defined(VMS)
|
||||||
extern size_t strlen(const char *);
|
extern size_t strlen(const char *);
|
||||||
#else
|
#else
|
||||||
#ifdef HPUX
|
#ifdef HPUX
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ struct window_procs Gem_procs = {
|
|||||||
Gem_getlin, Gem_get_ext_cmd, Gem_number_pad, Gem_delay_output,
|
Gem_getlin, Gem_get_ext_cmd, Gem_number_pad, Gem_delay_output,
|
||||||
#ifdef CHANGE_COLOR /* the Mac uses a palette device */
|
#ifdef CHANGE_COLOR /* the Mac uses a palette device */
|
||||||
Gem_change_color,
|
Gem_change_color,
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
Gem_change_background, Gem_set_font_name,
|
Gem_change_background, Gem_set_font_name,
|
||||||
#endif
|
#endif
|
||||||
Gem_get_color_string,
|
Gem_get_color_string,
|
||||||
@@ -76,7 +76,7 @@ struct window_procs Gem_procs = {
|
|||||||
genl_can_suspend_no,
|
genl_can_suspend_no,
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
void *
|
void *
|
||||||
Gem_change_background(dummy)
|
Gem_change_background(dummy)
|
||||||
int dummy;
|
int dummy;
|
||||||
|
|||||||
+1
-1
@@ -742,7 +742,7 @@ init_sound_disp_gamewindows(void)
|
|||||||
ever having been used, use it here to pacify the Qt interface */
|
ever having been used, use it here to pacify the Qt interface */
|
||||||
start_menu(WIN_INVEN, menu_behavior), end_menu(WIN_INVEN, (char *) 0);
|
start_menu(WIN_INVEN, menu_behavior), end_menu(WIN_INVEN, (char *) 0);
|
||||||
|
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
/* This _is_ the right place for this - maybe we will
|
/* This _is_ the right place for this - maybe we will
|
||||||
* have to split init_sound_disp_gamewindows into
|
* have to split init_sound_disp_gamewindows into
|
||||||
* create_gamewindows and show_gamewindows to get rid of this ifdef...
|
* create_gamewindows and show_gamewindows to get rid of this ifdef...
|
||||||
|
|||||||
+4
-4
@@ -9,7 +9,7 @@
|
|||||||
#include "dlb.h"
|
#include "dlb.h"
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#if (!defined(MAC) && !defined(O_WRONLY) && !defined(AZTEC_C)) \
|
#if (!defined(MACOS9) && !defined(O_WRONLY) && !defined(AZTEC_C)) \
|
||||||
|| defined(USE_FCNTL)
|
|| defined(USE_FCNTL)
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -127,7 +127,7 @@ static const char *default_configfile =
|
|||||||
#ifdef UNIX
|
#ifdef UNIX
|
||||||
".nethackrc";
|
".nethackrc";
|
||||||
#else
|
#else
|
||||||
#if defined(MAC) || defined(__BEOS__)
|
#if defined(MACOS9) || defined(__BEOS__)
|
||||||
"NetHack Defaults";
|
"NetHack Defaults";
|
||||||
#else
|
#else
|
||||||
#if defined(MSDOS) || defined(WIN32)
|
#if defined(MSDOS) || defined(WIN32)
|
||||||
@@ -276,7 +276,7 @@ fopen_config_file(const char *filename, int src)
|
|||||||
}
|
}
|
||||||
/* fall through to standard names */
|
/* fall through to standard names */
|
||||||
|
|
||||||
#if defined(MICRO) || defined(MAC) || defined(__BEOS__) || defined(WIN32)
|
#if defined(MICRO) || defined(MACOS9) || defined(__BEOS__) || defined(WIN32)
|
||||||
set_configfile_name(fqname(default_configfile, CONFIGPREFIX, 0));
|
set_configfile_name(fqname(default_configfile, CONFIGPREFIX, 0));
|
||||||
if ((fp = fopen(configfile, "r")) != (FILE *) 0) {
|
if ((fp = fopen(configfile, "r")) != (FILE *) 0) {
|
||||||
return fp;
|
return fp;
|
||||||
@@ -367,7 +367,7 @@ fopen_config_file(const char *filename, int src)
|
|||||||
wait_synch();
|
wait_synch();
|
||||||
}
|
}
|
||||||
#endif /* !VMS => Unix */
|
#endif /* !VMS => Unix */
|
||||||
#endif /* !(MICRO || MAC || __BEOS__ || WIN32) */
|
#endif /* !(MICRO || MACOS9 || __BEOS__ || WIN32) */
|
||||||
return (FILE *) 0;
|
return (FILE *) 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2176,7 +2176,7 @@ fprefx(struct obj *otmp)
|
|||||||
} else if (otmp->otyp == APPLE && otmp->cursed && !Sleep_resistance) {
|
} else if (otmp->otyp == APPLE && otmp->cursed && !Sleep_resistance) {
|
||||||
; /* skip core joke; feedback deferred til fpostfx() */
|
; /* skip core joke; feedback deferred til fpostfx() */
|
||||||
|
|
||||||
#if defined(MAC) || defined(MACOS)
|
#if defined(MACOS9) || defined(MACOS)
|
||||||
/* KMH -- Why should Unix have all the fun?
|
/* KMH -- Why should Unix have all the fun?
|
||||||
We check MACOS before UNIX to get the Apple-specific apple
|
We check MACOS before UNIX to get the Apple-specific apple
|
||||||
message; the '#if UNIX' code will still kick in for pear. */
|
message; the '#if UNIX' code will still kick in for pear. */
|
||||||
|
|||||||
@@ -1676,7 +1676,7 @@ nh_terminate(int status)
|
|||||||
program_state.in_moveloop = 0; /* won't be returning to normal play */
|
program_state.in_moveloop = 0; /* won't be returning to normal play */
|
||||||
|
|
||||||
l_nhcore_call(NHCORE_GAME_EXIT);
|
l_nhcore_call(NHCORE_GAME_EXIT);
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
getreturn("to exit");
|
getreturn("to exit");
|
||||||
#endif
|
#endif
|
||||||
/* don't bother to try to release memory if we're in panic mode, to
|
/* don't bother to try to release memory if we're in panic mode, to
|
||||||
|
|||||||
+15
-15
@@ -38,7 +38,7 @@
|
|||||||
#include "wintty.h" /* more() */
|
#include "wintty.h" /* more() */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (!defined(MAC) && !defined(O_WRONLY) && !defined(AZTEC_C)) \
|
#if (!defined(MACOS9) && !defined(O_WRONLY) && !defined(AZTEC_C)) \
|
||||||
|| defined(USE_FCNTL)
|
|| defined(USE_FCNTL)
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -137,7 +137,7 @@ extern boolean get_user_home_folder(char *, size_t);
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
#undef unlink
|
#undef unlink
|
||||||
#define unlink macunlink
|
#define unlink macunlink
|
||||||
#endif
|
#endif
|
||||||
@@ -647,7 +647,7 @@ create_levelfile(int lev, char errbuf[])
|
|||||||
nhfp->fd = open(fq_lock, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY,
|
nhfp->fd = open(fq_lock, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY,
|
||||||
FCMASK);
|
FCMASK);
|
||||||
#else
|
#else
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
nhfp->fd = maccreat(fq_lock, LEVL_TYPE);
|
nhfp->fd = maccreat(fq_lock, LEVL_TYPE);
|
||||||
#else
|
#else
|
||||||
nhfp->fd = creat(fq_lock, FCMASK);
|
nhfp->fd = creat(fq_lock, FCMASK);
|
||||||
@@ -693,7 +693,7 @@ open_levelfile(int lev, char errbuf[])
|
|||||||
nhfp->fpdef = (FILE *) 0;
|
nhfp->fpdef = (FILE *) 0;
|
||||||
}
|
}
|
||||||
if (nhfp && nhfp->structlevel) {
|
if (nhfp && nhfp->structlevel) {
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
nhfp->fd = macopen(fq_lock, O_RDONLY | O_BINARY, LEVL_TYPE);
|
nhfp->fd = macopen(fq_lock, O_RDONLY | O_BINARY, LEVL_TYPE);
|
||||||
#else
|
#else
|
||||||
nhfp->fd = open(fq_lock, O_RDONLY | O_BINARY, 0);
|
nhfp->fd = open(fq_lock, O_RDONLY | O_BINARY, 0);
|
||||||
@@ -876,12 +876,12 @@ create_bonesfile(d_level *lev, char **bonesid, char errbuf[])
|
|||||||
O_WRONLY | O_CREAT | O_TRUNC | O_BINARY,
|
O_WRONLY | O_CREAT | O_TRUNC | O_BINARY,
|
||||||
_SH_DENYRW, _S_IREAD | _S_IWRITE);
|
_SH_DENYRW, _S_IREAD | _S_IWRITE);
|
||||||
#else /* ?MICRO || WIN32 */
|
#else /* ?MICRO || WIN32 */
|
||||||
/* implies UNIX or MAC (MAC is for OS9 or earlier) */
|
/* implies UNIX or MACOS9 (MACOS9 is for OS9 or earlier) */
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
nhfp->fd = maccreat(file, BONE_TYPE);
|
nhfp->fd = maccreat(file, BONE_TYPE);
|
||||||
#else
|
#else
|
||||||
nhfp->fd = creat(file, FCMASK);
|
nhfp->fd = creat(file, FCMASK);
|
||||||
#endif /* ?MAC */
|
#endif /* ?MACOS9 */
|
||||||
#endif /* ?MICRO || WIN32 */
|
#endif /* ?MICRO || WIN32 */
|
||||||
if (nhfp->fd < 0)
|
if (nhfp->fd < 0)
|
||||||
failed = errno;
|
failed = errno;
|
||||||
@@ -971,7 +971,7 @@ open_bonesfile(d_level *lev, char **bonesid)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if (nhfp->structlevel) {
|
if (nhfp->structlevel) {
|
||||||
#if defined(MAC)
|
#if defined(MACOS9)
|
||||||
nhfp->fd = macopen(fq_bones, O_RDONLY | O_BINARY, BONE_TYPE);
|
nhfp->fd = macopen(fq_bones, O_RDONLY | O_BINARY, BONE_TYPE);
|
||||||
#elif defined(WIN32)
|
#elif defined(WIN32)
|
||||||
err = _sopen_s(&nhfp->fd, fq_bones, _O_RDONLY | _O_BINARY,
|
err = _sopen_s(&nhfp->fd, fq_bones, _O_RDONLY | _O_BINARY,
|
||||||
@@ -1145,7 +1145,7 @@ set_error_savefile(void)
|
|||||||
}
|
}
|
||||||
Strcat(gs.SAVEF, ".e;1");
|
Strcat(gs.SAVEF, ".e;1");
|
||||||
#else
|
#else
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
Strcat(gs.SAVEF, "-e");
|
Strcat(gs.SAVEF, "-e");
|
||||||
#else
|
#else
|
||||||
Strcat(gs.SAVEF, ".e");
|
Strcat(gs.SAVEF, ".e");
|
||||||
@@ -1184,8 +1184,8 @@ create_savefile(void)
|
|||||||
nhfp->fd = open(fq_save, O_WRONLY | O_BINARY | O_CREAT | O_TRUNC,
|
nhfp->fd = open(fq_save, O_WRONLY | O_BINARY | O_CREAT | O_TRUNC,
|
||||||
FCMASK);
|
FCMASK);
|
||||||
#else /* !MICRO && !WIN32 */
|
#else /* !MICRO && !WIN32 */
|
||||||
/* UNIX || MAC implied (MAC is OS9 or earlier only) */
|
/* UNIX || MACOS9 implied (MACOS9 is OS9 or earlier only) */
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
nhfp->fd = maccreat(fq_save, SAVE_TYPE);
|
nhfp->fd = maccreat(fq_save, SAVE_TYPE);
|
||||||
#else
|
#else
|
||||||
nhfp->fd = creat(fq_save, FCMASK);
|
nhfp->fd = creat(fq_save, FCMASK);
|
||||||
@@ -1240,7 +1240,7 @@ open_savefile(void)
|
|||||||
nhfp->fplog = fopen("open-savefile.log", "w");
|
nhfp->fplog = fopen("open-savefile.log", "w");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
nhfp->fd = macopen(fq_save, O_RDONLY | O_BINARY, SAVE_TYPE);
|
nhfp->fd = macopen(fq_save, O_RDONLY | O_BINARY, SAVE_TYPE);
|
||||||
#else
|
#else
|
||||||
nhfp->fd = open(fq_save, O_RDONLY | O_BINARY, 0);
|
nhfp->fd = open(fq_save, O_RDONLY | O_BINARY, 0);
|
||||||
@@ -2500,7 +2500,7 @@ fopen_wizkit_file(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MICRO) || defined(MAC) || defined(__BEOS__) || defined(WIN32)
|
#if defined(MICRO) || defined(MACOS9) || defined(__BEOS__) || defined(WIN32)
|
||||||
if ((fp = fopen(fqname(gw.wizkit, CONFIGPREFIX, 0), "r")) != (FILE *) 0)
|
if ((fp = fopen(fqname(gw.wizkit, CONFIGPREFIX, 0), "r")) != (FILE *) 0)
|
||||||
return fp;
|
return fp;
|
||||||
#else
|
#else
|
||||||
@@ -2779,13 +2779,13 @@ check_recordfile(const char *dir UNUSED_if_not_OS2_CODEVIEW)
|
|||||||
}
|
}
|
||||||
#else /* MICRO || WIN32*/
|
#else /* MICRO || WIN32*/
|
||||||
|
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
/* Create the "record" file, if necessary */
|
/* Create the "record" file, if necessary */
|
||||||
fq_record = fqname(RECORD, SCOREPREFIX, 0);
|
fq_record = fqname(RECORD, SCOREPREFIX, 0);
|
||||||
fd = macopen(fq_record, O_RDWR | O_CREAT, TEXT_TYPE);
|
fd = macopen(fq_record, O_RDWR | O_CREAT, TEXT_TYPE);
|
||||||
if (fd != -1)
|
if (fd != -1)
|
||||||
macclose(fd);
|
macclose(fd);
|
||||||
#endif /* MAC */
|
#endif /* MACOS9 */
|
||||||
|
|
||||||
#endif /* MICRO || WIN32*/
|
#endif /* MICRO || WIN32*/
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -852,7 +852,7 @@ getpos(coord *ccp, boolean force, const char *goal)
|
|||||||
#endif
|
#endif
|
||||||
curs(WIN_MAP, cx, cy);
|
curs(WIN_MAP, cx, cy);
|
||||||
flush_screen(0);
|
flush_screen(0);
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
lock_mouse_cursor(TRUE);
|
lock_mouse_cursor(TRUE);
|
||||||
#endif
|
#endif
|
||||||
lock_mouse_buttons(TRUE);
|
lock_mouse_buttons(TRUE);
|
||||||
@@ -1149,7 +1149,7 @@ getpos(coord *ccp, boolean force, const char *goal)
|
|||||||
flush_screen(0);
|
flush_screen(0);
|
||||||
}
|
}
|
||||||
exitgetpos:
|
exitgetpos:
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
lock_mouse_cursor(FALSE);
|
lock_mouse_cursor(FALSE);
|
||||||
#endif
|
#endif
|
||||||
lock_mouse_buttons(FALSE);
|
lock_mouse_buttons(FALSE);
|
||||||
|
|||||||
+2
-2
@@ -147,7 +147,7 @@ static struct win_information window_opts[] = {
|
|||||||
#ifdef GNOME_GRAPHICS /* unmaintained/defunct */
|
#ifdef GNOME_GRAPHICS /* unmaintained/defunct */
|
||||||
{ "Gnome", "Gnome", TRUE },
|
{ "Gnome", "Gnome", TRUE },
|
||||||
#endif
|
#endif
|
||||||
#ifdef MAC /* defunct OS 9 interface */
|
#ifdef MACOS9 /* defunct OS 9 interface */
|
||||||
{ "mac", "Mac", TRUE },
|
{ "mac", "Mac", TRUE },
|
||||||
#endif
|
#endif
|
||||||
#ifdef AMIGA_INTUITION /* unmaintained/defunct */
|
#ifdef AMIGA_INTUITION /* unmaintained/defunct */
|
||||||
@@ -533,7 +533,7 @@ static const char *const build_opts[] = {
|
|||||||
"screen clipping",
|
"screen clipping",
|
||||||
#endif
|
#endif
|
||||||
#ifdef NO_TERMS
|
#ifdef NO_TERMS
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
"screen control via mactty",
|
"screen control via mactty",
|
||||||
#endif
|
#endif
|
||||||
#ifdef SCREEN_BIOS
|
#ifdef SCREEN_BIOS
|
||||||
|
|||||||
+6
-6
@@ -2730,7 +2730,7 @@ optfn_palette(
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/* old MAC OS9 code */
|
/* old MACOS9 OS9 code */
|
||||||
staticfn int
|
staticfn int
|
||||||
optfn_palette(
|
optfn_palette(
|
||||||
int optidx UNUSED, int req, boolean negated UNUSED,
|
int optidx UNUSED, int req, boolean negated UNUSED,
|
||||||
@@ -5107,7 +5107,7 @@ pfxfn_font(int optidx, int req, boolean negated, char *opts, char *op)
|
|||||||
if (opttype > 0
|
if (opttype > 0
|
||||||
&& (op = string_for_opt(opts, FALSE)) != empty_optstr) {
|
&& (op = string_for_opt(opts, FALSE)) != empty_optstr) {
|
||||||
wc_set_font_name(opttype, op);
|
wc_set_font_name(opttype, op);
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
set_font_name(opttype, op);
|
set_font_name(opttype, op);
|
||||||
#endif
|
#endif
|
||||||
return optn_ok;
|
return optn_ok;
|
||||||
@@ -6791,12 +6791,12 @@ complain_about_duplicate(int optidx)
|
|||||||
{
|
{
|
||||||
char buf[BUFSZ];
|
char buf[BUFSZ];
|
||||||
|
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
/* the Mac has trouble dealing with the output of messages while
|
/* the Mac has trouble dealing with the output of messages while
|
||||||
* processing the config file. That should get fixed one day.
|
* processing the config file. That should get fixed one day.
|
||||||
* For now just return.
|
* For now just return.
|
||||||
*/
|
*/
|
||||||
#else /* !MAC */
|
#else /* !MACOS9 */
|
||||||
buf[0] = '\0';
|
buf[0] = '\0';
|
||||||
if (using_alias)
|
if (using_alias)
|
||||||
Sprintf(buf, " (via alias: %s)", allopt[optidx].alias);
|
Sprintf(buf, " (via alias: %s)", allopt[optidx].alias);
|
||||||
@@ -6804,7 +6804,7 @@ complain_about_duplicate(int optidx)
|
|||||||
(allopt[optidx].opttyp == CompOpt) ? "compound"
|
(allopt[optidx].opttyp == CompOpt) ? "compound"
|
||||||
: "boolean",
|
: "boolean",
|
||||||
allopt[optidx].name, buf);
|
allopt[optidx].name, buf);
|
||||||
#endif /* ?MAC */
|
#endif /* ?MACOS9 */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -9431,7 +9431,7 @@ static const char *opt_intro[] = {
|
|||||||
" NetHack Options Help:", "",
|
" NetHack Options Help:", "",
|
||||||
#define CONFIG_SLOT 3 /* fill in next value at run-time */
|
#define CONFIG_SLOT 3 /* fill in next value at run-time */
|
||||||
(char *) 0,
|
(char *) 0,
|
||||||
#if !defined(MICRO) && !defined(MAC)
|
#if !defined(MICRO) && !defined(MACOS9)
|
||||||
"or use `NETHACKOPTIONS=\"<options>\"' in your environment",
|
"or use `NETHACKOPTIONS=\"<options>\"' in your environment",
|
||||||
#endif
|
#endif
|
||||||
"(<options> is a list of options separated by commas)",
|
"(<options> is a list of options separated by commas)",
|
||||||
|
|||||||
+1
-1
@@ -128,7 +128,7 @@ static const char *const shktools[] = {
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
"Lexa", "Niod",
|
"Lexa", "Niod",
|
||||||
#endif
|
#endif
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
"Nhoj-lee", "Evad\'kh", "Ettaw-noj", "Tsew-mot", "Ydna-s", "Yao-hang",
|
"Nhoj-lee", "Evad\'kh", "Ettaw-noj", "Tsew-mot", "Ydna-s", "Yao-hang",
|
||||||
"Tonbar", "Kivenhoug", "Llardom",
|
"Tonbar", "Kivenhoug", "Llardom",
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+6
-6
@@ -22,7 +22,7 @@ extern struct window_procs Qt_procs;
|
|||||||
#ifdef GEM_GRAPHICS
|
#ifdef GEM_GRAPHICS
|
||||||
/*#include "wingem.h"*/
|
/*#include "wingem.h"*/
|
||||||
#endif
|
#endif
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
extern struct window_procs mac_procs;
|
extern struct window_procs mac_procs;
|
||||||
#endif
|
#endif
|
||||||
#ifdef BEOS_GRAPHICS
|
#ifdef BEOS_GRAPHICS
|
||||||
@@ -111,7 +111,7 @@ static struct win_choices {
|
|||||||
#ifdef GEM_GRAPHICS
|
#ifdef GEM_GRAPHICS
|
||||||
{ &Gem_procs, win_Gem_init CHAINR(0) },
|
{ &Gem_procs, win_Gem_init CHAINR(0) },
|
||||||
#endif
|
#endif
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
{ &mac_procs, 0 CHAINR(0) },
|
{ &mac_procs, 0 CHAINR(0) },
|
||||||
#endif
|
#endif
|
||||||
#ifdef BEOS_GRAPHICS
|
#ifdef BEOS_GRAPHICS
|
||||||
@@ -543,7 +543,7 @@ staticfn void hup_cliparound(int, int);
|
|||||||
#endif
|
#endif
|
||||||
#ifdef CHANGE_COLOR
|
#ifdef CHANGE_COLOR
|
||||||
staticfn void hup_change_color(int, long, int);
|
staticfn void hup_change_color(int, long, int);
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
staticfn short hup_set_font_name(winid, char *);
|
staticfn short hup_set_font_name(winid, char *);
|
||||||
#endif
|
#endif
|
||||||
staticfn char *hup_get_color_string(void);
|
staticfn char *hup_get_color_string(void);
|
||||||
@@ -592,7 +592,7 @@ static struct window_procs hup_procs = {
|
|||||||
hup_void_ndecl, /* nh_delay_output */
|
hup_void_ndecl, /* nh_delay_output */
|
||||||
#ifdef CHANGE_COLOR
|
#ifdef CHANGE_COLOR
|
||||||
hup_change_color,
|
hup_change_color,
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
hup_void_fdecl_int, /* change_background */
|
hup_void_fdecl_int, /* change_background */
|
||||||
hup_set_font_name,
|
hup_set_font_name,
|
||||||
#endif
|
#endif
|
||||||
@@ -795,14 +795,14 @@ hup_change_color(int color UNUSED, long rgb UNUSED, int reverse UNUSED)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
staticfn short
|
staticfn short
|
||||||
hup_set_font_name(winid window UNUSED, char *fontname UNUSED)
|
hup_set_font_name(winid window UNUSED, char *fontname UNUSED)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif /* MAC */
|
#endif /* MACOS9 */
|
||||||
|
|
||||||
staticfn char *
|
staticfn char *
|
||||||
hup_get_color_string(void)
|
hup_get_color_string(void)
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
#include "dlb.h"
|
#include "dlb.h"
|
||||||
#include "hacklib.h"
|
#include "hacklib.h"
|
||||||
|
|
||||||
#if !defined(O_WRONLY) && !defined(MAC) && !defined(AZTEC_C)
|
#if !defined(O_WRONLY) && !defined(MACOS9) && !defined(AZTEC_C)
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#endif
|
#endif
|
||||||
#if defined(__DJGPP__)
|
#if defined(__DJGPP__)
|
||||||
|
|||||||
+9
-9
@@ -23,15 +23,15 @@
|
|||||||
#include "dlb.h"
|
#include "dlb.h"
|
||||||
#include "hacklib.h"
|
#include "hacklib.h"
|
||||||
|
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
#if defined(__SC__) || defined(__MRC__) /* MPW compilers */
|
#if defined(__SC__) || defined(__MRC__) /* MPW compilers */
|
||||||
#define MPWTOOL
|
#define MPWTOOL
|
||||||
#include <CursorCtl.h>
|
#include <CursorCtl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#else /* MAC without MPWTOOL */
|
#else /* MACOS9 without MPWTOOL */
|
||||||
#define MACsansMPWTOOL
|
#define MACsansMPWTOOL
|
||||||
#endif
|
#endif
|
||||||
#endif /* MAC */
|
#endif /* MACOS9 */
|
||||||
|
|
||||||
#ifndef MPWTOOL
|
#ifndef MPWTOOL
|
||||||
#define SpinCursor(x)
|
#define SpinCursor(x)
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
#define DGN_TEMPLATE "NH:dat/%s" /* where dungeon.pdf file goes */
|
#define DGN_TEMPLATE "NH:dat/%s" /* where dungeon.pdf file goes */
|
||||||
#endif /* OLD_MAKEDEFS_OPTIONS */
|
#endif /* OLD_MAKEDEFS_OPTIONS */
|
||||||
#else /* not AMIGA */
|
#else /* not AMIGA */
|
||||||
#if defined(MAC) && !defined(__MACH__)
|
#if defined(MACOS9) && !defined(__MACH__)
|
||||||
/* MacOS 9 or earlier */
|
/* MacOS 9 or earlier */
|
||||||
#define SOURCE_TEMPLATE ":src:%s"
|
#define SOURCE_TEMPLATE ":src:%s"
|
||||||
#if __SC__ || __MRC__
|
#if __SC__ || __MRC__
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
#define INCLUDE_TEMPLATE ":include:%s"
|
#define INCLUDE_TEMPLATE ":include:%s"
|
||||||
#define DGN_TEMPLATE ":dat:%s" /* where dungeon.pdf file goes */
|
#define DGN_TEMPLATE ":dat:%s" /* where dungeon.pdf file goes */
|
||||||
#endif /* OLD_MAKEDEFS_OPTIONS */
|
#endif /* OLD_MAKEDEFS_OPTIONS */
|
||||||
#else /* neither AMIGA nor MAC */
|
#else /* neither AMIGA nor MACOS9 */
|
||||||
#ifdef OS2
|
#ifdef OS2
|
||||||
#define SOURCE_TEMPLATE "..\\src\\%s"
|
#define SOURCE_TEMPLATE "..\\src\\%s"
|
||||||
#define DATA_TEMPLATE "..\\dat\\%s"
|
#define DATA_TEMPLATE "..\\dat\\%s"
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
#define INCLUDE_TEMPLATE "..\\include\\%s"
|
#define INCLUDE_TEMPLATE "..\\include\\%s"
|
||||||
#define DGN_TEMPLATE "..\\dat\\%s" /* where dungeon.pdf file goes */
|
#define DGN_TEMPLATE "..\\dat\\%s" /* where dungeon.pdf file goes */
|
||||||
#endif /* OLD_MAKEDEFS_OPTIONS */
|
#endif /* OLD_MAKEDEFS_OPTIONS */
|
||||||
#else /* not AMIGA, MAC, or OS2 */
|
#else /* not AMIGA, MACOS9, or OS2 */
|
||||||
#define SOURCE_TEMPLATE "../src/%s"
|
#define SOURCE_TEMPLATE "../src/%s"
|
||||||
#define DATA_TEMPLATE "../dat/%s"
|
#define DATA_TEMPLATE "../dat/%s"
|
||||||
#define DATA_IN_TEMPLATE "../dat/%s"
|
#define DATA_IN_TEMPLATE "../dat/%s"
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
#define DGN_TEMPLATE "../dat/%s" /* where dungeon.pdf file goes */
|
#define DGN_TEMPLATE "../dat/%s" /* where dungeon.pdf file goes */
|
||||||
#endif /* OLD_MAKEDEFS_OPTIONS */
|
#endif /* OLD_MAKEDEFS_OPTIONS */
|
||||||
#endif /* else !OS2 */
|
#endif /* else !OS2 */
|
||||||
#endif /* else !MAC */
|
#endif /* else !MACOS9 */
|
||||||
#endif /* else !AMIGA */
|
#endif /* else !AMIGA */
|
||||||
|
|
||||||
static const char
|
static const char
|
||||||
@@ -257,7 +257,7 @@ main(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else /* ! MAC */
|
#else /* ! MACOS9 */
|
||||||
|
|
||||||
DISABLE_WARNING_UNREACHABLE_CODE
|
DISABLE_WARNING_UNREACHABLE_CODE
|
||||||
|
|
||||||
@@ -1551,7 +1551,7 @@ do_oracles(void)
|
|||||||
break;
|
break;
|
||||||
if (!(ok = (fscanf(ofp, "%5lx", &offset) == 1)))
|
if (!(ok = (fscanf(ofp, "%5lx", &offset) == 1)))
|
||||||
break;
|
break;
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
#ifdef __MWERKS__
|
#ifdef __MWERKS__
|
||||||
/*
|
/*
|
||||||
MetroWerks CodeWarrior Pro 1's (AKA CW12) version of MSL
|
MetroWerks CodeWarrior Pro 1's (AKA CW12) version of MSL
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ struct window_procs curses_procs = {
|
|||||||
curses_delay_output,
|
curses_delay_output,
|
||||||
#ifdef CHANGE_COLOR
|
#ifdef CHANGE_COLOR
|
||||||
curses_change_color,
|
curses_change_color,
|
||||||
#ifdef MAC /* old OS 9, not OSX */
|
#ifdef MACOS9 /* old OS 9, not OSX */
|
||||||
(void (*)(int)) 0,
|
(void (*)(int)) 0,
|
||||||
(short (*)(winid, char *)) 0,
|
(short (*)(winid, char *)) 0,
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+1
-1
@@ -541,7 +541,7 @@ tilename(int set, const int file_entry, int gend UNUSED)
|
|||||||
#define SOURCE_TEMPLATE "NH:src/%s"
|
#define SOURCE_TEMPLATE "NH:src/%s"
|
||||||
#define INCLUDE_TEMPLATE "NH:include/t.%s"
|
#define INCLUDE_TEMPLATE "NH:include/t.%s"
|
||||||
#else
|
#else
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
#define SOURCE_TEMPLATE ":src:%s"
|
#define SOURCE_TEMPLATE ":src:%s"
|
||||||
#define INCLUDE_TEMPLATE ":include:%s"
|
#define INCLUDE_TEMPLATE ":include:%s"
|
||||||
#else
|
#else
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#ifdef TTY_GRAPHICS
|
#ifdef TTY_GRAPHICS
|
||||||
|
|
||||||
#if !defined(MAC)
|
#if !defined(MACOS9)
|
||||||
#define NEWAUTOCOMP
|
#define NEWAUTOCOMP
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -20,7 +20,7 @@
|
|||||||
/* leave this undefined; it produces bad screen output with rxvt-unicode */
|
/* leave this undefined; it produces bad screen output with rxvt-unicode */
|
||||||
/*#define DECgraphicsOptimization*/
|
/*#define DECgraphicsOptimization*/
|
||||||
|
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
#define MICRO /* The Mac is a MICRO only for this file, not in general! */
|
#define MICRO /* The Mac is a MICRO only for this file, not in general! */
|
||||||
#ifdef THINK_C
|
#ifdef THINK_C
|
||||||
extern void msmsg(const char *, ...);
|
extern void msmsg(const char *, ...);
|
||||||
@@ -143,7 +143,7 @@ struct window_procs tty_procs = {
|
|||||||
tty_getlin, tty_get_ext_cmd, tty_number_pad, tty_delay_output,
|
tty_getlin, tty_get_ext_cmd, tty_number_pad, tty_delay_output,
|
||||||
#ifdef CHANGE_COLOR /* the Mac uses a palette device */
|
#ifdef CHANGE_COLOR /* the Mac uses a palette device */
|
||||||
tty_change_color,
|
tty_change_color,
|
||||||
#ifdef MAC
|
#ifdef MACOS9
|
||||||
tty_change_background, set_tty_font_name,
|
tty_change_background, set_tty_font_name,
|
||||||
#endif
|
#endif
|
||||||
tty_get_color_string,
|
tty_get_color_string,
|
||||||
|
|||||||
Reference in New Issue
Block a user