by johnisgood · 1y ago · 0 comments
Some guy did ask questions I would have asked, at least.
Back to the CURL prefix, what is wrong with it? It is how it is in curl.h and without it, it looks kind of meh. What would the "CURL" distinct type be without the CURL prefix? :P
I hope I did not make a mess just by posting the URL. I will remove it. I do not need more (supposedly trolls) in there and make more of a big fuss than I did on here.
It prevents stuttering when using it `curl.CURL_*`.
> What would the "CURL" distinct type be without the CURL prefix?
`CURL` isn't a prefix there.
Take more time to think things through.
If you reply, do so without ad hominems and with some respect. Thank you.
You mean `curl.GLOBAL_ALL`, and it's for https://curl.se/libcurl/c/curl_global_init.html
// CURL_GLOBAL_ALL combines all initialization flags.
CURL_GLOBAL_ALL: i64 = 3
It has nothing to do with "curl_global_init()". This - which is a high-level function intended to be called by the users of the library - has: init :: proc() -> (ok: bool) {
return curl_global_init(CURL_GLOBAL_ALL) == 0
}
As you can see, higher-level function calls low-level function. The higher-level function does not have "curl" as the prefix.My question still stands and has not been answered.