]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blobdiff - zephyr/zwgc/lexer.c
r4275@bucket (orig r265): kcr | 2008-01-21 02:57:32 -0500
[1ts-debian.git] / zephyr / zwgc / lexer.c
index 7e3208609d84d6418b7e7787d77e37af70a984da..e821eb9eb5a224249c51def7354662be1f878be6 100644 (file)
@@ -470,7 +470,8 @@ handle_show(void)
     if (c!='\n')
       unput(c);
 
-    if (yylval.text = eat_til_endshow(start_line_no))
+    yylval.text = eat_til_endshow(start_line_no);
+    if (yylval.text)
       return(SHOW);
     else
       return(ERROR);
@@ -656,7 +657,8 @@ int yylex(void)
             * Handle constant strings:
             */
          case '"':
-           if (yylval.text = eat_string(yylineno))
+           yylval.text = eat_string(yylineno);
+           if (yylval.text)
              return(STRING);
            else
              return(ERROR);