From: johanknol Date: Thu, 16 Jan 2003 08:37:21 +0000 (+0000) Subject: reset linenumber when sourcefile changed X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=bb24e1163a01518ea8814201919eb02838baae4b;p=fw%2Fsdcc reset linenumber when sourcefile changed git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2156 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/asm.c b/src/asm.c index 9722ced0..d31b0ea1 100644 --- a/src/asm.c +++ b/src/asm.c @@ -219,6 +219,7 @@ char *printCLine (char *srcFile, int lineno) { if (strcmp (lastSrcFile, srcFile) != 0) { fclose (inFile); inFile = NULL; + inLineNo = 0; } } if (!inFile) {