From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bachalo To: jtc@redback.com Cc: Kevin Buettner , Mark Kettenis , gdb@sourceware.cygnus.com Subject: Re: Proposal: convert function definitions to prototyped form Date: Mon, 12 Jun 2000 16:30:00 -0000 Message-id: <394572A4.EF8646F2@redhat.com> References: <1000602075018.ZM29997@ocotillo.lan> <200006021226.e52CQ2I01239@delius.kettenis.local> <1000602151553.ZM30578@ocotillo.lan> <5mya4om115.fsf@jtc.redback.com> X-SW-Source: 2000-06/msg00098.html "J.T. Conklin" wrote: > > >>>>> "Kevin" == Kevin Buettner writes: > Kevin> I noticed that. The space was put there by ``indent''. I > Kevin> would very much like to get rid of that space and it would be > Kevin> easy to make the perl script postprocess the ``indent'' output. > Kevin> But in doing so, we (obviously) generate different output than > Kevin> that of ``indent''. > Kevin> > Kevin> I suppose the other solution is to fix indent. :-) > > You can tell indent about all the types defined by typedef with -T > option, and then it won't add the extra space. It shouldn't be too > difficult to identify all the types. > > It might be useful for us to maintain an indent.pro file that has > these definitions so that additional runs of indent don't add back > the space. I believe etags does a fairly good job a finding typedefs. I would be a fairly simple script to parse the TAGS file to make a list of all typedefs. I have a python script for this. Not sure how ported etags and python are for all the hosts that compile GDB though. - Eric Bachalo