繁体   English   中英

使用emacs获取功能原型

[英]Get the function prototype using emacs

我用emacs编辑了一个C程序。

C程序看起来并不重要

int main(int ac, char **av)
{
....
}
int func(void){...}
int anotherfunc(int a, char c, void *data){...}

我们可以有一个Elisp函数,用这些函数解析当前缓冲区并捕获函数原型吗?

我已经使用过etags但我只有

int main(
int func(

但是我想要

int main(int ac, char **av)
int func(void)
int anotherfunc(int a, char c,  void *data)

非常感谢

我建议看C-eldoc模式- http://www.emacswiki.org/emacs/CEldocMode

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM