variables.h

changeset 24
7dcc8419dbdb
parent 23
ba351235688e
child 67
0a202714eea4
--- a/variables.h	Sun Jul 15 00:32:26 2012 +0300
+++ b/variables.h	Sun Jul 15 03:24:46 2012 +0300
@@ -44,10 +44,9 @@
 #include "scriptreader.h"
 
 struct ScriptVar {
-	int type;
 	str name;
 	str statename;
-	str value;
+	int value;
 	unsigned int index;
 	ScriptVar* next;
 };
@@ -62,8 +61,9 @@
 #define ITERATE_SCRIPT_VARS(g) \
 	for (g = g_ScriptVariable; g != NULL; g = g->next)
 
-ScriptVar* DeclareGlobalVariable (ScriptReader* r, str name, int type);
+ScriptVar* DeclareGlobalVariable (ScriptReader* r, str name);
 unsigned int CountGlobalVars ();
 void InitVariables ();
+ScriptVar* FindGlobalVariable (str name);
 
 #endif // __VARIABLES_H__
\ No newline at end of file

mercurial