Skip to content

urldata: remove values that are not used depending on compilation settings - #13188

Closed
MAntoniak wants to merge 1 commit into
curl:masterfrom
MAntoniak:master
Closed

urldata: remove values that are not used depending on compilation settings#13188
MAntoniak wants to merge 1 commit into
curl:masterfrom
MAntoniak:master

Conversation

@MAntoniak

Copy link
Copy Markdown
Contributor

Reduced size of dynamically_allocated_data structure.

Reduced number of stored values in enum dupstring and enum dupblob. This affects the reduced array placed in the UserDefined structure.

It is also possible to remove the STRING_SASL_AUTHZID and STRING_BEARER values from the dupstring. However, this requires a separate PR.

Comment thread lib/urldata.h Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in direct contradiction to the comment above the enum which says:

This enumeration MUST not use conditional directives (#ifdefs)

But: the comment also refers to a (misspelled) source code file that was removed in 821d108, which makes me suspect maybe this comment does not apply anymore?

@monnerat can you fill in some blanks maybe?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems the comment is obsolete: the current test is now based on CURLOPT_*, not on STRING_* anymore.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MAntoniak can you perhaps update that comment to reflect reality?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand correctly just remove it?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

…tings.

Reduced size of dynamically_allocated_data structure.

Reduced number of stored values in enum dupstring and enum dupblob. This affects the reduced array placed in the UserDefined structure.
@bagder bagder closed this in f46385d Apr 5, 2024
@bagder

bagder commented Apr 5, 2024

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants