tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] bug report / preprocessor / string literals


From: KFA
Subject: [Tinycc-devel] bug report / preprocessor / string literals
Date: Fri, 27 Jan 2006 12:16:20 +0100 (MET)

Hi @,

There seems to be a bug in the preprocessor when using # to create string
literals.

The following source ...

#define printxml(xml) printf(#xml)
#define nl printf("\n")

int main() {
        printxml(
<html>
</html>
);
        nl;
        return 0;
}

... compiled with tcc yields the following output:

< html > < / html >

The same source compiled with cc yields the following (correct) output:

<html> </html>

This may be easy to fix, but I'd need a hint where to look in the source,
not time to go searching...

Thanks,
Klaus

-- 
Telefonieren Sie schon oder sparen Sie noch?
NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie




reply via email to

[Prev in Thread] Current Thread [Next in Thread]