scriptreader.h

changeset 58
bc9317d1b9c9
parent 56
384c5605bda9
child 59
891b9e6ee139
--- a/scriptreader.h	Sat Aug 25 03:53:10 2012 +0300
+++ b/scriptreader.h	Sat Aug 25 04:02:37 2012 +0300
@@ -91,7 +91,7 @@
 	unsigned int pos[MAX_FILESTACK];
 	unsigned int curline[MAX_FILESTACK];
 	unsigned int curchar[MAX_FILESTACK];
-	BlockInformation blockstack[MAX_STRUCTSTACK];
+	BlockInformation scopestack[MAX_STRUCTSTACK];
 	long savedpos[MAX_FILESTACK]; // filepointer cursor position
 	str token;
 	int commentmode;
@@ -128,7 +128,7 @@
 	DataBuffer* ParseAssignment (ScriptVar* var);
 	int ParseOperator (bool peek = false);
 	DataBuffer* ParseExprValue (int reqtype);
-	void PushBlockStack ();
+	void PushScope ();
 	
 	// preprocessor.cxx:
 	void PreprocessDirectives ();
@@ -194,13 +194,13 @@
 
 // Block types
 enum {
-	BLOCKTYPE_UNSET = 0,
-	BLOCKTYPE_IF,
-	BLOCKTYPE_WHILE,
-	BLOCKTYPE_FOR,
-	BLOCKTYPE_DO,
-	BLOCKTYPE_SWITCH,
-	BLOCKTYPE_ELSE,
+	SCOPETYPE_UNSET = 0,
+	SCOPETYPE_IF,
+	SCOPETYPE_WHILE,
+	SCOPETYPE_FOR,
+	SCOPETYPE_DO,
+	SCOPETYPE_SWITCH,
+	SCOPETYPE_ELSE,
 };
 
 #endif // __SCRIPTREADER_H__
\ No newline at end of file

mercurial