bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: space between * and identifier in function definition


From: david
Subject: Re: space between * and identifier in function definition
Date: Tue, 26 Jun 2007 19:12:16 +0200
User-agent: Thunderbird 1.5.0.10 (X11/20060911)

You have to tell indent that XEvent is a type with the -T option. See
http://mysite.wanadoo-members.co.uk/indent/indent_10.html#SEC10

Indent doesn't otherwise know what the non-primitive types are.

Hans Molin wrote:
> I noticed that when I run the following through GNU indent (2.2.9):
>
> void
> foo(XEvent *event)
> {
>   /* Do something */
> }
>
> The output is formatted as (notice the space between * and event):
>
> void
> foo(XEvent * event)   <<<--- look here
> {
>   /* Do something */
> }
>
> Whereas if I format the following:
>
> void
> foo(int *ptr)
> {
>   /* Do something */
> }
>
> It comes out unchanged.
>
> The problem seems to occur anytime the pointer points to a non-
> primitive data type.
>
> Is this a known issue?  I can't find a documented option to
> control the behavior -- is there one?
>
>
>
> _______________________________________________
> bug-indent mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-indent
>
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]