[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
No option to control label indentation
From: |
Eliot Blennerhassett |
Subject: |
No option to control label indentation |
Date: |
Fri, 23 Nov 2007 14:23:27 +1300 |
User-agent: |
KMail/1.9.6 |
Hello,
Using indent on linux kernel source, its not possible to meet LK coding style
requirement for labels in column 1. Eg.
void foo(void)
{
goto exit:
bar(1)
exit:
}
indent is coded to indent the label to the current code indent -2.
The relevant code is in io.c compute_label_target().
...
else
{
return parser_state_tos->ind_level - LABEL_OFFSET + 1;
}
It would be useful to have a commandline option to controls this.
Something like
else
{
return parser_state_tos->ind_level - settings.label_dedent + 1;
}
label_dedent would default to 2.
But setting it to a big number would force labels into the left margin.
regards
--
--
Eliot Blennerhassett
www.audioscience.com
- No option to control label indentation,
Eliot Blennerhassett <=