--- a/stage4/generate_c/generate_c_typedecl.cc Mon May 25 12:17:10 2009 +0200
+++ b/stage4/generate_c/generate_c_typedecl.cc Tue May 26 18:04:27 2009 +0200
@@ -194,8 +194,6 @@
/* subrange_type_name ':' subrange_spec_init */
void *visit(subrange_type_declaration_c *symbol) {
TRACE("subrange_type_declaration_c");
- /* add this type declaration to the type symbol table... */
- type_symtable.insert(symbol->subrange_type_name, symbol->subrange_spec_init);
s4o_incl.print("typedef ");
current_basetypedeclaration = subrangebasetype_bd;
@@ -308,8 +306,6 @@
/* enumerated_type_name ':' enumerated_spec_init */
void *visit(enumerated_type_declaration_c *symbol) {
TRACE("enumerated_type_declaration_c");
- /* add this type declaration to the type symbol table... */
- type_symtable.insert(symbol->enumerated_type_name, symbol->enumerated_spec_init);
s4o_incl.print("typedef enum {\n");
s4o_incl.indent_right();
@@ -343,8 +339,6 @@
/* identifier ':' array_spec_init */
void *visit(array_type_declaration_c *symbol) {
TRACE("array_type_declaration_c");
- /* add this type declaration to the type symbol table... */
- type_symtable.insert(symbol->identifier, symbol->array_spec_init);
s4o_incl.print("typedef ");
current_basetypedeclaration = arraybasetypeincl_bd;
@@ -448,8 +442,6 @@
/* simple_type_name ':' simple_spec_init */
void *visit(simple_type_declaration_c *symbol) {
TRACE("simple_type_declaration_c");
- /* add this type declaration to the type symbol table... */
- type_symtable.insert(symbol->simple_type_name, symbol->simple_spec_init);
s4o_incl.print("typedef ");
symbol->simple_spec_init->accept(*this);
@@ -522,8 +514,6 @@
//SYM_REF2(structure_type_declaration_c, structure_type_name, structure_specification)
void *visit(structure_type_declaration_c *symbol) {
TRACE("structure_type_declaration_c");
- /* add this type declaration to the type symbol table... */
- type_symtable.insert(symbol->structure_type_name, symbol->structure_specification);
s4o_incl.print("typedef ");
symbol->structure_specification->accept(*this);