Fix missing '(' when declaring new simple derived data type.
authorMario de Sousa <msousa@fe.up.pt>
Mon, 30 May 2011 19:24:09 +0100
changeset 307 6ea381792f59
parent 306 82c1f453cd07
child 308 833cb2eba36f
Fix missing '(' when declaring new simple derived data type.
stage4/generate_c/generate_c_typedecl.cc
--- a/stage4/generate_c/generate_c_typedecl.cc	Mon May 30 19:16:22 2011 +0100
+++ b/stage4/generate_c/generate_c_typedecl.cc	Mon May 30 19:24:09 2011 +0100
@@ -421,7 +421,7 @@
 void *visit(simple_type_declaration_c *symbol) {
   TRACE("simple_type_declaration_c");
 
-  s4o_incl.print("__DECLARE_DERIVED_TYPE");
+  s4o_incl.print("__DECLARE_DERIVED_TYPE(");
   symbol->simple_spec_init->accept(*this);
   s4o_incl.print(",");
   symbol->simple_type_name->accept(*basedecl);