git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1136
4a8a32a2-be11-0410-ad9d-
d568d2c75423
/* set the current line number to */
/* line number if printFlag is on */
if (!*s) {
/* set the current line number to */
/* line number if printFlag is on */
if (!*s) {
- yylineno = lNum ;
- return 0;
+ lineno = yylineno = lNum ;
+ return 0;
}
/* if we have a filename then check */
}
/* if we have a filename then check */
s++ ;
if ( strncmp(s,fullSrcFileName,strlen(fullSrcFileName)) == 0) {
s++ ;
if ( strncmp(s,fullSrcFileName,strlen(fullSrcFileName)) == 0) {
- yylineno = lNum - 2;
- currFname = fullSrcFileName ;
+ lineno = yylineno = lNum;
+ currFname = fullSrcFileName ;
} else {
char *sb = s;
/* mark the end of the filename */
} else {
char *sb = s;
/* mark the end of the filename */
*s = '\0';
currFname = Safe_calloc(1,strlen(sb)+1);
strcpy(currFname,sb);
*s = '\0';
currFname = Safe_calloc(1,strlen(sb)+1);
strcpy(currFname,sb);
+ lineno = yylineno = lNum;
}
filename = currFname ;
return 0;
}
filename = currFname ;
return 0;