git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Patch for http-fetch.c and older curl releases

From
AHArt Haas <ahaas@airmail.net>
Date
Sep 19, 2006, 00:32 UTC
Message-ID
<20060919003237.GH1261@artsapartment.org>
In-Reply-To
<7vzmcwogp9.fsf@assigned-by-dhcp.cox.net>
On Mon, Sep 18, 2006 at 05:14:42PM -0700, Junio C Hamano wrote:
Show 34 quoted lines
> "Art Haas" <ahaas@airmail.net> writes:
> 
> > Here's a patch that does that. I patched 'http.h' as there is already
> > a number of other curl tests in that file. On the machine where the 
> > build was failing, the 'curl-config --vernum' returned '070908',
> > and on my home machine where things build without issue the same
> > command returns '070f05', so I took that value to do the comparison.
> > Perhaps an intermediate value would work as well, but I don't have
> > a suitable version to check.
> >
> > Signed-off-by:  Art Haas <ahaas@airmail.net>
> >
> > diff --git a/http.h b/http.h
> > index 9ca16ac..aeff988 100644
> > --- a/http.h
> > +++ b/http.h
> > @@ -22,6 +22,10 @@ #if LIBCURL_VERSION_NUM < 0x070c04
> >  #define NO_CURL_EASY_DUPHANDLE
> >  #endif
> >  
> > +#if LIBCURL_VERSION_NUM < 0x070f05
> > +#define CURLE_HTTP_RETURNED_ERROR CURLE_HTTP_NOT_FOUND
> > +#endif
> > +
> >  struct slot_results
> >  {
> >  	CURLcode curl_result;
> >
> 
> Eh, why not
> 
>         #ifndef CURLE_HTTP_RETURNED_ERROR
>         #define CURLE_HTTP_RETURNED_ERROR CURLE_HTTP_NOT_FOUND
>         #endif
Hi.

Both 'CURLE_HTTP_RETURNED_ERROR' and 'CURLE_HTTP_NOT_FOUND' are part of an enumeration, not preprocessor '#define' values. I suppose that the odd-looking 'E' in the names is meant to signify 'enum'.

Art Haas
-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 8 in “Patch for http-fetch.c and older curl releases”
  1. Art HaasSep 18, 2006
  2. Junio C HamanoSep 18, 2006
  3. Art HaasSep 18, 2006
  4. Junio C HamanoSep 19, 2006
  5. Art HaasSep 19, 2006
  6. Junio C HamanoSep 19, 2006
  7. Johannes SchindelinSep 19, 2006
  8. Art HaasSep 19, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.