reversed a-option
authorceriel <none@none>
Wed, 10 May 1989 10:19:22 +0000 (10:19 +0000)
committerceriel <none@none>
Wed, 10 May 1989 10:19:22 +0000 (10:19 +0000)
lang/pc/comp/LLlex.c

index 123e2ce..9186e90 100644 (file)
@@ -46,6 +46,7 @@ int tokenseen = 0;    /* Some comment-options must precede any program text */
 CommentOptions()
 {
        register int ch, ci;
+       int     on_on_minus = 0;
        /* Parse options inside comments */
 
        do {
@@ -73,20 +74,19 @@ CommentOptions()
 
                case 'l':       ci = 'L' ;      /* for indexing */
                        /* fall through */
+               case 'L':                       /* FIL & LIN instructions */
+               case 'R':                       /* range checks */
                case 'a':                       /* assertions */
+                       on_on_minus = 1;
+                       /* fall through */
                case 't':                       /* tracing */
                case 'A':                       /* extra array range-checks */
-               case 'L':                       /* FIL & LIN instructions */
-               case 'R':                       /* range checks */
-               {
-                       int on_on_minus = (ci == 'L' || ci == 'R');
-
                        LoadChar(ch);
                        if( ch == '-' ) options[ci] = on_on_minus;
                        else if( ch == '+' ) options[ci] = !on_on_minus;
                        else PushBack();
+                       on_on_minus = 0;
                        break;
-               }
 
                case 'i':
                {