bug-indent
[Top][All Lists]
Advanced

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

Re: [Bug-indent] k&r mode is broken in 2.2.6


From: Carlo Wood
Subject: Re: [Bug-indent] k&r mode is broken in 2.2.6
Date: Mon, 24 Dec 2001 02:21:55 +0100
User-agent: Mutt/1.2.5i

Works fine here:

~/c/indent>cat test.c
LinkedList *getNext() {
  return (_next);
}

LinkedList *getPrev() {
  return(_prev);
}

~/c/indent>./indent -kr -st -TLinkedList test.c
LinkedList *getNext()
{
    return (_next);
}

LinkedList *getPrev()
{
    return (_prev);
}

On Sun, Dec 23, 2001 at 12:23:48PM -0800, Brian Craft wrote:
> Here's a bit of a diff after doing "indent -kr":
> 
> 
> -  LinkedList *getNext() {
> -    return (_next);
> -  }
> +    LinkedList *getNext() {
> +        return (_next);
> +    } LinkedList *getPrev() {
> +        return (_prev);
> +    }
>  
> -  LinkedList *getPrev() {
> -    return(_prev);
> -  }
> 
> 
> 
> I have no idea why it's doing this. Other function definitions in the same
> class are formatted correctly. Only this one comes out weird.
> 
> indent version 2.2.6.
> 
> b.c.
> 
> _______________________________________________
> Bug-indent mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-indent

-- 
Carlo Wood <address@hidden>



reply via email to

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