databuffer.h

changeset 45
e1d3b7ea975c
parent 43
1b35c9985989
child 48
976c57f153b3
--- a/databuffer.h	Sun Aug 12 04:10:25 2012 +0300
+++ b/databuffer.h	Sun Aug 12 04:13:27 2012 +0300
@@ -145,7 +145,7 @@
 		for (u = 0; u < MAX_MARKS; u++) {
 			if (other->marks[u]) {
 				// Add the mark and offset its position.
-				unsigned int u = AddMark (other->marks[u]->type, other->marks[u]->name);
+				unsigned int u = AddMark (other->marks[u]->name);
 				marks[u]->pos += other->writesize;
 			}
 			
@@ -172,7 +172,7 @@
 	// position in the bytecode. The actual permanent position cannot
 	// be predicted in any way or form, thus these things will be used
 	// to "mark" a position like that for future use.
-	unsigned int AddMark (int type, str name) {
+	unsigned int AddMark (str name) {
 		// Find a free slot for the mark
 		unsigned int u;
 		for (u = 0; u < MAX_MARKS; u++)
@@ -184,7 +184,6 @@
 		
 		ScriptMark* m = new ScriptMark;
 		m->name = name;
-		m->type = type;
 		m->pos = writesize;
 		marks[u] = m;
 		return u;

mercurial