cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl and apt-get update

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 6 Jul 2007 11:51:38 -0700

On Fri, Jul 06, 2007 at 11:29:08AM -0700, Alan Ezust wrote:
> I am looking at the location where that error is being reported, and
> it is in the middle of a 1200 line function, with so many nested loops
> and if/thens that both emacs and jedit are unable to parse it properly
> and match the curly brackets.
> I haven't yet figured out why it compiles but two editors can't figure
> out where the close curly bracket of the do { on line 340 of
> transfer.c is (I can see it is on 1517, but my editor can't).

The problem is at line 1441 (CVS version) where adjacent #ifdef/#else blocks
contain duplicate { characters.

> Functions shouldn't be this huge. So many of these loops and blocks of
> code would read better as separate functions.

Agreed. You're looking at the result of 10 years and 357 incremental
changes.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-07-06