lib: use BIT() instead of bool in structs more

Since it makes use of bitfields on supported platforms, it saves a few
bytes memory. Might as well use it consistently.

Closes #17114
This commit is contained in:
Daniel Stenberg 2025-04-21 00:08:22 +02:00
parent 23bed347b3
commit ba07dcd27b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
15 changed files with 41 additions and 41 deletions

View file

@ -43,10 +43,10 @@ struct FormInfo {
char *userp; /* pointer for the read callback */
struct curl_slist *contentheader;
struct FormInfo *more;
bool name_alloc;
bool value_alloc;
bool contenttype_alloc;
bool showfilename_alloc;
BIT(name_alloc);
BIT(value_alloc);
BIT(contenttype_alloc);
BIT(showfilename_alloc);
};
CURLcode Curl_getformdata(CURL *data,