X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdo-if.c;h=73fc057c037ac6ad15f383bb3ed432adf7622957;hb=29c51e39acf3554a56aa2adc9451cc5fd70318ae;hp=339710696326035de2bf4ec760a9b05dedfe246f;hpb=bc963dae9be291ea0a7cccf189d13e00d3797cfd;p=pspp-builds.git diff --git a/src/do-if.c b/src/do-if.c index 33971069..73fc057c 100644 --- a/src/do-if.c +++ b/src/do-if.c @@ -19,7 +19,7 @@ #include #include "do-ifP.h" -#include +#include "error.h" #include #include "alloc.h" #include "command.h" @@ -31,10 +31,6 @@ #include "debug-print.h" -#if DEBUGGING -#include -#endif - /* *INDENT-OFF* */ /* Description of DO IF transformations: @@ -155,8 +151,6 @@ cmd_else (void) { struct do_if_trns *t; - lex_match_id ("ELSE"); - /* Check that we're in a pleasing situation. */ if (!ctl_stack || ctl_stack->type != CST_DO_IF) { @@ -198,8 +192,6 @@ cmd_end_if (void) /* List iterator. */ struct do_if_trns *iter; - lex_match_id ("IF"); - /* Check that we're in a pleasing situation. */ if (!ctl_stack || ctl_stack->type != CST_DO_IF) { @@ -252,9 +244,7 @@ parse_do_if (void) struct do_if_trns *t; struct expression *e; - lex_match_id ("IF"); - - e = expr_parse (PXP_BOOLEAN); + e = expr_parse (EXPR_BOOLEAN); if (!e) return NULL; if (token != '.')