(This covers some thing that Pat found and some things I found while working on those.) Unscramble duplicate use of GREPPATH and GDBPATH symbols. Add some more info to config.h. Make missing SYSCF_FILE a fatal error. Make a parse error in SYSCF_FILE a fatal error. Rename PANICTRACE_GLIBC (et al) to PANICTRACE_LIBC (et al) since FreeBSD and Mac OS X (at least) also implement the needed API. Allow SYSCF_FILE to be unreadable by the user (for setgid installs). If SYSCF, do NOT fall back to the compiled in WIZARD account. Put WIZARD into sysopt and remove special cases in authorize_wizard_mode().
44 lines
874 B
C
44 lines
874 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;
|
|
char *greppath;
|
|
int panictrace_gdb;
|
|
# ifdef PANICTRACE_LIBC
|
|
int panictrace_libc;
|
|
# endif
|
|
#endif
|
|
int seduce;
|
|
};
|
|
E struct sysopt sysopt;
|
|
|
|
#ifdef SEDUCE
|
|
# define SYSOPT_SEDUCE sysopt.seduce
|
|
#else
|
|
# define SYSOPT_SEDUCE 0
|
|
#endif
|
|
|
|
#endif /* SYS_H */
|
|
|