Re: [PHP-DEV] Re: C89 vs. C99

2016-11-12 Thread Dennis Clarke
What about other compilers such as Solaris Studio and XL C? Oracle Studio compiler tools are fully compliant with C99 and has been for a very very long time. Thanks for the info! I would also note that php7.x does not compile out of the box, yet. However I am looking into why. I remembe

Re: [PHP-DEV] Re: C89 vs. C99

2016-11-12 Thread Christoph M. Becker
On 12.11.2016 at 20:28, Dennis Clarke wrote: > On 11/12/2016 06:27 AM, Christoph M. Becker wrote: > >> On 12.06.2016 at 11:08, Fleshgrinder wrote: >> >>> I am curious why we are not finally doing the switch to C99 with VC14 >>> finally supporting most of C99. I mean, I know that GCC and VC14 do no

Re: [PHP-DEV] Re: C89 vs. C99

2016-11-12 Thread Dennis Clarke
On 11/12/2016 06:27 AM, Christoph M. Becker wrote: On 12.06.2016 at 11:08, Fleshgrinder wrote: I am curious why we are not finally doing the switch to C99 with VC14 finally supporting most of C99. I mean, I know that GCC and VC14 do no fully support C99 but the most common features are implemen

Re: [PHP-DEV] Re: C89 vs. C99

2016-11-12 Thread Christoph M. Becker
On 12.11.2016 at 15:27, Levi Morrison wrote: > On Sat, Nov 12, 2016 at 4:27 AM, Christoph M. Becker > wrote: > >> On 12.06.2016 at 11:08, Fleshgrinder wrote: >> >>> I am curious why we are not finally doing the switch to C99 with VC14 >>> finally supporting most of C99. I mean, I know that GCC a

Re: [PHP-DEV] Re: C89 vs. C99

2016-11-12 Thread Levi Morrison
On Sat, Nov 12, 2016 at 4:27 AM, Christoph M. Becker wrote: > On 12.06.2016 at 11:08, Fleshgrinder wrote: > >> I am curious why we are not finally doing the switch to C99 with VC14 >> finally supporting most of C99. I mean, I know that GCC and VC14 do no >> fully support C99 but the most common fe

Re: [PHP-DEV] Re: C89 vs. C99

2016-11-12 Thread Christoph M. Becker
On 12.11.2016 at 14:59, Nikita Popov wrote: > There are two ways in which you can have code mixed with declarations. The > first one is within a single "basic block", like this: > > int a = ...; > b = ...; > int c = ...; > a = ...; > float d = ...; > // ... > > I can tota

Re: [PHP-DEV] Re: C89 vs. C99

2016-11-12 Thread Joe Watkins
Morning Nikita, It is actually the first kind I'm rebelling against. I think the second kind might lead people to think we would accept the first kind, and I think an extreme version of the second kind could also harm readability. How about we adopt the rule of thumb that "declarations should be

Re: [PHP-DEV] Re: C89 vs. C99

2016-11-12 Thread Nikita Popov
On Sat, Nov 12, 2016 at 2:21 PM, Joe Watkins wrote: > Morning Nikita, > > All good points, that it's hard to refute. > > However, right now, I know where all variables that are going to be used > are declared, no matter the size of the function or it's complexity. If not > at the very top, eyes g

Re: [PHP-DEV] Re: C89 vs. C99

2016-11-12 Thread Joe Watkins
Morning Nikita, All good points, that it's hard to refute. However, right now, I know where all variables that are going to be used are declared, no matter the size of the function or it's complexity. If not at the very top, eyes get good at scanning for blocks. What I don't want is to have to s

Re: [PHP-DEV] Re: C89 vs. C99

2016-11-12 Thread Nikita Popov
On Sat, Nov 12, 2016 at 1:40 PM, Joe Watkins wrote: > Morning, > > > okay, I'm only really interested in declarations mixed with code > > Not sure if serious ... but I will harass you to change code that is mixi > [1]. > > I think actually disallowing mixing lends some readability and uniformity

Re: [PHP-DEV] Re: C89 vs. C99

2016-11-12 Thread Joe Watkins
Morning, > okay, I'm only really interested in declarations mixed with code Not sure if serious ... but I will harass you to change code that is mixi [1]. I think actually disallowing mixing lends some readability and uniformity to the code in php-src, that I would hate to see disappear ... Che

[PHP-DEV] Re: C89 vs. C99

2016-11-12 Thread Christoph M. Becker
On 12.06.2016 at 11:08, Fleshgrinder wrote: > I am curious why we are not finally doing the switch to C99 with VC14 > finally supporting most of C99. I mean, I know that GCC and VC14 do no > fully support C99 but the most common features are implemented: > > - https://en.wikipedia.org/wiki/C99#Im