summaryrefslogtreecommitdiff
path: root/zwgc/lexer.c
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@mit.edu>2008-01-21 07:57:32 +0000
committerGravatar Karl Ramm <kcr@mit.edu>2008-01-21 07:57:32 +0000
commitee442551e1531712226a3a3ba26afff466100bb5 (patch)
treed7907b07baecce7abe3940bec566b3bf56596f2f /zwgc/lexer.c
parente6fb0737027ee97d911e8d507b1db37446067d10 (diff)
passes gcc -Wall with no warnings other than des cryppt C_block sadness and getsid problem
Diffstat (limited to 'zwgc/lexer.c')
-rw-r--r--zwgc/lexer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/zwgc/lexer.c b/zwgc/lexer.c
index 7e32086..e821eb9 100644
--- a/zwgc/lexer.c
+++ b/zwgc/lexer.c
@@ -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);