Hi,
The following patch makes tcc ignore the the #ident preprocessor
command.
Marc
--
Marc Andre Tanner >< http://www.brain-dump.org/ >< GPG key: CF7D56C0
diff -r 41841f0acc48 tcc.c
--- a/tcc.c Wed Oct 03 18:15:48 2007 -0500
+++ b/tcc.c Tue Nov 13 12:30:31 2007 +0100
@@ -2194,6 +2194,9 @@ static void preprocess(int is_bof)
break;
case TOK_PRAGMA:
pragma_parse(s1);
+ break;
+ case TOK_PPIDENT:
+ next();
break;
default:
if (tok == TOK_LINEFEED || tok == '!' || tok == TOK_CINT) {
diff -r 41841f0acc48 tcctok.h
--- a/tcctok.h Wed Oct 03 18:15:48 2007 -0500
+++ b/tcctok.h Tue Nov 13 12:30:31 2007 +0100
@@ -75,6 +75,7 @@
DEF(TOK_WARNING, "warning")
DEF(TOK_LINE, "line")
DEF(TOK_PRAGMA, "pragma")
+ DEF(TOK_PPIDENT, "ident")
DEF(TOK___LINE__, "__LINE__")
DEF(TOK___FILE__, "__FILE__")
DEF(TOK___DATE__, "__DATE__")
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel