aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/cc/pp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cmd/cc/pp.c')
-rw-r--r--sys/cmd/cc/pp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/cmd/cc/pp.c b/sys/cmd/cc/pp.c
index cd8e28d..57cd5e2 100644
--- a/sys/cmd/cc/pp.c
+++ b/sys/cmd/cc/pp.c
@@ -40,7 +40,7 @@ identdots(Lexer *lx, int *dots)
byte *s;
s = ident(lx);
- if (s != nil)
+ if (*s != '\0')
return s;
c = getnsbyte(lx);
@@ -65,7 +65,7 @@ defmacro(Lexer *lx, string name, string macro)
{
Sym *mac;
- printf("DEFINING MACRO %s ON LINE %d, file %s\n", name, lx->pos.line, osĀ·basename(lx->pos.path));
+ // printf("DEFINING MACRO %s ON LINE %d, file %s\n", name, lx->pos.line, osĀ·basename(lx->pos.path));
mac = define(&lx->sym, name, Smacro);
mac->macro = macro;
@@ -429,7 +429,6 @@ ppund(Lexer *lx)
intern(&s);
lx->b = lx->buf;
- printf("FORGETTING %s\n", s);
err = forget(&lx->sym, s);
if (err)
warnat(lx->pos, "attempting to undefine unrecognized symbol '%s'", s);