On crash signal or panic(), use a configurable method to get a stacktrace the user can easily report to us. Currently only for Unix/Linux and only ifdef BETA. Hopefully ports can add additional methods. Bits: - linux hints file had PREFIX definition in the wrong place - sample sysconf file used wrong delimiter for WIZARDS - fix grammar error in support message when using sysconf.wizards - options.c comment typo - capitalize "Crash test" output from #panic command
36 lines
756 B
C
36 lines
756 B
C
/* NetHack 3.5 sys.h $Date$ $Revision$ */
|
|
/* Copyright (c) Kenneth Lorber, Kensington, Maryland, 2008. */
|
|
/* NetHack may be freely redistributed. See license for details. */
|
|
|
|
#ifndef SYS_H
|
|
#define SYS_H
|
|
|
|
#define E extern
|
|
|
|
E void NDECL(sys_early_init);
|
|
|
|
struct sysopt {
|
|
char *support; /* local support contact */
|
|
char *recover; /* how to run recover - may be overridden by win port */
|
|
char *wizards;
|
|
char *shellers; /* like wizards, for ! command (-DSHELL) */
|
|
int maxplayers;
|
|
/* record file */
|
|
int persmax;
|
|
int pers_is_uid;
|
|
int entrymax;
|
|
int pointsmin;
|
|
#ifdef PANICTRACE
|
|
/* panic options */
|
|
char *gdbpath;
|
|
int panictrace_gdb;
|
|
# ifdef PANICTRACE_GLIBC
|
|
int panictrace_glibc;
|
|
# endif
|
|
#endif
|
|
};
|
|
E struct sysopt sysopt;
|
|
|
|
#endif /* SYS_H */
|
|
|