mirror of
https://github.com/curl/curl.git
synced 2026-08-25 03:33:30 +03:00
lib: change progress bitwise ops to bitfields
Since they are mostly independent, using them as bitfelds makes the code easier. - remove the unused struct field 'width'. - convert 'speeder_c' to an unsigned char from int Closes #17431
This commit is contained in:
parent
37b25f7bb0
commit
129719c29c
7 changed files with 39 additions and 45 deletions
|
|
@ -71,9 +71,4 @@ void Curl_pgrsTimeWas(struct Curl_easy *data, timerid timer,
|
|||
|
||||
void Curl_pgrsEarlyData(struct Curl_easy *data, curl_off_t sent);
|
||||
|
||||
#define PGRS_HIDE (1<<4)
|
||||
#define PGRS_UL_SIZE_KNOWN (1<<5)
|
||||
#define PGRS_DL_SIZE_KNOWN (1<<6)
|
||||
#define PGRS_HEADERS_OUT (1<<7) /* set when the headers have been written */
|
||||
|
||||
#endif /* HEADER_CURL_PROGRESS_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue