set and reset action fixed
authorgreg
Thu, 04 Dec 2008 13:09:18 +0100
changeset 155 e094c92cf197
parent 154 9114afe1f64b
child 156 6b16b7f8b527
set and reset action fixed
stage4/generate_c/generate_c_sfc.cc
--- a/stage4/generate_c/generate_c_sfc.cc	Mon Dec 01 14:13:47 2008 +0100
+++ b/stage4/generate_c/generate_c_sfc.cc	Thu Dec 04 13:09:18 2008 +0100
@@ -495,12 +495,12 @@
           {
             char *qualifier = (char *)symbol->action_qualifier->accept(*this);
             s4o.print(s4o.indent_spaces + "if (");
-            if (strcmp(qualifier, "N") == 0) {
+            if (strcmp(qualifier, "N") == 0 || strcmp(qualifier, "S") == 0 ||
+                strcmp(qualifier, "R") == 0) {
               s4o.print("active");
             }
             if (strcmp(qualifier, "P") == 0 || strcmp(qualifier, "SD") == 0 || 
-                strcmp(qualifier, "DS") == 0 || strcmp(qualifier, "SL") == 0 || 
-                strcmp(qualifier, "S") == 0 || strcmp(qualifier, "R") == 0) {
+                strcmp(qualifier, "DS") == 0 || strcmp(qualifier, "SL") == 0) {
               s4o.print("activated");
             }
             if (strcmp(qualifier, "D") == 0 || strcmp(qualifier, "L") == 0) {