Chinaunix
标题:
ctags好象不对劲
[打印本页]
作者:
huwenhuo
时间:
2009-08-08 05:57
标题:
ctags好象不对劲
如题, 好多函数都不能被提取了来。
比如对gtkbox.h来说, 其中:
GType gtk_box_get_type (void) G_GNUC_CONST;
void gtk_box_pack_end (GtkBox *box,
GtkWidget *child,
gboolean expand,
gboolean fill,
guint padding);
只有gtk_box_get_type在tags文件中会出现, 而gtk_box_pack_end则没有出现。
不知道大家有没有遇上过这个问题。
ctags gtkbox.h
作者:
mingyanguo
时间:
2009-08-08 08:24
是base里面的ctags?挺不好用的,而且经常不准。改还挺难改。可以试试cscope。
作者:
fender0107401
时间:
2009-08-08 10:39
cd /usr/ports/devel/ctags/
make install clean
作者:
fender0107401
时间:
2009-08-08 10:41
% grep ctags .gvimrc
map <f6> <esc>:wall<cr>:!cscope -Rb *.c *.h<cr>:cs add cscope.out<cr>:cs reset<cr>:!ctags -R *.c *.h<cr> :TlistUpdate<cr>
复制代码
作者:
huwenhuo
时间:
2009-08-09 00:41
[~]$sudo pkg_add -r ctags
Password:
Fetching
ftp://ftp.freebsd.org/pub/FreeBS ... Latest/ctags.tbz...
Done.
pkg_add: package 'ctags-5.7' or its older version already installed
=====================================
好象不是base里的ctags. 我试试cscope
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2