--- 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) {