X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Flexer%2Fq2c.c;h=1b12c269a140c80e91738c1de2f0e348a2a2dd11;hb=30728b09540b323fef43b23dd5f1e4d1e8298c92;hp=c4bfef6dfc1f03d583aa6d70e0dddd6545f430a9;hpb=a269ac443ece11402969c661efae4c13cbbdea0a;p=pspp diff --git a/src/language/lexer/q2c.c b/src/language/lexer/q2c.c index c4bfef6dfc..1b12c269a1 100644 --- a/src/language/lexer/q2c.c +++ b/src/language/lexer/q2c.c @@ -29,20 +29,9 @@ #include #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 @@ -336,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 @@ -354,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 @@ -404,7 +393,7 @@ lex_get (void) else token = *cp++; -#if DEBUGGING +#if DUMP_TOKENS dump_token (); #endif