common.h

changeset 42
5cd91fd1526c
parent 41
47e686c96d8f
child 47
d84d82213137
--- a/common.h	Sat Aug 11 19:35:47 2012 +0300
+++ b/common.h	Sun Aug 12 01:52:42 2012 +0300
@@ -43,7 +43,8 @@
 
 #include <stdio.h>
 #include <stdarg.h>
-#include <typeinfo>
+#include <typeinfo> 
+#include <stdint.h>
 #include "bots.h"
 #include "str.h"
 
@@ -117,15 +118,17 @@
 }
 
 // Byte datatype
-typedef unsigned long int word;
-typedef unsigned char byte;
+// typedef unsigned long int word;
+typedef int32_t word;
+typedef uint8_t byte;
 
 // Keywords
-#define NUM_KEYWORDS 20
 #ifndef __MAIN_CXX__
 extern const char** g_Keywords;
 #endif
+
 bool IsKeyword (str s);
+unsigned int NumKeywords ();
 
 // Script mark and reference
 struct ScriptMark {

mercurial