On Fri, May 23, 2014 at 05:15:55PM -0700, Fabian Frank wrote:
> On May 22, 2014, at 10:15 AM, Fabian Frank <[email protected]> wrote:
> > Previously people pointed out that variable definitions have to be at the 
> > top of functions in curl code, which is why I have done it this way. Before 
> > that I had them inside the ifdef blocks, as you suggested. I am ok with 
> > either one, as long as it’s clear which one we want. :-)
> 
> Can somebody give a definite answer on which style is preferred? Daniel? I 
> will then revise the patch. :-)

What you're probably thinking of is the prohibition on C99-style variable
declarations that can appear on any statement. Since C89 only allows
declarations at the start of any block they have to appear there, but that
doesn't mean they have to be found only in a function-level block.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to