this shouldn't be in svn
[supertux.git] / src / squirrel / squirrel / sqlexer.h
index 750bbd0..be3b188 100644 (file)
@@ -2,9 +2,11 @@
 #ifndef _SQLEXER_H_\r
 #define _SQLEXER_H_\r
 \r
-#define MAX_STRING 2024\r
-\r
-\r
+#ifdef _UNICODE\r
+typedef SQChar LexChar;\r
+#else\r
+typedef        unsigned char LexChar;\r
+#endif\r
 \r
 struct SQLexer\r
 {\r
@@ -33,11 +35,7 @@ public:
        SQFloat _fvalue;\r
        SQLEXREADFUNC _readf;\r
        SQUserPointer _up;\r
-#ifdef _UNICODE\r
-       SQChar _currdata;\r
-#else\r
-       unsigned char _currdata;\r
-#endif\r
+       LexChar _currdata;\r
        SQSharedState *_sharedstate;\r
        sqvector<SQChar> _longstr;\r
        CompilerErrorFunc _errfunc;\r