From: Ben Pfaff Date: Sat, 15 Apr 2006 21:31:29 +0000 (+0000) Subject: * q2c.c: Change DEBUGGING macro to DUMP_TOKENS for clarity and to X-Git-Tag: v0.6.0~993 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=799f949452dd3b5cd058fa7fc2323c1bcf287e07;p=pspp-builds.git * q2c.c: Change DEBUGGING macro to DUMP_TOKENS for clarity and to avoid dumping all the tokens to stdout when --enable-debug is passed to configure. --- diff --git a/src/language/lexer/ChangeLog b/src/language/lexer/ChangeLog index 65198388..6fc3eae9 100644 --- a/src/language/lexer/ChangeLog +++ b/src/language/lexer/ChangeLog @@ -1,3 +1,9 @@ +Sat Apr 15 14:30:35 2006 Ben Pfaff + + * q2c.c: Change DEBUGGING macro to DUMP_TOKENS for clarity and to + avoid dumping all the tokens to stdout when --enable-debug is + passed to configure. + Fri Mar 10 08:29:25 2006 Ben Pfaff * q2c.c: (dump_free) Free proper member for var list, instead of diff --git a/src/language/lexer/q2c.c b/src/language/lexer/q2c.c index c4bfef6d..72ce7add 100644 --- a/src/language/lexer/q2c.c +++ b/src/language/lexer/q2c.c @@ -336,7 +336,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 +354,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 +404,7 @@ lex_get (void) else token = *cp++; -#if DEBUGGING +#if DUMP_TOKENS dump_token (); #endif