ref: 78edebdf4d11d94de525b8e566a322b4ff3af0f5
parent: 7ae0c4ae76b0c372e6c8bb622bd8527b74159a39
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon May 25 09:36:36 EDT 2015
Fix number of line in errors in cc1 Processing lines is done after reading them, so the number is already incremented when it is used, leading to having the number of line incremented in 1 in all the error messages.
--- a/cc1/lex.c
+++ b/cc1/lex.c
@@ -37,7 +37,7 @@
{
Input *ip;
FILE *fp;
- unsigned short nline = 1;
+ unsigned short nline = 0;
/* TODO: Add a field in input to see easier which is the case
where we are */