scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 7859d396344b2229d933f8ff7efa7fb493f67252
parent e92b066bb72448c50ece30f7e02022b6524c8501
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 18 Jul 2015 13:59:26 +0200

error() already contains linenr + filename so remove it

Diffstat:
Mcc1/lex.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/cc1/lex.c b/cc1/lex.c @@ -166,10 +166,8 @@ repeat: } } - if (bp == lim) { - error("line %u too big in file '%s'", - input->nline, input->fname); - } + if (bp == lim) + error("line too long"); *bp = '\0'; return 1; }