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
On Jun 2, 2:26pm, Mark Kettenis wrote:
> Date: Fri, 2 Jun 2000 00:50:19 -0700
> From: Kevin Buettner <kevinb@cygnus.com>
>
> Comma separated list with differing number of stars on the parameter
> names (sparc-tdep.c):
>
> static branch_type
> -isbranch (instruction, addr, target)
> - long instruction;
> - CORE_ADDR addr, *target;
> +isbranch (long instruction, CORE_ADDR addr, CORE_ADDR * target)
> {
>
> I guess you should tweak it some more such that it outputs
>
> CORE_ADDR *target
>
> instead of
>
> CORE_ADDR * target
>
> (note the spurious space between * and target).
I noticed that. The space was put there by ``indent''. I would very
much like to get rid of that space and it would be easy to make the
perl script postprocess the ``indent'' output. But in doing so, we
(obviously) generate different output than that of ``indent''.
I suppose the other solution is to fix indent. :-)
FYI, I'm using GNU indent 2.2.5.
Kevin