Bug 24146

Summary: indent broken by commit from 09/12/2000
Product: Base System Reporter: thz <thz>
Component: binAssignee: David E. O'Brien <obrien>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-STABLE   
Hardware: Any   
OS: Any   

Description thz 2001-01-08 10:20:01 UTC
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;
}
Comment 1 dwmalone freebsd_committer freebsd_triage 2001-01-08 15:43:38 UTC
Responsible Changed
From-To: freebsd-bugs->obrien

David O'Brien made quite a lot of recent changes to ident.
Comment 2 David E. O'Brien freebsd_committer freebsd_triage 2001-04-20 08:43:03 UTC
State Changed
From-To: open->closed

Committed.  Thanks!! 
(sorry for the slow responce)
Comment 3 thomas 2001-12-10 16:17:40 UTC
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