History

Fixed bug which prevent tcc preprocessor to ignore line number directives

Alexandre Becoulet committed 16 years ago

Commit b9aeac01 parent 253bad71 file · +1 −1Browse files

Unified · Split

tccpp.c+1−1
@@ -1620,7 +1620,7 @@ include_done: · 1619 unmodified lines
1620 pragma_parse(s1);1620 pragma_parse(s1);
1621 break;1621 break;
1622 default:1622 default:
1623 if (tok == TOK_LINEFEED || tok == '!' || tok == TOK_CINT) {1623 if (tok == TOK_LINEFEED || tok == '!' || tok == TOK_PPNUM) {
1624 /* '!' is ignored to allow C scripts. numbers are ignored1624 /* '!' is ignored to allow C scripts. numbers are ignored
1625 to emulate cpp behaviour */1625 to emulate cpp behaviour */
1626 } else {1626 } else {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t