[Enigmail] C99 adoption
c-comments starting with // are standard sice C99, are there still compilers out there complaining about this? They're very common. 14 years after C99, GCC still doesn't fully implement the standard, nor does the Intel C++ compiler or Clang. The only fully-conformant C99 implementation I know of is the Sun compiler. So, yeah. C99 was a nice standard while it lasted, but it got withdrawn by ISO before it could get a decent number of conformant implementations. Now ISO is pushing C11 and as near as I can tell it's got almost zero mindshare. ___ enigmail-users mailing list enigmail-users@enigmail.net https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net
Re: [Enigmail] C99 adoption
On 11/11/2013 05:43 PM, Michael Norrish wrote: As for //, compilers have had this forever given that it's been in C++ forever. yes, of course all modern compilers have this option. however, there's no reason for gratuitous incompatibility against older compilers or for people who for whatever reason don't want to enable --std=c99 behavior. The original patch posted causes no functional change in the code, it's just a simple style cleanup. I did not intend this to be controversial in any way! --dkg signature.asc Description: OpenPGP digital signature ___ enigmail-users mailing list enigmail-users@enigmail.net https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net
Re: [Enigmail] C99 adoption
On 12/11/13 11:16, Robert J. Hansen wrote: On 11/11/2013 5:43 PM, Michael Norrish wrote: http://gcc.gnu.org/c99status.html suggests that gcc has pretty close to all of C99 implemented. (a) the world is larger than just GNU, and (b) I stand by my statements. C99's adoption has been quite slow, both in terms of code written in it and in terms of vendor support. Up until last year, Microsoft was swearing up and down they would never support C99, for instance -- and when the 800-pound gorilla of compiler vendors (the number of Visual Studio installations is probably multiple times larger than GNU and Clang *combined*) outright says they won't support it, that's something worth noting. In other words, MS is now saying that they are going to implement more of C99. In addition, gcc, clang, and Intel all implement C99 to a mostly standard according to the relevant C99 wikipedia page. IBM, Sun, Pelles, and the Portland Group have full support. The same page also claims that MS will implement most of C99 in Visual C++ 2013. Hardly a dead standard, and indeed, one with pretty good vendor support. Michael signature.asc Description: OpenPGP digital signature ___ enigmail-users mailing list enigmail-users@enigmail.net https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net