| Summary: | indent broken by commit from 09/12/2000 | ||
|---|---|---|---|
| Product: | Base System | Reporter: | thz <thz> |
| Component: | bin | Assignee: | David E. O'Brien <obrien> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.2-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-bugs->obrien David O'Brien made quite a lot of recent changes to ident. State Changed From-To: open->closed Committed. Thanks!! (sorry for the slow responce) This is _still_ broken in 4.4-RELEASE. Can someone migrate the fix into the -STABLE tree as well please! -- Thomas Sandford | thomas@paradisegreen.co.uk |
The commit from 9. dec. 2000 to `indent' broke the formatting of functions with structure pointer in the prototype. Fix: Reinserting of two of lines removed by the commit from 9/12/2000 allows again for a correct formatting of this type of functions. case 3: /* a "struct" */ + if (ps.p_l_follow) + break; /* inside parens: cast */ /* * Next time around, we may want to know that we have had a * 'struct'--Dnw3pI2MEUD2yRbmH16D7GPmgjgZUuCmkyVi6GSgR0FH6zXA Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" Index: lexi.c =================================================================== RCS file: /usr/cvs/FreeBSD/src/usr.bin/indent/lexi.c,v retrieving revision 1.3.6.1 diff -u -r1.3.6.1 lexi.c --- lexi.c 2000/12/09 19:05:05 1.3.6.1 +++ lexi.c 2000/12/21 11:54:15 @@ -261,6 +261,8 @@ return (casestmt); How-To-Repeat: Format the following function with indent after 9. december: void foo(struct bar *bar) { return 0; }