“REF” 是什么意思? glibc vfprintf.c 中的意思是什么?

发布于 2024-12-17 08:35:47 字数 175 浏览 7 评论 0原文

我对 c++/linux 相当(非常)陌生,正在研究 glibc 中的 vfprintf 函数。它包含 REF (...) 的许多用途,我假设它是一个宏,但我在任何地方都找不到它的定义。我已经搜索了文件本身以及所有包含的文件。

是宏吗?如果是的话,它的定义在哪里?还有比一一搜索所有包含的文件更好的方法来查找宏的定义吗?

I'm fairly (very) new to c++/ linux and am looking through the vfprintf function in glibc. It includes many uses of REF (...), which I'm assuming is a macro, but I can't find its definition anywhere. I've searched the file itself as well as all the included files.

Is it a macro? If so, where is its definition? Also is there a better way to find the definition of macros than searching all the included files one by one?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

零度℉ 2024-12-24 08:35:47

stdio-common/vfprintf.c 中:

#ifdef SHARED
# define REF(Name) &&do_##Name - &&do_form_unknown
#else
# define REF(Name) &&do_##Name
#endif

我通过 ctags(1) 找到了它; ctags -R 。 ; vim -t REF

In stdio-common/vfprintf.c:

#ifdef SHARED
# define REF(Name) &&do_##Name - &&do_form_unknown
#else
# define REF(Name) &&do_##Name
#endif

I found it via ctags(1); ctags -R . ; vim -t REF.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文