stage4/generate_c/generate_c_typedecl.cc
changeset 932 061824c45a5b
parent 930 96f3928ebd96
child 945 477393b00f95
equal deleted inserted replaced
931:c0c245197b5a 932:061824c45a5b
   639     return NULL;
   639     return NULL;
   640   }
   640   }
   641   /* This is NOT part of an implicitly declared datatype (i.e. we are being called from an visit(ref_type_decl_c *),
   641   /* This is NOT part of an implicitly declared datatype (i.e. we are being called from an visit(ref_type_decl_c *),
   642    * through the visit(ref_spec_init_c*)), so we need to simply print out the name of the datatype we reference to.
   642    * through the visit(ref_spec_init_c*)), so we need to simply print out the name of the datatype we reference to.
   643    */
   643    */
   644   return symbol->type_name->accept(*this);
   644   symbol->type_name->accept(*this);
       
   645   s4o_incl.print("*");
       
   646   return NULL;
   645 }
   647 }
   646 
   648 
   647 /* For the moment, we do not support initialising reference data types */
   649 /* For the moment, we do not support initialising reference data types */
   648 /* ref_spec_init: ref_spec [ ASSIGN ref_initialization ] */ 
   650 /* ref_spec_init: ref_spec [ ASSIGN ref_initialization ] */ 
   649 /* NOTE: ref_initialization may be NULL!! */
   651 /* NOTE: ref_initialization may be NULL!! */