Skip to content

curl_setup.h: merge back single-use internal header curl_setup_once.h#20555

Closed
vszakats wants to merge 1 commit intocurl:masterfrom
vszakats:setuponce
Closed

curl_setup.h: merge back single-use internal header curl_setup_once.h#20555
vszakats wants to merge 1 commit intocurl:masterfrom
vszakats:setuponce

Conversation

@vszakats
Copy link
Member

@vszakats vszakats commented Feb 11, 2026

Originally split in 2006, but the issues cited are no longer present in
current code. As of now both curl_setup.h and curl_setup_once.h are
included once per compiler invocation, without recursion. The latter is
a sub-header of the former with no clear distinction in their contents.

Merge them to avoid having to decide where to put new global PP logic.
Also to make it easier to overview what gets defined/included globally
and in what order. (Perhaps even allowing some tidying up here.)

Follow-up to 77b3bc2

Originally split in 2006, but the issues cited are no longer present in
current code. As of now both `curl_setup.h` and `curl_setup_once.h` are
included once per compiler invocation, without recursion. The latter is
just a sub-header of the former with no clear distinction in their
contents.

Merge them to avoid having to decide where to put new global PP logic.
Also to make it easier to overview what gets defined globally and in
what order. (Perhaps even giving way of some tidying up here.)

Follow-up to 77b3bc2
@vszakats vszakats closed this in c05cd2a Feb 11, 2026
@vszakats vszakats deleted the setuponce branch February 11, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant