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

Re: [PATCH 1/2] curl: streamline conditional compilation

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 16, 2022, 18:04 UTC
Message-ID
<xmqqy219lqot.fsf@gitster.g>
In-Reply-To
<220316.86h77ydkfl.gmgdl@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 15 quoted lines
> The way it was being done before was intentional & discused on list.
>
> See my original
> https://lore.kernel.org/git/patch-v3-7.7-93a2775d0ee-20210730T092843Z-avarab@gmail.com/
> which did it pretty much like that, and Junio's subsequent
> follow-up. I.e. this breadcrumb trail:
> https://lore.kernel.org/git/?q=CURL_SOCKOPT_OK
>
>> -#if LIBCURL_VERSION_NUM < 0x071505
>> -#define CURL_SOCKOPT_OK 0
>> +#if LIBCURL_VERSION_NUM >= 0x071505
>> +#define GIT_CURL_HAVE_CURL_SOCKOPT_OK 1
>>  #endif
>
> IOW we should drop this.
I think that depends on the worldview.

In a world in which [PATCH 2/2] is a good idea, i.e. "we have a comprehensive catalog of available cURL features, but it expresses its knowledge in one particular way, i.e. HAVE_X", the above, together with the change at the only use site in http.c, are very sensible changes.

Given that we do not want to have too many conditionally compiled codepath, I certainly understand that the current approach to keep an ad-hoc list of features we care about may be your preference.

I am not sure if that is viable longer term, though. I still am not decided.

Thanks.
Previous: Ævar Arnfjörð BjarmasonNext: Elia Pinto
Message 4 of 7 in “addition of all symbols defined by curl”
  1. 0/2 addition of all symbols defined by curlElia Pinto, Mar 16, 2022
  2. 1/2 curl: streamline conditional compilationElia Pinto, Mar 16, 2022
  3. Ævar Arnfjörð BjarmasonMar 16, 2022
  4. Junio C HamanoMar 16, 2022
  5. 2/2 git-curl-compat.h: addition of all symbols defined by curlElia Pinto, Mar 16, 2022
  6. Ævar Arnfjörð BjarmasonMar 16, 2022
  7. Elia PintoMar 16, 2022

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.