[hackers] [scc] error() already contains linenr + filename so remove it || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 18 Jul 2015 14:01:01 +0200 (CEST)

commit 7859d396344b2229d933f8ff7efa7fb493f67252
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Sat Jul 18 13:59:26 2015 +0200
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Sat Jul 18 13:59:26 2015 +0200

    error() already contains linenr + filename so remove it

diff --git a/cc1/lex.c b/cc1/lex.c
index 14f1a74..85f27a4 100644
--- a/cc1/lex.c
+++ b/cc1/lex.c
_AT_@ -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;
 }
Received on Sat Jul 18 2015 - 14:01:01 CEST

This archive was generated by hypermail 2.3.0 : Sat Jul 18 2015 - 14:12:10 CEST