Changes needed in the mac terminal port due to globals changes.
This commit is contained in:
@@ -201,7 +201,6 @@ STATIC_DCL void FDECL(show_direction_keys, (winid, CHAR_P, BOOLEAN_P));
|
|||||||
STATIC_DCL boolean FDECL(help_dir, (CHAR_P, int, const char *));
|
STATIC_DCL boolean FDECL(help_dir, (CHAR_P, int, const char *));
|
||||||
|
|
||||||
static const char *readchar_queue = "";
|
static const char *readchar_queue = "";
|
||||||
static coord clicklook_cc;
|
|
||||||
/* for rejecting attempts to use wizard mode commands */
|
/* for rejecting attempts to use wizard mode commands */
|
||||||
static const char unavailcmd[] = "Unavailable command '%s'.";
|
static const char unavailcmd[] = "Unavailable command '%s'.";
|
||||||
/* for rejecting #if !SHELL, !SUSPEND */
|
/* for rejecting #if !SHELL, !SUSPEND */
|
||||||
|
|||||||
@@ -299,6 +299,8 @@ unsigned nhUse_dummy = 0;
|
|||||||
|
|
||||||
#define IVMAGIC 0xdeadbeef
|
#define IVMAGIC 0xdeadbeef
|
||||||
|
|
||||||
|
#pragma GCC diagnostic ignored "-Wmissing-braces"
|
||||||
|
|
||||||
const struct instance_globals g_init = {
|
const struct instance_globals g_init = {
|
||||||
/* apply.c */
|
/* apply.c */
|
||||||
0, /* jumping_is_magic */
|
0, /* jumping_is_magic */
|
||||||
|
|||||||
+4
-4
@@ -92,8 +92,8 @@ char *argv[];
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
hname = argv[0];
|
g.hname = argv[0];
|
||||||
hackpid = getpid();
|
g.hackpid = getpid();
|
||||||
(void) umask(0777 & ~FCMASK);
|
(void) umask(0777 & ~FCMASK);
|
||||||
|
|
||||||
choose_windows(DEFAULT_WINDOW_SYS);
|
choose_windows(DEFAULT_WINDOW_SYS);
|
||||||
@@ -152,7 +152,7 @@ char *argv[];
|
|||||||
initoptions();
|
initoptions();
|
||||||
#endif
|
#endif
|
||||||
#ifdef PANICTRACE
|
#ifdef PANICTRACE
|
||||||
ARGV0 = hname; /* save for possible stack trace */
|
ARGV0 = g.hname; /* save for possible stack trace */
|
||||||
#ifndef NO_SIGNAL
|
#ifndef NO_SIGNAL
|
||||||
panictrace_setsignals(TRUE);
|
panictrace_setsignals(TRUE);
|
||||||
#endif
|
#endif
|
||||||
@@ -180,7 +180,7 @@ char *argv[];
|
|||||||
#endif
|
#endif
|
||||||
initoptions();
|
initoptions();
|
||||||
#ifdef PANICTRACE
|
#ifdef PANICTRACE
|
||||||
ARGV0 = hname; /* save for possible stack trace */
|
ARGV0 = g.hname; /* save for possible stack trace */
|
||||||
#ifndef NO_SIGNAL
|
#ifndef NO_SIGNAL
|
||||||
panictrace_setsignals(TRUE);
|
panictrace_setsignals(TRUE);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+2
-2
@@ -203,8 +203,8 @@ gotlock:
|
|||||||
if (fd == -1) {
|
if (fd == -1) {
|
||||||
error("cannot creat lock file (%s).", fq_lock);
|
error("cannot creat lock file (%s).", fq_lock);
|
||||||
} else {
|
} else {
|
||||||
if (write(fd, (genericptr_t) &hackpid, sizeof hackpid)
|
if (write(fd, (genericptr_t) &g.hackpid, sizeof g.hackpid)
|
||||||
!= sizeof hackpid) {
|
!= sizeof g.hackpid) {
|
||||||
error("cannot write lock (%s)", fq_lock);
|
error("cannot write lock (%s)", fq_lock);
|
||||||
}
|
}
|
||||||
if (close(fd) == -1) {
|
if (close(fd) == -1) {
|
||||||
|
|||||||
+1
-1
@@ -493,7 +493,7 @@ tty_start_screen()
|
|||||||
/* set up callback in case option is not set yet but toggled later */
|
/* set up callback in case option is not set yet but toggled later */
|
||||||
decgraphics_mode_callback = tty_decgraphics_termcap_fixup;
|
decgraphics_mode_callback = tty_decgraphics_termcap_fixup;
|
||||||
#endif
|
#endif
|
||||||
if (Cmd.num_pad)
|
if (g.Cmd.num_pad)
|
||||||
tty_number_pad(1); /* make keypad send digits */
|
tty_number_pad(1); /* make keypad send digits */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user