115 inline bool IsCharWhitespace (char c) { |
116 inline bool IsCharWhitespace (char c) { |
116 return (c <= 32 || c == 127 || c == 255); |
117 return (c <= 32 || c == 127 || c == 255); |
117 } |
118 } |
118 |
119 |
119 // Byte datatype |
120 // Byte datatype |
120 typedef unsigned long int word; |
121 // typedef unsigned long int word; |
121 typedef unsigned char byte; |
122 typedef int32_t word; |
|
123 typedef uint8_t byte; |
122 |
124 |
123 // Keywords |
125 // Keywords |
124 #define NUM_KEYWORDS 20 |
|
125 #ifndef __MAIN_CXX__ |
126 #ifndef __MAIN_CXX__ |
126 extern const char** g_Keywords; |
127 extern const char** g_Keywords; |
127 #endif |
128 #endif |
|
129 |
128 bool IsKeyword (str s); |
130 bool IsKeyword (str s); |
|
131 unsigned int NumKeywords (); |
129 |
132 |
130 // Script mark and reference |
133 // Script mark and reference |
131 struct ScriptMark { |
134 struct ScriptMark { |
132 int type; |
135 int type; |
133 str name; |
136 str name; |