#define ulong unsigned long #define ushort unsigned short #define uchar unsigned char #define uint unsigned int #define ARRAYSIZE 20 #define STRLISTSIZE 128 #define SYMBOLSIZE 256 #ifdef KERNEL #define CONTEXTFIR 0 // only unchanged FIR in context #define CONTEXTVALID 1 // full, but unchanged context #define CONTEXTDIRTY 2 // full, but changed context #endif // error codes #define OVERFLOW 0x1000 #define SYNTAX 0x1001 #define BADRANGE 0x1002 #define VARDEF 0x1003 #define EXTRACHARS 0x1004 #define LISTSIZE 0x1005 #define STRINGSIZE 0x1006 #define MEMORY 0x1007 #define BADREG 0x1008 #define BADOPCODE 0x1009 #define SUFFIX 0x100a #define OPERAND 0x100b #define ALIGNMENT 0x100c #define PREFIX 0x100d #define DISPLACEMENT 0x100e #define BPLISTFULL 0x100f #define BPDUPLICATE 0x1010 #define BADTHREAD 0x1011 #define DIVIDE 0x1012 #define TOOFEW 0x1013 #define TOOMANY 0x1014 #define SIZE 0x1015 #define BADSEG 0x1016 #define RELOC 0x1017 #define BADPROCESS 0x1018 #define AMBIGUOUS 0x1019 #define FILEREAD 0x101a #define LINENUMBER 0x101b #define BADSEL 0x101c #define SYMTOOSMALL 0x101d #define BPIONOTSUP 0x101e #define UNIMPLEMENT 0x1099 // token classes (< 100) and types (>= 100) #define EOL_CLASS 0 #define ADDOP_CLASS 1 #define ADDOP_PLUS 100 #define ADDOP_MINUS 101 #define MULOP_CLASS 2 #define MULOP_MULT 200 #define MULOP_DIVIDE 201 #define MULOP_MOD 202 #define MULOP_SEG 203 #define LOGOP_CLASS 3 #define LOGOP_AND 300 #define LOGOP_OR 301 #define LOGOP_XOR 302 #define LRELOP_CLASS 4 #define LRELOP_EQ 400 #define LRELOP_NE 401 #define LRELOP_LT 402 #define LRELOP_GT 403 #define UNOP_CLASS 5 #define UNOP_NOT 500 #define UNOP_BY 501 #define UNOP_WO 502 #define UNOP_DW 503 #define UNOP_POI 504 #define UNOP_LOW 505 #define UNOP_HI 506 #define LPAREN_CLASS 6 #define RPAREN_CLASS 7 #define LBRACK_CLASS 8 #define RBRACK_CLASS 9 #define REG_CLASS 10 #define NUMBER_CLASS 11 #define SYMBOL_CLASS 12 #define ERROR_CLASS 99 //only used for PeekToken #define INI_DIR (PUCHAR)"Init" #define INI_FILE (PUCHAR)"\\TOOLS.INI" #define INI_MARK (PUCHAR)"[ntsd]" #define NTINI_DEBUGCHILDREN 1 #define NTINI_DEBUGOUTPUT 2 #define NTINI_STOPFIRST 3 #define NTINI_VERBOSEOUTPUT 4 #define NTINI_LAZYLOAD 5 #define NTINI_TRUE 6 #define NTINI_FALSE 7 #define NTINI_USERREG0 8 #define NTINI_USERREG1 9 #define NTINI_USERREG2 10 #define NTINI_USERREG3 11 #define NTINI_USERREG4 12 #define NTINI_USERREG5 13 #define NTINI_USERREG6 14 #define NTINI_USERREG7 15 #define NTINI_USERREG8 16 #define NTINI_USERREG9 17 #define NTINI_STOPONPROCESSEXIT 18 #define NTINI_SXD 19 #define NTINI_SXE 20 #define NTINI_INIFILE 21 #define NTINI_DEFAULTEXT 22 #define NTINI_INVALID 23 #define NTINI_END 24