--- a/stage4/generate_c/generate_c.cc Mon Aug 11 07:55:11 2014 +0100
+++ b/stage4/generate_c/generate_c.cc Mon Aug 11 07:56:00 2014 +0100
@@ -781,7 +781,7 @@
/* This class will generate a new datatype for each implicitly declared array datatype
* (i.e. arrays declared in a variable declaration, or a struct datatype declaration...)
- * It will do the same for implicitly declared RFE_TO datatypes.
+ * It will do the same for implicitly declared REF_TO datatypes.
*
* The class will be called once for each POU declaration, and once for each derived datatype declaration.
*
--- a/stage4/generate_c/generate_c_typedecl.cc Mon Aug 11 07:55:11 2014 +0100
+++ b/stage4/generate_c/generate_c_typedecl.cc Mon Aug 11 07:56:00 2014 +0100
@@ -638,6 +638,9 @@
symbol->anotations_map["generate_c_annotaton__implicit_type_id"]->accept(*basedecl);
return NULL;
}
+ /* This is NOT part of an implicitly declared datatype (i.e. we are being called from an visit(ref_type_decl_c *),
+ * through the visit(ref_spec_init_c*)), so we need to simply print out the name of the datatype we reference to.
+ */
return symbol->type_name->accept(*this);
}
@@ -655,6 +658,9 @@
symbol->anotations_map["generate_c_annotaton__implicit_type_id"]->accept(*basedecl);
return NULL;
}
+ /* This is NOT part of an implicitly declared datatype (i.e. we are being called from an visit(ref_type_decl_c *)),
+ * so we need to simply print out the name of the datatype we reference to.
+ */
return symbol->ref_spec->accept(*this);
}