Re: Thoughts on C version supported for PHP-Next

From: Date: Wed, 13 May 2015 07:56:28 +0000
Subject: Re: Thoughts on C version supported for PHP-Next
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  Groups: php.internals 
Request: Send a blank email to internals+get-86191@lists.php.net to get a copy of this message
Hi Levi, On Sun, May 10, 2015 22:01, Levi Morrison wrote: >> Again, this is a C11 feature. It is supported by clang, gcc and MSVC. >> > > To clarify this a bit: they permit anonymous unions in C89 and C99 > code (meaning you do not need to pass flags like -std=c11 to enable it). > I've added makefiles for gcc and VC and your C99 code to https://github.com/FriendsOfPHP/phpnextctest . Yet as is, but they still could be extended so it would look like a list with "Feature X: pass/fail" lines, but that they do compile an run is already encouraging :) So catching the cases would make sense to continue. Other makefiles can be added for different compilers/platforms. To run just checkout and type nmake /f makefile.vc run_all or make -f makefile.gcc run_all IMO we should ignore C11 for this, otherwise the mix will get unpredictable. Regards Anatol

« previous php.internals (#86191) next »