_ _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_HOSTED_ _ == 1 mean hosted _ _STDC_HOSTED_ _ == 0 mean NOT hosted, no main, stdout, stdin ... Not defined: don't know, "probably" hosted yet not sure. If we decide to define this macro it should be set to 1 C. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Michael Matz Sent: dimanche 17 février 2013 20:12 To: [email protected] 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__ : 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 >> library not under tcc control) > > So what do you think of the attached patch? Makes sense IMO. Ciao, Michael. _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
