some cleanup

Sun, 12 Aug 2012 04:45:27 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Sun, 12 Aug 2012 04:45:27 +0300
changeset 47
d84d82213137
parent 46
a29eeecf3ecb
child 48
976c57f153b3

some cleanup

common.h file | annotate | diff | comparison | revisions
parser.cxx file | annotate | diff | comparison | revisions
--- a/common.h	Sun Aug 12 04:40:33 2012 +0300
+++ b/common.h	Sun Aug 12 04:45:27 2012 +0300
@@ -132,7 +132,6 @@
 
 // Script mark and reference
 struct ScriptMark {
-	int type;
 	str name;
 	size_t pos;
 };
--- a/parser.cxx	Sun Aug 12 04:40:33 2012 +0300
+++ b/parser.cxx	Sun Aug 12 04:45:27 2012 +0300
@@ -311,7 +311,7 @@
 			
 			// Add the condition
 			w->WriteBuffer (cond);
-			w->Write<long> (DH_IFNOTGOTO);
+			w->Write<word> (DH_IFNOTGOTO);
 			w->AddReference (mark2);
 			
 			// Store the marks and incrementor
@@ -328,8 +328,6 @@
 			MUST_NOT_TOPLEVEL
 			PushBlockStack ();
 			MustNext ("{");
-			
-			// Store the marks and incrementor
 			blockstack[g_BlockStackCursor].mark1 = w->AddMark ("");
 			blockstack[g_BlockStackCursor].type = BLOCKTYPE_DO;
 			continue;

mercurial