Make the expression code a little nicer and fix bugs found
[pspp-builds.git] / src / do-if.c
index 0dd6466a52895ea9c2fe475c4ad2dcab20d34a78..6f9aa507ed5ecada4516e8a13622df036f5fa103 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <config.h>
 #include "do-ifP.h"
-#include <assert.h>
+#include "error.h"
 #include <stdlib.h>
 #include "alloc.h"
 #include "command.h"
@@ -248,7 +248,7 @@ parse_do_if (void)
   struct do_if_trns *t;
   struct expression *e;
 
-  e = expr_parse (PXP_BOOLEAN);
+  e = expr_parse (EXPR_BOOLEAN);
   if (!e)
     return NULL;
   if (token != '.')