Commit 88a01743 authored by dcw's avatar dcw
Browse files

whoops; DEBUG -> DEBUGGING

parent aa4d81c2
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "lexer.h" #include "lexer.h"
#ifdef DEBUG #ifdef DEBUGGING
static char *tokenname[] = { static char *tokenname[] = {
"tERROR", "tEOF", "tSEMI", "tID", "tEQ", "tOR", "tOPENBR", "tERROR", "tEOF", "tSEMI", "tID", "tEQ", "tOR", "tOPENBR",
"tCOMMA", "tCLOSEBR", "tSTR", "tNUM" "tCOMMA", "tCLOSEBR", "tSTR", "tNUM"
...@@ -68,7 +68,7 @@ void ungettok() ...@@ -68,7 +68,7 @@ void ungettok()
{ {
ASSERT( ! havepushedtok, ("ungettok: can't push 2 tokens\n") ); ASSERT( ! havepushedtok, ("ungettok: can't push 2 tokens\n") );
havepushedtok = TRUE; havepushedtok = TRUE;
#ifdef DEBUG #ifdef DEBUGGING
printf( "lexer: ungot token %s\n", tokenname[ curtok ] ); printf( "lexer: ungot token %s\n", tokenname[ curtok ] );
#endif #endif
} }
...@@ -142,7 +142,7 @@ TOKEN nexttok() ...@@ -142,7 +142,7 @@ TOKEN nexttok()
} }
} }
} }
#ifdef DEBUG #ifdef DEBUGGING
printf( "returning token %s\n", tokenname[ curtok ] ); printf( "returning token %s\n", tokenname[ curtok ] );
#endif #endif
return curtok; return curtok;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment