stage4/generate_c/generate_c.cc
changeset 189 7ca02034c4f6
parent 184 16495e10f69a
child 202 da1a8186f86f
--- a/stage4/generate_c/generate_c.cc	Tue Jun 09 10:14:17 2009 +0200
+++ b/stage4/generate_c/generate_c.cc	Tue Jun 09 10:57:01 2009 +0200
@@ -504,12 +504,7 @@
 				        generate_c_vardecl_c::inoutput_vt |
                 generate_c_vardecl_c::eneno_vt);
   vardecl->print(symbol->var_declarations_list);
-  if (!vardecl->is_en_declared()) {
-    s4o.print(",\n" + s4o.indent_spaces + "BOOL EN");
-  }
-  if (!vardecl->is_eno_declared()) {
-    s4o.print(",\n" + s4o.indent_spaces + "BOOL *ENO");
-  }
+  vardecl->print_eneno();
   delete vardecl;
   
   s4o.indent_left();
@@ -621,12 +616,7 @@
   				      generate_c_vardecl_c::inoutput_vt |
                 generate_c_vardecl_c::eneno_vt);
   vardecl->print(symbol->var_declarations);
-  if (!vardecl->is_en_declared()) {
-    s4o_incl.print(s4o_incl.indent_spaces + "BOOL EN;\n");
-  }
-  if (!vardecl->is_eno_declared()) {
-    s4o_incl.print(s4o_incl.indent_spaces + "BOOL ENO;\n");
-  }
+  vardecl->print_eneno();
   delete vardecl;
   s4o_incl.print("\n");
   /* (A.3) Private internal variables */