Fix SFC stage4 error.
authorManuele Conti <conti.ma@alice.it>
Wed, 16 May 2012 00:15:32 +0200
changeset 561 30a327be60d4
parent 560 13b5b7faa3d7
child 562 044238931066
Fix SFC stage4 error.
stage4/generate_c/generate_c_sfc.cc
--- a/stage4/generate_c/generate_c_sfc.cc	Tue May 15 23:03:25 2012 +0100
+++ b/stage4/generate_c/generate_c_sfc.cc	Wed May 16 00:15:32 2012 +0200
@@ -564,13 +564,17 @@
               s4o.print(";\n");
             }
             s4o.indent_left();
-            s4o.print(s4o.indent_spaces + "}");
+            s4o.print(s4o.indent_spaces + "}\n");
             if (strcmp(qualifier, "DS") == 0) {
+              s4o.print(s4o.indent_spaces + "if (");
               s4o.print("desactivated");
+              s4o.print(") {\n");
               s4o.indent_right();
               s4o.print(s4o.indent_spaces);
               print_action_argument(current_action, "set_remaining_time");
               s4o.print(" = __time_to_timespec(1, 0, 0, 0, 0, 0);\n");
+              s4o.indent_left();
+              s4o.print(s4o.indent_spaces + "}\n");
             }
           }
           break;