X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Flexer%2Fq2c.c;h=1b12c269a140c80e91738c1de2f0e348a2a2dd11;hb=2766c2d47448010527d52dd304213d0bb563dd00;hp=9e8af0a246998d55babd943e2a6de952b8de52be;hpb=a19b858e0ac3c69e4a28c0ca6d8674427268a863;p=pspp-builds.git diff --git a/src/language/lexer/q2c.c b/src/language/lexer/q2c.c index 9e8af0a2..1b12c269 100644 --- a/src/language/lexer/q2c.c +++ b/src/language/lexer/q2c.c @@ -26,25 +26,12 @@ #include #include #include -#if HAVE_UNISTD_H #include -#endif #include #include - - -/* Brokenness. */ -#ifndef EXIT_SUCCESS -#define EXIT_SUCCESS 0 -#endif - -#ifndef EXIT_FAILURE -#define EXIT_FAILURE 1 -#endif +#include "exit.h" -#include - /* Max length of an input line. */ #define MAX_LINE_LEN 1024 @@ -338,7 +325,7 @@ find_symbol (int x) return iter; } -#if DEBUGGING +#if DUMP_TOKENS /* Writes a printable representation of the current token to stdout. */ static void @@ -356,7 +343,7 @@ dump_token (void) printf ("PUNCT\t%c\n", token); } } -#endif /* DEBUGGING */ +#endif /* DUMP_TOKENS */ /* Reads a token from the input file. */ static int @@ -406,7 +393,7 @@ lex_get (void) else token = *cp++; -#if DEBUGGING +#if DUMP_TOKENS dump_token (); #endif