[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-indent] Indenting Arrays of Structs
From: |
John Klingler |
Subject: |
[Bug-indent] Indenting Arrays of Structs |
Date: |
Mon, 25 Aug 2003 13:42:07 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 |
Although indent handles struct declarations correctly, it does weird
things with arrays of structs and there doesn't seem to be any way to
control that. Below is an example. The command I'm using is:
indent -bl -bli0 -bap -bls -i4 -orig km.c
Original source:
KM_FIELD kmfl_template[]={
{ type: KM_FIELD_TYPE_STATIC,
name: "DEVICE_ID",
changed: 0,
lock: NULL,
priv: NULL,
read_complete: NULL,
},
Indented source:
KM_FIELD kmfl_template[] = {
{type:KM_FIELD_TYPE_STATIC,
name:"DEVICE_ID",
changed:0,
lock:NULL,
priv:NULL,
read_complete:NULL,
}
,
What I would like to get is:
KM_FIELD kmfl_template[]={
{
type: KM_FIELD_TYPE_STATIC,
name: "DEVICE_ID",
changed: 0,
lock: NULL,
priv: NULL,
read_complete: NULL,
},
or alternatively just leave it as it was.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-indent] Indenting Arrays of Structs,
John Klingler <=