簡體   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