Subject: misc/16451: indent doesn't grok // comments
To: None <gnats-bugs@gnats.netbsd.org>
From: None <wrstuden@netbsd.org>
List: netbsd-bugs
Date: 04/22/2002 13:17:54
>Number: 16451
>Category: misc
>Synopsis: indent doesn't grok // comments
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 22 13:18:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Bill Studenmund
>Release: -current, 1.5ZC
>Organization:
>Environment:
Athlon 1600 running -current w/ nathanw_sa installed
>Description:
Start with code like:
// Now itterate
if ( x < 100000000 ) {
x++;
if ((x % 10000000) == 0)
printf("Iteration %d\n", x);
ret = setcontext(&u);
if (ret) /* Or we wouldn't be here! */
perror("setcontext");
}
run indent, and get:
//Now itterate
if (x < 100000000) {
x++;
if ((x % 10000000) == 0)
printf("Iteration %d\n", x);
ret = setcontext(&u);
if (ret) /* Or we wouldn't be here! */
perror("setcontext");
}
>How-To-Repeat:
See above
>Fix:
gindent is a workaround. Not sure of how to fix or I would have. :-)
>Release-Note:
>Audit-Trail:
>Unformatted: