NetBSD-Bugs archive

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

Re: bin/55453: indent(1) wrongly indents second to last enum constant



The following reply was made to PR bin/55453; it has been noted by GNATS.

From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/55453: indent(1) wrongly indents second to last enum constant
Date: Sat, 4 Jul 2020 01:41:30 +0300

 The minimal test case would be the following:
 
 $ cat enum.c
 typedef enum {
     A0,
     A1
 } E;
 $ indent -bap -br -ncdb -ci4 -i4 enum.c 
 $ cat enum.c
 typedef enum {
     A0,
 	A1
 } E;
 
 typedef is important here.  Compare also:
 
 $ cat enum.c
 enum {
     A0,
     A1
 } E;
 $ indent -bap -br -ncdb -ci4 -i4 enum.c 
 $ cat enum.c
 typedef enum {
     A0,
     A1
 }		E;
 
 
 -uwe
 


Home | Main Index | Thread Index | Old Index