mirror of
https://github.com/curl/curl.git
synced 2026-08-25 07:23:31 +03:00
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:
parent
23bed347b3
commit
ba07dcd27b
15 changed files with 41 additions and 41 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue