Source:NetHack 3.4.3/include/amiconf.h

From NetHackWiki
Jump to: navigation, search

Below is the full text to include/amiconf.h from NetHack 3.4.3. To link to a particular line, write [[amiconf.h#line123]], for example.

  1. /*	SCCS Id: @(#)amiconf.h	3.4	2000/01/12	*/
  2. /* Copyright (c) Kenneth Lorber, Bethesda, Maryland, 1990, 1991, 1992, 1993. */
  3. /* NetHack may be freely redistributed.  See license for details. */

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

  1. #ifndef AMICONF_H
  2. #define AMICONF_H
  3.  
  4. #undef abs		/* avoid using macro form of abs */
  5. #ifndef __SASC_60
  6. # undef min		/* this gets redefined */
  7. # undef max		/* this gets redefined */
  8. #endif
  9.  
  10. #include <time.h>	/* get time_t defined before use! */
  11.  
  12. #ifdef __SASC_60	/* since SAS can prevent re-inclusion */
  13. #include <stdlib.h>	/* general things, including builtins */
  14. #include <string.h>
  15. #endif
  16.  
  17. #ifdef AZTEC_50
  18. #include <stdlib.h>
  19. # define AZTEC_C_WORKAROUND /* Bug which turns up in sounds.c. Bummer... */
  20. # define NO_SIGNAL	/* 5.0 signal handling doesn't like SIGINT... */
  21. #endif
  22.  
  23. #ifdef _DCC
  24. #include <stdlib.h>
  25. # define _SIZE_T
  26. # define DCC30_BUG	/* A bitfield bug (from dog.c, others) in DICE 3.0. */
  27. #endif
  28.  
  29. #ifndef __GNUC__
  30. typedef long off_t;
  31. #endif
  32.  
  33. #define MICRO		/* must be defined to allow some inclusions */
  34.  
  35. #define NOCWD_ASSUMPTIONS	/* Allow paths to be specified for HACKDIR,
  36. 				   LEVELDIR, SAVEDIR, BONESDIR, DATADIR,
  37. 				   SCOREDIR, LOCKDIR, CONFIGDIR, and TROUBLEDIR */
  38.  
  39. /* data librarian defs */
  40. #ifndef NOCWD_ASSUMPTIONS
  41. # define DLBFILE	"NetHack:nhdat"		/* main library */
  42. # define DLBFILE2	"NetHack:nhsdat"	/* sound library */
  43. #else
  44. # define DLBFILE	"nhdat"			/* main library */
  45. # define DLBFILE2	"nhsdat"		/* sound library */
  46. #endif
  47.  
  48. #define FILENAME_CMP	stricmp			/* case insensitive */
  49.  
  50. #ifndef __SASC_60
  51. # define O_BINARY	0
  52. #endif
  53.  
  54. /* Compile in New Intuition look for 2.0 */
  55. #ifdef	IDCMP_CLOSEWINDOW
  56. # ifndef INTUI_NEW_LOOK
  57. #  define	INTUI_NEW_LOOK	1
  58. # endif
  59. #endif
  60.  
  61. #define MFLOPPY		/* You'll probably want this; provides assistance
  62. 			 * for typical personal computer configurations
  63. 			 */
  64. #define RANDOM
  65.  
  66. /* ### amidos.c ### */
  67.  
  68. extern void  FDECL(nethack_exit, (int));
  69.  
  70. /* ### amiwbench.c ### */
  71.  
  72. extern void NDECL(ami_wbench_init);
  73. extern void NDECL(ami_wbench_args);
  74. extern int FDECL(ami_wbench_getsave, (int));
  75. extern void FDECL(ami_wbench_unlink, (char *));
  76. extern int FDECL(ami_wbench_iconsize, (char *));
  77. extern void FDECL(ami_wbench_iconwrite, (char *));
  78. extern int FDECL(ami_wbench_badopt, (const char *));
  79. extern void NDECL(ami_wbench_cleanup);
  80. extern void FDECL(getlind, (const char *,char *,const char *));
  81.  
  82. /* ### winreq.c ### */
  83.  
  84. extern void amii_setpens(int);
  85.  
  86. extern void FDECL(exit, (int));
  87. extern void NDECL(CleanUp);
  88. extern void FDECL(Abort, (long));
  89. extern int NDECL(getpid);
  90. extern char *FDECL(CopyFile, (const char *, const char *));
  91. extern int NDECL(kbhit);
  92. extern int NDECL(WindowGetchar);
  93. extern void FDECL(ami_argset, (int *, char *[]));
  94. extern void FDECL(ami_mkargline, (int *, char **[]));
  95. extern void ami_wininit_data(void);
  96.  
  97. #define FromWBench 0 /* A hint for compiler ... */
  98. /* extern boolean FromWBench;	/* how were we run? */
  99. extern int ami_argc;
  100. extern char **ami_argv;
  101.  
  102. #ifndef MICRO_H
  103. #include "micro.h"
  104. #endif
  105.  
  106. #ifndef PCCONF_H
  107. #include "pcconf.h"	/* remainder of stuff is almost same as the PC */
  108. #endif
  109.  
  110. #define remove(x)	unlink(x)
  111.  
  112. /* DICE wants rewind() to return void.	We want it to return int. */
  113. #if defined(_DCC) || defined(__GNUC__)
  114. # define rewind(f)	fseek(f, 0, 0)
  115. #endif
  116.  
  117. #ifdef AZTEC_C
  118. extern FILE *FDECL(freopen, (const char *, const char *, FILE *));
  119. extern char *FDECL(gets, (char *));
  120. #endif
  121.  
  122. #define msmsg		printf
  123.  
  124. /*
  125. * If AZTEC_C  we can't use the long cpath in vision.c....
  126. */
  127. #ifdef AZTEC_C
  128. # undef MACRO_CPATH
  129. #endif
  130.  
  131. /*
  132. *  (Possibly) configurable Amiga options:
  133. */
  134.  
  135. #define TEXTCOLOR		/* Use colored monsters and objects */
  136. #define HACKFONT		/* Use special hack.font */
  137. #define SHELL			/* Have a shell escape command (!) */
  138. #define MAIL			/* Get mail at unexpected occasions */
  139. #define DEFAULT_ICON "NetHack:default.icon"	/* private icon */
  140. #define AMIFLUSH		/* toss typeahead (select flush in .cnf) */
  141. /* #define OPT_DISPMAP		/* enable fast_map option */
  142.  
  143. /* new window system options */
  144. 			/* WRONG - AMIGA_INTUITION should go away */
  145. #ifdef AMII_GRAPHICS
  146. # define AMIGA_INTUITION	/* high power graphics interface (amii) */
  147. #endif
  148.  
  149. #define CHANGE_COLOR	1
  150.  
  151. #ifdef	TEXTCOLOR
  152. #  define	DEPTH	6	/* Maximum depth of the screen allowed */
  153. #else
  154. # define	DEPTH	2	/* Four colors...sigh... */
  155. #endif
  156.  
  157. #define AMII_MAXCOLORS	(1L<<DEPTH)
  158. typedef unsigned short AMII_COLOR_TYPE;
  159.  
  160. #define PORT_HELP	"nethack:amii.hlp"
  161.  
  162. #undef	TERMLIB
  163.  
  164. #define AMII_MUFFLED_VOLUME	40
  165. #define AMII_SOFT_VOLUME	50
  166. #define AMII_OKAY_VOLUME	60
  167. #define AMII_LOUDER_VOLUME	80
  168.  
  169. #ifdef TTY_GRAPHICS
  170. # define ANSI_DEFAULT
  171. #endif
  172.  
  173. extern int amibbs;	/* BBS mode? */
  174.  
  175. #ifdef AMII_GRAPHICS
  176. extern int amii_numcolors;
  177. void FDECL( amii_setpens, (int) );
  178. #endif
  179.  
  180. /* for cmd.c: override version in micro.h */
  181. #ifdef __SASC_60
  182. # undef M
  183. # define M(c) ((c) - 128 )
  184. #endif
  185.  
  186. #endif /* AMICONF_H */