为curl_easy_setopt函数定义的CURLOPT_*常量在哪里?
我几乎查看了 libcurl 源包中包含的每个文件,但似乎找不到定义 CURLOPT_* 选项的位置。我推测它们可能是整数,也许是枚举,但我一生都找不到它们。
我正在编写的语言是 RealBasic,如果这很重要的话。通常,当使用用 CI 编写的外部库时,需要手动查找并翻译标头中的各种 #define
块。但我必须先知道 #define
块在哪里,然后才能做任何事情!
I've looked at practically every file included in the libcurl source package and can't seem to find where the CURLOPT_* options are defined. I gather that they're probably integers, perhaps an enum, but for the life of me I can't find them.
The language I'm writing in is RealBasic, if that matters at all. Generally when using an external library written in C I need to manually find and translate the various #define
blocks in the headers. But I have to know where the #define
block is before I can do anything!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它们是用curl/curl.h头文件中的CINIT()宏定义的。在最近的一个此类文件中(截至我撰写本文时),它们从第 782 行开始。
该宏实际上在一个大枚举结构中创建了一行。
They're defined with the CINIT() macro within the curl/curl.h header file. In a very recent such file (as of me writing this) they start at line 782.
The macro actually creates a line within a big enum construct.