cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: polarssl: add ALPN support

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sat, 24 May 2014 09:04:19 +0200

On Fri, May 23, 2014 at 05:15:55PM -0700, Fabian Frank wrote:
> On May 22, 2014, at 10:15 AM, Fabian Frank <fabian.frank.de_at_gmail.com> 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
Received on 2014-05-24