Bug on resource global variables generation corrected
authorlbessard
Wed, 16 May 2007 18:15:24 +0200
changeset 29 3ba8ef691003
parent 28 5b170c9ce134
child 30 83201ec94ef4
Bug on resource global variables generation corrected
stage4/generate_cc/generate_cc.cc
--- a/stage4/generate_cc/generate_cc.cc	Wed May 16 17:53:37 2007 +0200
+++ b/stage4/generate_cc/generate_cc.cc	Wed May 16 18:15:24 2007 +0200
@@ -1165,9 +1165,10 @@
         vardecl = new generate_cc_vardecl_c(&s4o,
                       generate_cc_vardecl_c::local_vf,
                       generate_cc_vardecl_c::global_vt);
-        vardecl->print(symbol);
+        vardecl->print(current_global_vars);
         delete vardecl;
       }
+      s4o.print("\n");
       
       /* (A.4) Resource programs declaration... */
       wanted_declaretype = declare_dt;
@@ -1188,9 +1189,10 @@
         vardecl = new generate_cc_vardecl_c(&s4o,
                       generate_cc_vardecl_c::constructorinit_vf,
                       generate_cc_vardecl_c::global_vt);
-        vardecl->print(symbol);
+        vardecl->print(current_global_vars);
         delete vardecl;
       }
+      s4o.print("\n");
       
       /* (B.3) Resource programs initialisations... */
       wanted_declaretype = init_dt;