1 #ifndef __DDTEXCOMPILER_H__ 2 #define __DDTEXCOMPILER_H__ 3 4 #ifdef UNIX 5 # include <strings.h> 6 # define strnicmp strncasecmp 7 # define stricmp strcasecmp 8 void strupr(char* str); 9 #endif 10 11 #ifdef WIN32 12 # define stricmp _stricmp 13 # define strnicmp _strnicmp 14 # define strupr _strupr 15 #endif 16 17 #define VERSION_STR "1.0" 18 #define MAX_TOKEN 256 19 #define NUM_GROUPS 2 20 #define MAX_PATCHES 256 21 22 enum texsyntax_e 23 { 24 STX_SIMPLE 25 }; 26 27 typedef struct 28 { 29 char identification[4]; 30 int numlumps; 31 int infotableofs; 32 } wadinfo_t; 33 34 typedef struct 35 { 36 int filepos; 37 int size; 38 char name[8]; 39 } lumpinfo_t; 40 41 typedef struct 42 { 43 short originX; 44 short originY; 45 short patch; 46 short reserved1; 47 short reserved2; 48 } mappatch_t; 49 50 typedef struct 51 { 52 char name[9]; 53 int flags; 54 short width; 55 short height; 56 int reserved; 57 short patchCount; 58 mappatch_t patches[MAX_PATCHES]; 59 } maptexture_t; 60 61 typedef struct def_s 62 { 63 def_s *next, *prev; 64 maptexture_t tex; 65 } def_t; 66 67 typedef struct patch_s 68 { 69 patch_s *next, *prev; 70 char name[9]; 71 } patch_t; 72 73 // Global variables. 74 extern bool fullImport; 75 76 #endif 77