+2003-10-31 Borut Razem <borut.razem@siol.net>
+
+ * support\cpp2\cpplex.c: fixed for SDCPP:
+ comments(when executed with -C option) and _asm blocks
+ were included even if they where in skipped #if block.
+ Applied solution from GCC cpp 3.3.2
+
2003-10-31 Borut Razem <borut.razem@siol.net>
* src/SDCC.lex: sdcc now understands both formats:
skip_asm_block (pfile);
/* Save the _asm block as a token in its own right. */
save_asm (pfile, result, comment_start);
- /* Don't do MI optimisation. */
- return;
}
/* Convert named operators to their proper types. */
else if (result->val.node->flags & NODE_OPERATOR)
/* Save the comment as a token in its own right. */
save_comment (pfile, result, comment_start);
- /* Don't do MI optimisation. */
- return;
+ /* fixed for SDCPP:
+ when executed with -C option, comments
+ were included even if they where in skipped #if block.
+ Applied solution from GCC cpp 3.3.2 */
+ break;
case '<':
if (pfile->state.angled_headers)