ctags and function prototypes

Tom Mackey tomm at uucp
Sat Nov 3 06:13:48 AEST 1990


In article <517 at voodoo.UUCP> tomm at uucp (Tom Mackey) writes:
>In article <515 at voodoo.UUCP> tomm at voodoo.voodoo.uucp (Tom Mackey) writes:

>>    I'm trying to DoTheRightThing and use full function prototyping
>>    and have run into a little problem with ctags.  I wonder whether

>     <Most of my previous drivel ommitted>

>A co-worker just popped in and said he thought he had seen something
>about this 3 or so weeks ago.  I just got caught up in c.s.sgi, so it
>may have expired.  He said there may have been something about it
>being a known bug and was to be fixed in Release 3.3 of the OS.  I am
>running Release 3.3.1 on a 4D/25TG.

<     Didja ever get the feeling no one's listening and yer just
      talking to yerself?  ;^)                                        >


Here is a workaround to the ctags and prototypes problem that I've been
discussing with myself:


/*
** The following cheap trick is made necessary by a broken ctags(1).
** Ctags is fooled by function prototypes containing pointer to
** function declarations, so we hide them in a define.  Now lint(1)
** stays happy, too!
*/

#define PARMLIST1 void (*fn)(void *, int)
#define PARMLIST2 void (*fn)(void *)

void    add_event(event_pp, int, int, int, PARMLIST1, void *);
void    add_update(update_pp, int *, PARMLIST2, void *);

Enjoy!
--
Tom Mackey       (206) 865-6575        tomm at voodoo.boeing.com
Boeing Computer Services         ....uunet!bcstec!voodoo!tomm
M/S 7K-20,     P.O. Box 24346,     Seattle, WA     98124-0346



More information about the Comp.sys.sgi mailing list