stage4/generate_c/generate_c_sfcdecl.cc
changeset 401 7f052bd3508a
parent 392 9b88b8b6bccd
child 594 c8092e909886
equal deleted inserted replaced
399:55b074ea7255 401:7f052bd3508a
   128           s4o.print(";\n");
   128           s4o.print(";\n");
   129           step_number = 0;
   129           step_number = 0;
   130           wanted_sfcdeclaration = sfcinit_sd;
   130           wanted_sfcdeclaration = sfcinit_sd;
   131           
   131           
   132           /* steps table initialisation */
   132           /* steps table initialisation */
   133           s4o.print(s4o.indent_spaces + "static const STEP temp_step = {{0, 0}, 0, 0};\n");
   133           s4o.print(s4o.indent_spaces + "static const STEP temp_step = {{0, 0}, 0, {0, 0}};\n");
   134           s4o.print(s4o.indent_spaces + "for(i = 0; i < ");
   134           s4o.print(s4o.indent_spaces + "for(i = 0; i < ");
   135           print_variable_prefix();
   135           print_variable_prefix();
   136           s4o.print("__nb_steps; i++) {\n");
   136           s4o.print("__nb_steps; i++) {\n");
   137           s4o.indent_right();
   137           s4o.indent_right();
   138           s4o.print(s4o.indent_spaces);
   138           s4o.print(s4o.indent_spaces);
   154           s4o.print(";\n");
   154           s4o.print(";\n");
   155           action_number = 0;
   155           action_number = 0;
   156           wanted_sfcdeclaration = sfcinit_sd;
   156           wanted_sfcdeclaration = sfcinit_sd;
   157           
   157           
   158           /* actions table initialisation */
   158           /* actions table initialisation */
   159           s4o.print(s4o.indent_spaces + "static const ACTION temp_action = {0, 0, 0, 0, 0, 0};\n");
   159           s4o.print(s4o.indent_spaces + "static const ACTION temp_action = {0, 0, 0, 0, {0, 0}, {0, 0}};\n");
   160           s4o.print(s4o.indent_spaces + "for(i = 0; i < ");
   160           s4o.print(s4o.indent_spaces + "for(i = 0; i < ");
   161           print_variable_prefix();
   161           print_variable_prefix();
   162           s4o.print("__nb_actions; i++) {\n");
   162           s4o.print("__nb_actions; i++) {\n");
   163           s4o.indent_right();
   163           s4o.indent_right();
   164           s4o.print(s4o.indent_spaces);
   164           s4o.print(s4o.indent_spaces);