Source:NetHack 3.6.7/include/amiconf.h

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to amiconf.h from the source code of NetHack 3.6.7. To link to a particular line, write [[Source:NetHack 3.6.7/include/amiconf.h#line12]], for example.

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