shithub: scc

Download patch

ref: 7859d396344b2229d933f8ff7efa7fb493f67252
parent: e92b066bb72448c50ece30f7e02022b6524c8501
author: Hiltjo Posthuma <[email protected]>
date: Sat Jul 18 09:59:26 EDT 2015

error() already contains linenr + filename so remove it

--- a/cc1/lex.c
+++ b/cc1/lex.c
@@ -166,10 +166,8 @@
 		}
 	}
 
-	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;
 }