[Redbutton-devel] SF.net SVN: redbutton: [370] redbutton-author/trunk/ccc.y
Brought to you by:
skilvington
|
From: <ski...@us...> - 2007-09-10 08:45:01
|
Revision: 370
http://redbutton.svn.sourceforge.net/redbutton/?rev=370&view=rev
Author: skilvington
Date: 2007-09-10 01:44:58 -0700 (Mon, 10 Sep 2007)
Log Message:
-----------
print the real names of enums, not the names of their lex tokens
Modified Paths:
--------------
redbutton-author/trunk/ccc.y
Modified: redbutton-author/trunk/ccc.y
===================================================================
--- redbutton-author/trunk/ccc.y 2007-09-08 17:32:26 UTC (rev 369)
+++ redbutton-author/trunk/ccc.y 2007-09-10 08:44:58 UTC (rev 370)
@@ -486,7 +486,7 @@
buf_append(&state.parse_enum_hdr, "void parse_%s(struct state *);\n", tok_name);
buf_append(&state.parse_enum_fns, "void parse_%s(struct state *state)\n{\n", tok_name);
buf_append(&state.parse_enum_fns, "\texpect_token(%s, %s);\n", tok_name, item->name);
- buf_append(&state.parse_enum_fns, "\n\tverbose(\"<ENUM name=%s value=%u/>\\n\");\n", tok_name, enum_val);
+ buf_append(&state.parse_enum_fns, "\n\tverbose(\"<ENUM name=\\\"\"%s\"\\\" value=%u/>\\n\");\n", item->name, enum_val);
buf_append(&state.parse_enum_fns, "\n\treturn;\n}\n\n");
free(tok_name);
enum_val ++;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|