Commit 4170c488 authored by Benoit Perrot's avatar Benoit Perrot
Browse files

Index: ChangeLog

from  Benoit Perrot <benoit@lrde.epita.fr>

	* monoburg.c (emit_state): Do not forward define MBState type. 
	
parent af54d230
2004-11-07 Benoit Perrot <benoit@lrde.epita.fr>
* monoburg.c (emit_state): Do not forward define MBState type.
2004-11-07 Benoit Perrot <benoit@lrde.epita.fr>
* monoburg.c: Do not emit debug string tables when
......
......@@ -441,7 +441,6 @@ emit_state ()
GList *l;
int i, j;
output ("typedef struct _MBState MBState;\n");
output ("struct _MBState {\n");
output ("\tint\t\t op;\n");
......@@ -450,7 +449,7 @@ emit_state ()
output ("\tgint32 reg1, reg2;\n");
}
output ("\tMBState\t\t*left, *right;\n");
output ("\tstruct _MBState\t\t*left, *right;\n");
output ("\tguint16\t\tcost[%d];\n", g_list_length (nonterm_list) + 1);
for (l = nonterm_list; l; l = l->next) {
......@@ -463,6 +462,7 @@ emit_state ()
output ("\tunsigned int\t rule_%s:%d;\n", n->name, j);
}
output ("};\n\n");
output ("typedef struct _MBState MBState;\n");
}
static void
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment