bug-indent
[Top][All Lists]
Advanced

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

[Bug-indent] Comment keeps being moved to the right


From: Jens Schweikhardt
Subject: [Bug-indent] Comment keeps being moved to the right
Date: Wed, 28 May 2003 11:39:11 +0200
User-agent: Mutt/1.4.1i

hello, world\n

this appears to be a bug in indent. If there are two comments on a line,
they keep being moved to the right when indent output is fed to indent
again.

How to repeat:

$ gindent --version       # on FreeBSD 4.7
GNU indent 2.2.8a
$ cat tst.c
   /* foo */              /* bar */

   /* foo */  int i;      /* bar
                           */
$ gindent -st -npro -kr < tst.c
                          /* foo *//* bar */

                                /* foo */ int i;
                                /* bar
                                 */
$ gindent -st -npro -kr < tst.c | gindent -st -npro -kr
                                   /* foo *//* bar */

                                /* foo */ int i;
                                /* bar
                                 */
$

Regards,

        Jens
-- 
Jens Schweikhardt  http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)




reply via email to

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