… | |
… | |
30 | #ifndef EXTERN |
30 | #ifndef EXTERN |
31 | #define EXTERN extern |
31 | #define EXTERN extern |
32 | #endif |
32 | #endif |
33 | |
33 | |
34 | #include "includes.h" |
34 | #include "includes.h" |
35 | |
|
|
36 | #include "config.h" |
35 | #include "config.h" |
|
|
36 | #include "compiler.h" |
37 | #include "define.h" |
37 | #include "define.h" |
38 | #include "logger.h" |
|
|
39 | |
38 | |
40 | #ifndef TRUE |
39 | #ifndef TRUE |
41 | #define TRUE 1 |
40 | #define TRUE 1 |
42 | #endif |
41 | #endif |
43 | |
42 | |
44 | #ifndef FALSE |
43 | #ifndef FALSE |
45 | #define FALSE 0 |
44 | #define FALSE 0 |
46 | #endif |
45 | #endif |
47 | |
46 | |
48 | extern short freearr_x[SIZEOFFREE], freearr_y[SIZEOFFREE]; |
47 | extern short freearr_x[SIZEOFFREE], freearr_y[SIZEOFFREE]; |
49 | extern int maxfree[SIZEOFFREE], freedir[SIZEOFFREE]; |
48 | extern int freedir[SIZEOFFREE]; |
50 | extern int rightof_x[9], rightof_y[9]; |
49 | extern int rightof_x[9], rightof_y[9]; |
51 | extern int leftof_x[9], leftof_y[9]; |
50 | extern int leftof_x[9], leftof_y[9]; |
52 | |
51 | |
53 | // used only for tagging structure members so scripting languages |
52 | // used only for tagging structure members so scripting languages |
54 | // can easily parse the include files. |
53 | // can easily parse the include files. |
55 | #define INTERFACE_CLASS(name) |
54 | #define INTERFACE_CLASS(name) |
56 | #define ACC(meta,member) member |
55 | #define ACC(meta,member) member |
57 | #define MTH |
56 | #define MTH |
58 | |
57 | |
59 | #if __GNUC__ >= 3 |
|
|
60 | # define attribute(attrlist) __attribute__(attrlist) |
|
|
61 | #else |
|
|
62 | # define attribute(attrlist) |
|
|
63 | #endif |
|
|
64 | |
|
|
65 | #include "keyword.h" |
58 | #include "keyword.h" |
66 | #include "traits.h" |
59 | #include "traits.h" |
|
|
60 | #include "logger.h" |
67 | #include "dynbuf.h" |
61 | #include "dynbuf.h" |
68 | #include "util.h" |
62 | #include "util.h" |
69 | #include "shstr.h" |
63 | #include "shstr.h" |
70 | #include "cfperl.h" |
64 | #include "cfperl.h" |
71 | |
65 | |
… | |
… | |
146 | * Misc global variables: |
140 | * Misc global variables: |
147 | */ |
141 | */ |
148 | EXTERN shstr first_map_path; /* The start-level */ |
142 | EXTERN shstr first_map_path; /* The start-level */ |
149 | EXTERN shstr first_map_ext_path; /* Path used for per-race start maps */ |
143 | EXTERN shstr first_map_ext_path; /* Path used for per-race start maps */ |
150 | |
144 | |
151 | EXTERN char errmsg[HUGE_BUF]; |
|
|
152 | EXTERN long ob_count; |
145 | EXTERN long ob_count; |
153 | |
146 | |
154 | extern dynbuf_text msg_dynbuf; // a dynbuf for text messages and other temporary data |
147 | extern dynbuf_text msg_dynbuf; // a dynbuf for text messages and other temporary data |
155 | |
148 | |
156 | /* do not use these in new code, see object.h::animation */ |
149 | /* do not use these in new code, see object.h::animation */ |