[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-indent] brace indentation for initializers
From: |
Les Mulder |
Subject: |
[Bug-indent] brace indentation for initializers |
Date: |
Tue, 16 Dec 2003 13:53:10 -0800 |
Indent version
GNU indent 2.2.9
Original initialization:
const struct cmdLeaf MFG_SUBCMDS[] = {
{
BOOT_STR,
BOOT_DESC_STR,
BOOT_HELP_STR,
BOOT_SYNT_LIST,
SYNT_SZ(BOOT_SYNT_LIST),
ROOT_USER,
SYS_DOWNLOAD,
(dblByte)KEY_MASK,
DISPLAY_ON,
LOCK_ON,
0,
0,
ROOT_CMDS,
NpshBootCmd
}, {
UPGRADE_STR,
UPGRADE_DESC_STR,
UPGRADE_HELP_STR,
0,
0,
ROOT_USER,
SYS_RUN|SYS_DEFAULT,
(dblByte)KEY_MASK,
DISPLAY_ON,
LOCK_ON,
0,
0,
ROOT_CMDS,
NpshUpgradeCmd
}
};
After applying indent with
-bap -nbfda -bl -bli0 -bls -ce -c50 -cd50 -cp0 -cbi0 -cli4 -ncs -fca
-nhnl -i4 -l2048 -lc100 -nbad -nce -npcs -nss -nut -nprs -npsl -saf -sai
-saw -sob
const struct cmdLeaf MFG_SUBCMDS[] = {
{
BOOT_STR,
BOOT_DESC_STR,
BOOT_HELP_STR,
BOOT_SYNT_LIST,
SYNT_SZ(BOOT_SYNT_LIST),
ROOT_USER,
SYS_DOWNLOAD,
(dblByte)KEY_MASK,
DISPLAY_ON,
LOCK_ON,
0,
0,
ROOT_CMDS,
NpshBootCmd}, {
UPGRADE_STR,
UPGRADE_DESC_STR,
UPGRADE_HELP_STR,
0,
0,
ROOT_USER,
SYS_RUN | SYS_DEFAULT,
(dblByte)KEY_MASK,
DISPLAY_ON,
LOCK_ON,
0,
0,
ROOT_CMDS,
NpshUpgradeCmd}
};
Shouldn't indent be lining up the braces with equal indentation as
opposed to
incrementing the indentation.
Is there a way to get indent to:
a) put the brace after NpshBootCmd on the next line,
b) aligned with the brace prior to BOOT_STR,
c) the subsquent brace for the next initializer also on a new line, and
d) aligned with the previous closing brace?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-indent] brace indentation for initializers,
Les Mulder <=