Merge with Edouard's modifications
authorlaurent
Tue, 07 Feb 2012 20:20:19 +0100
changeset 402 ffa2afab2806
parent 401 7f052bd3508a (diff)
parent 400 093b72cd2ac3 (current diff)
child 403 b6568471de90
Merge with Edouard's modifications
--- a/stage4/generate_c/generate_c_sfcdecl.cc	Fri Feb 03 18:01:13 2012 +0100
+++ b/stage4/generate_c/generate_c_sfcdecl.cc	Tue Feb 07 20:20:19 2012 +0100
@@ -130,7 +130,7 @@
           wanted_sfcdeclaration = sfcinit_sd;
           
           /* steps table initialisation */
-          s4o.print(s4o.indent_spaces + "static const STEP temp_step = {{0, 0}, 0, 0};\n");
+          s4o.print(s4o.indent_spaces + "static const STEP temp_step = {{0, 0}, 0, {0, 0}};\n");
           s4o.print(s4o.indent_spaces + "for(i = 0; i < ");
           print_variable_prefix();
           s4o.print("__nb_steps; i++) {\n");
@@ -156,7 +156,7 @@
           wanted_sfcdeclaration = sfcinit_sd;
           
           /* actions table initialisation */
-          s4o.print(s4o.indent_spaces + "static const ACTION temp_action = {0, 0, 0, 0, 0, 0};\n");
+          s4o.print(s4o.indent_spaces + "static const ACTION temp_action = {0, 0, 0, 0, {0, 0}, {0, 0}};\n");
           s4o.print(s4o.indent_spaces + "for(i = 0; i < ");
           print_variable_prefix();
           s4o.print("__nb_actions; i++) {\n");