This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Proposal: convert function definitions to prototyped form
"J.T. Conklin" wrote:
>
> >>>>> "Kevin" == Kevin Buettner <kevinb@cygnus.com> 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.
Given that people are currently editing headers to remove spaces by hand
this sounds like a good idea. One thing, how does one pass
``indent.pro'' rather than have it pick up ``.indent.pro''? I suspect
it can be maintained largely by hand (please not another perl script to
maintain it - we can't make perl a requirement on developers :-)
enjoy,
Andrew