简体   繁体   English

使用emacs获取功能原型

[英]Get the function prototype using emacs

I got a C program edited with emacs. 我用emacs编辑了一个C程序。

The C program is not important it looks like C程序看起来并不重要

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

can we have a Elisp function which parse the current buffer with those functions and catch the function prototype ? 我们可以有一个Elisp函数,用这些函数解析当前缓冲区并捕获函数原型吗?

I already use etags but I just have 我已经使用过etags但我只有

int main(
int func(

But i would like have 但是我想要

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

Thanks a lot 非常感谢

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

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

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