hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.c b/main.c
index 44d9025..634e6d0 100644
--- a/main.c
+++ b/main.c
@@ -11,9 +11,7 @@ static const char* token_name(int token)
case TOK_COMMIT: return "commit";
case TOK_DECLTYPE: return "decltype";
case TOK_DIFFERENCE: return "difference";
- default:
- // single characters and character literals are printed by the caller
- return NULL;
+ default: return NULL;
}
}
@@ -32,6 +30,7 @@ static int dump_tokens(void)
else
(void)printf("%c\n", (char)token);
}
+
return lexer_failed() ? 1 : 0;
}