# HG changeset patch
# User mjsousa
# Date 1407740160 -3600
# Node ID 96f3928ebd96982d6308ba12863c151f72147380
# Parent  469de0f54b0e30ac53d1d8dc5a2d4fcf5c13087c
Fix typos in comments

diff -r 469de0f54b0e -r 96f3928ebd96 stage4/generate_c/generate_c.cc
--- 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.
  * 
diff -r 469de0f54b0e -r 96f3928ebd96 stage4/generate_c/generate_c_typedecl.cc
--- 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);
 }