stage4/generate_c/generate_c_vardecl.cc
changeset 931 c0c245197b5a
parent 913 1c74da17cb61
child 945 477393b00f95
equal deleted inserted replaced
930:96f3928ebd96 931:c0c245197b5a
   687 /***********************************************************************/
   687 /***********************************************************************/
   688 /***********************************************************************/
   688 /***********************************************************************/
   689 
   689 
   690 
   690 
   691 
   691 
   692 class generate_c_vardecl_c: protected generate_c_typedecl_c {
   692 class generate_c_vardecl_c: protected generate_c_base_c {
   693 
   693 
   694   /* A Helper class to the main class... */
   694   /* A Helper class to the main class... */
   695   /* print a string, except the first time it is called */
   695   /* print a string, except the first time it is called */
   696   /* used to print the separator "," before each variable
   696   /* used to print the separator "," before each variable
   697    * declaration, except the first...
   697    * declaration, except the first...
  1095 
  1095 
  1096 
  1096 
  1097 
  1097 
  1098   public:
  1098   public:
  1099     generate_c_vardecl_c(stage4out_c *s4o_ptr, varformat_t varformat, unsigned int vartype, symbol_c* res_name = NULL)
  1099     generate_c_vardecl_c(stage4out_c *s4o_ptr, varformat_t varformat, unsigned int vartype, symbol_c* res_name = NULL)
  1100     : generate_c_typedecl_c(s4o_ptr) {
  1100     : generate_c_base_c(s4o_ptr) {
  1101       wanted_varformat = varformat;
  1101       wanted_varformat = varformat;
  1102       wanted_vartype   = vartype;
  1102       wanted_vartype   = vartype;
  1103       current_vartype  = none_vt;
  1103       current_vartype  = none_vt;
  1104       current_varqualifier = none_vq;
  1104       current_varqualifier = none_vq;
  1105       current_var_type_symbol = NULL;
  1105       current_var_type_symbol = NULL;