On Aug 7, 4:07 pm, [email protected] wrote:
> Hello,
>
> "sinbad" wrote:
> > is it possible to get the complete protoype of a c function
> > in vim using cscope and ctags. basically i want to write a
> > vim function which takes c function name as input and
> > returns it's complete prototype. help!
>
> I'm not sure what you exactly want to achieve as the tags base shall (if 
> correctly configured) have the function signature -- only the return type is 
> missing.
>
> Could my function lh#dev#c#_prototype() [1] answer your need ?
>
> [1]http://code.google.com/p/lh-vim/source/browse/dev/trunk/autoload/lh/d...
>
> --
> Luc Hermittehttp://lh-vim.googlecode.com/http://hermitte.free.fr/vim/

hi,

actually i want the function prototype to be displayed while browsing
through
the code, i found it very convenient to display the function name as
tab title
i got it working, but i am not able to get the complete prototype, i
tried to
use taglist(), but taglist doesn't give complete prototype, if the
function
parameters are stretch over multiple lines, for example

int func(int a,
             int b) {
}

taglist returns func(int a,  not the second parameter, and it never
gives the
function return type.

hi luc, i will try your functions it might work.

thanks
sinbad

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to