[Ctags] Ctags and C function prototypes
Brought to you by:
dhiebert
From: Dave S. <ds...@so...> - 2004-01-08 10:10:04
|
I'm having a problem with C source files that have both the function prototypes and definitions in them. The problem is that some of out source files look like this: #include <stdio.h> int foo(int bubba); int foo(int bubba) { printf("Hello world\n"); } main() { foo(1); } Ctags only includes the function prototype, not the actual function itself. If I remove the variable name 'bubba' from the prototype it includes the function, but not the prototype. So my question: How do I force ctags to include duplicate entries (or just ignore the prototype) when faced with code like that above? It would be preferable to not have to change the prototypes (of course). Btw, this is version 5.5.2 running on debian unstable. Any help would be much appreciated. Cheers Dave |