Re: [Tinycc-devel] What C version tcc is supposed to implement?

2013-02-27 Thread Thomas Preud'homme
Le dimanche 17 février 2013 21:00:56, Christian Jullien a écrit : > _ _STDC_HOSTED_ _ The integer constant 1 if the implementation is a hosted > implementation or the integer constant 0 if it is not. > > What NULL means? Is __STD__HOSTED__ is defined or not? With which value? > > To me: > _ _STDC

Re: [Tinycc-devel] What C version tcc is supposed to implement?

2013-02-17 Thread Thomas Preud'homme
Le dimanche 17 février 2013 21:00:56, Christian Jullien a écrit : > _ _STDC_HOSTED_ _ The integer constant 1 if the implementation is a hosted > implementation or the integer constant 0 if it is not. > > What NULL means? Is __STD__HOSTED__ is defined or not? With which value? > > To me: > _ _STDC

Re: [Tinycc-devel] What C version tcc is supposed to implement?

2013-02-17 Thread Christian Jullien
half Of Michael Matz Sent: dimanche 17 février 2013 20:12 To: tinycc-devel@nongnu.org Subject: Re: [Tinycc-devel] What C version tcc is supposed to implement? Am 17.02.2013 19:46, schrieb Thomas Preud'homme: > Le samedi 16 février 2013 21:17:32, Michael Matz a écrit : >> __STDC_HOSTED_

Re: [Tinycc-devel] What C version tcc is supposed to implement?

2013-02-17 Thread Michael Matz
Am 17.02.2013 19:46, schrieb Thomas Preud'homme: Le samedi 16 février 2013 21:17:32, Michael Matz a écrit : __STDC_HOSTED__ : not set (incorrectly, it should probably be set to 1 given that tcc assumes a normal main() and that the rest of the provided f

Re: [Tinycc-devel] What C version tcc is supposed to implement?

2013-02-17 Thread Thomas Preud'homme
Le samedi 16 février 2013 21:17:32, Michael Matz a écrit : > __STDC_HOSTED__ : not set (incorrectly, it should probably be set to 1 > given that tcc assumes a normal main() and that the > rest of the provided facilities is provided by the C >

Re: [Tinycc-devel] What C version tcc is supposed to implement?

2013-02-16 Thread Christian Jullien
ounces+eligis=orange...@nongnu.org [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of Michael Matz Sent: samedi 16 février 2013 21:18 To: tinycc-devel@nongnu.org Subject: Re: [Tinycc-devel] What C version tcc is supposed to implement? Am 16.02.2013 20:16, schrieb Christian Jullien

Re: [Tinycc-devel] What C version tcc is supposed to implement?

2013-02-16 Thread Michael Matz
Am 16.02.2013 20:16, schrieb Christian Jullien: Thank you Michael, I'm really sorry, my intention was not that someone tried to debug this silly program. The purpose of this small program was to illustrate that I don't know what C version tcc is supposed to implement, with which feature. I admit

Re: [Tinycc-devel] What C version tcc is supposed to implement?

2013-02-16 Thread Christian Jullien
chael Matz Sent: samedi 16 février 2013 19:58 To: tinycc-devel@nongnu.org Subject: Re: [Tinycc-devel] What C version tcc is supposed to implement? Hello Christian, Am 16.02.2013 12:04, schrieb Christian Jullien: > tcc_define_symbol(s, "__STDC_VERSION__", "199901L"); &

Re: [Tinycc-devel] What C version tcc is supposed to implement?

2013-02-16 Thread Michael Matz
Hello Christian, Am 16.02.2013 12:04, schrieb Christian Jullien: tcc_define_symbol(s, "__STDC_VERSION__", "199901L"); This define pretends it is ISO/IEC 9899:1999 (E) Strictly speaking that's optimistic, because it also depends on the C library on which tcc has no influence (some embedd

[Tinycc-devel] What C version tcc is supposed to implement?

2013-02-16 Thread Christian Jullien
tcc_define_symbol(s, "__STDC_VERSION__", "199901L"); This define pretends it is ISO/IEC 9899:1999 (E) Because __STDC_VERSION__ is set to 199901L This code should be legal: #include #include int main() { #if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) wchar_t* s = L"