curl-users
Re: Win32 version of curl
Date: Thu, 3 Nov 2005 08:28:21 +0100 (CET)
On Wed, 2 Nov 2005, Dave M wrote:
> OK, Now it compiles. But it doesnt get very far. Blows up the first time it
> encounters OUTCHAR(*f) in the dprintf_formatf() function in mprintf.c.
When you do simple 'curl' invokes? Then how come that doesn't happen when you
use the curl other people have built from the same set of sources?
> I dont think it likes:
>
> #define OUTCHAR(x) \
> do{ \
> if(stream((unsigned char)(x), (FILE *)data) != -1) \
> done++; \
> else \
> return done; /* return immediately on failure */ \
> } while(0)
Uh, why wouldn't it like it? And further, what _exactly_ in this are you
saying it doesn't like?
What does "blow up" mean in this context and what does f point to when it
does?
> Why is this a define and not a function?
Eh, because it was written that way! ;-) Feel free to improve the code and
send back patches if you think you can improve it. I certainly won't claim
that it is perfect.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-11-03