Source:SLASH'EM 0.0.7E7F2/tosconf.h

Below is the full text to tosconf.h from the source code of SLASH'EM 0.0.7E7F2. To link to a particular line, write [[SLASH'EM 0.0.7E7F2/tosconf.h#line123 ]], for example.

The latest source code for vanilla NetHack is at Source code.

1.   /*	SCCS Id: @(#)tosconf.h	3.2	90/02/22	*/ 2.   /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 3.    /* NetHack may be freely redistributed. See license for details. */ 4.     5.    #ifdef TOS 6.   #ifndef TOSCONF_H 7.   #define TOSCONF_H 8.    9.    #define MICRO		/* must be defined to allow some inclusions */ 10.   11.   /*  12.      Adjust these options to suit your compiler. The default here is for 13.     GNU C with the MiNT library. 14.  */  15.    16.   /* #define NO_SIGNAL */		/* library doesn't support signals	*/ 17.  /* #define NO_FSTAT */		/* library doesn't have fstat call	*/ 18.  #define MINT			/* library supports MiNT extensions to TOS */ 19.   20.   #ifdef __MINT__ 21.  #define MINT 22.  #endif 23.   24.   #ifdef O_BINARY 25.  #define FCMASK	O_BINARY 26.  #else 27.  #define FCMASK	0660 28.  #define O_BINARY 0 29.  #endif 30.   31.   #ifdef UNIXDEBUG 32.  #define remove(x)	unlink(x) 33.  #endif 34.   35.   /* configurable options */ 36.  #define MFLOPPY			/* floppy support		*/ 37.  #define RANDOM			/* improved random numbers	*/ 38.  #define SHELL			/* allow spawning of shell	*/ 39.  #define TERMLIB			/* use termcap			*/ 40.  #define TEXTCOLOR		/* allow color			*/ 41.  #define MAIL			/* enable the fake maildemon */ 42.  #ifdef MINT 43.  #define SUSPEND			/* allow suspending the game	*/ 44.  #endif 45.   46.   #ifndef TERMLIB 47.  #define ANSI_DEFAULT		/* use vt52 by default		*/ 48.  #endif 49.   50.   #if defined(__GNUC__) || defined(__MINT__) 51.  /* actually, only more recent GNU C libraries have strcmpi 52.   * on the other hand, they're free -- if yours is out of  53. * date, grab the most recent from atari.archive.umich.edu 54.   */  55.   #define STRNCMPI 56.  #undef strcmpi 57.  extern int FDECL(strcmpi,(const char *, const char *)); 58.  extern int FDECL(strncmpi,(const char *, const char *, size_t)); 59.  #endif 60.   61.   #include   62. #include  63. /* instead of including system.h from pcconf.h */ 64.  #include   65. #include  66. #include  67. #define SIG_RET_TYPE __Sigfunc 68.  #define SYSTEM_H 69.   70.   #ifndef MICRO_H 71.  #include "micro.h"  72. #endif 73.  #ifndef PCCONF_H 74.  #include "pcconf.h"		/* remainder of stuff is same as the PC */ 75.  #endif 76.   77.   #ifdef TEXTCOLOR 78.  extern boolean colors_changed;	/* in tos.c */ 79.  #endif 80.   81.   #ifdef __GNUC__ 82.  #define GCC_BUG		/* correct a gcc bug involving double for loops */ 83.  #endif 84.   85.   #endif /* TOSCONF_H */ 86.  #endif /* TOS */