curl-library
Re: [PATCH] ftp code turned state machine, step 1?
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 5 Jan 2005 15:09:31 -0800
Date: Wed, 5 Jan 2005 15:09:31 -0800
On Wed, Jan 05, 2005 at 10:43:57PM +0100, Daniel Stenberg wrote:
> I don't think the curl code will have to become that bad, even if it will
> turn harder to read (than it is now) by this move. I'm also kind of hoping
> that someone in the audience with stand up and complain if I don't do my
> job right, and even that we will smoothen out potential initial problems by
> collaborating.
Have you considered rewriting this as a coroutine? A discussion of one way to
do this in C at http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
You might be able to use this technique to keep the main ftp logic much
more readable.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2005-01-06