mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:33:31 +03:00
curl: make global truly global
The GlobalConfig only exists in a single instance and it has worked like this since the dawn of time. It is about time we stop passing around pointers to what was already essentially a global object and instead just use a... global. It simplifies things. Closes #18213
This commit is contained in:
parent
2d9f24bf24
commit
3b40128b0f
42 changed files with 473 additions and 626 deletions
|
|
@ -360,7 +360,6 @@ typedef enum {
|
|||
PARAM_LAST
|
||||
} ParameterError;
|
||||
|
||||
struct GlobalConfig;
|
||||
struct OperationConfig;
|
||||
|
||||
const struct LongShort *findlongopt(const char *opt);
|
||||
|
|
@ -376,8 +375,7 @@ void parse_cert_parameter(const char *cert_parameter,
|
|||
char **passphrase);
|
||||
#endif
|
||||
|
||||
ParameterError parse_args(struct GlobalConfig *global, int argc,
|
||||
argv_item_t argv[]);
|
||||
ParameterError parse_args(int argc, argv_item_t argv[]);
|
||||
|
||||
#if defined(UNICODE) && defined(_WIN32) && !defined(UNDER_CE)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue