1963382: Listing File - C file comment is incorrect
thanks to Serge Malo
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5219
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2008-08-24 Borut Razem <borut.razem AT siol.net>
+
+ * src/SDCC.y: applied patch
+ 1963382: Listing File - C file comment is incorrect
+ thanks to Serge Malo
+
2008-08-23 Borut Razem <borut.razem AT siol.net>
* src/pic16/gen.c: applied patch
2008-08-23 Borut Razem <borut.razem AT siol.net>
* src/pic16/gen.c: applied patch
{
noLineno++ ;
$$ = createIf ($3, $6, $7 );
{
noLineno++ ;
$$ = createIf ($3, $6, $7 );
+ $$->lineno = $3->lineno;
+ $$->filename = $3->filename;
noLineno--;
}
| SWITCH '(' expr ')' {
noLineno--;
}
| SWITCH '(' expr ')' {
noLineno++ ;
$$ = createWhile ( $1, STACK_POP(continueStack),
STACK_POP(breakStack), $3, $6 );
noLineno++ ;
$$ = createWhile ( $1, STACK_POP(continueStack),
STACK_POP(breakStack), $3, $6 );
- $$->lineno = $1->lineDef ;
+ $$->lineno = $1->lineDef;
+ $$->filename = $1->fileDef;
noLineno-- ;
}
| do statement WHILE '(' expr ')' ';'
noLineno-- ;
}
| do statement WHILE '(' expr ')' ';'
noLineno++ ;
$$ = createDo ( $1 , STACK_POP(continueStack),
STACK_POP(breakStack), $5, $2);
noLineno++ ;
$$ = createDo ( $1 , STACK_POP(continueStack),
STACK_POP(breakStack), $5, $2);
- $$->lineno = $1->lineDef ;
+ $$->lineno = $1->lineDef;
+ $$->filename = $1->fileDef;
noLineno-- ;
}
| for '(' expr_opt ';' expr_opt ';' expr_opt ')' statement
noLineno-- ;
}
| for '(' expr_opt ';' expr_opt ';' expr_opt ')' statement