Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!usc!merlin.usc.edu!aludra.usc.edu!raulmill From: raulmill@aludra.usc.edu (Raul) Newsgroups: comp.emacs Subject: Re: C function prototypes and tags Summary: first things first Message-ID: <4189@merlin.usc.edu> Date: 24 Jun 89 08:18:13 GMT Expires: 23 Jul 89 07:00:00 GMT References: <43f86c00.13868@apollo.COM> Sender: news@merlin.usc.edu Reply-To: raulmill@usc.edu (Raul) Followup-To: comp.emacs Lines: 17 vinoski@apollo.COM (Stephen Vinoski) writes: -> Today I tried to create a tags file for a large C program using -> 'etags -t' so as to include typedefs in the tags. The program uses -> function prototypes throughout. When I did a 'find-tag' for a -> typedef name it took me to one of the function prototypes where the -> typedef was used to specify an argument type, which is less than -> desirable. Put your function prototypes in include files. When you specify your arguments to etags, make sure that the include files are specified last. This way find-tag will locate the function definition before the function prototype. You can always use meta-comma to advance on to the prototype if you really want to see it. Raul Rockwell | INTERNET: raulmill@usc.edu | UUCP: ...uunet!usc!raulmill | 55 mph = 82 nc U.S.SNAIL: 721 E Windsor #4, GLENDALE CA 91205 |