summaryrefslogtreecommitdiffstats
path: root/usr.bin/indent/indent_globs.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-02-09 21:48:51 +0000
committerbde <bde@FreeBSD.org>2004-02-09 21:48:51 +0000
commit230bb0491dfc8c7495c5d9221e0dd83f981f3a24 (patch)
tree433a65a96ac9674af5f002fd33f672392a77b318 /usr.bin/indent/indent_globs.h
parentfb0b5ce61d257b76d357e8c73de3a01f08a2d4b7 (diff)
downloadFreeBSD-src-230bb0491dfc8c7495c5d9221e0dd83f981f3a24.zip
FreeBSD-src-230bb0491dfc8c7495c5d9221e0dd83f981f3a24.tar.gz
Added an option -ldi<N> to control indentation of local variable names.
The default is to be backwards compatible and non-KNF (use the same indentation for locals as for globals; -ldi0 gives KNF indentation for locals (none)). The indentation for globals also applies to struct member names in local declatations. The indentation of variable names in multi-line declarations is broken in various ways and this commit gives some new variations. indent.1: Also clarified the description of -di<N>.
Diffstat (limited to 'usr.bin/indent/indent_globs.h')
-rw-r--r--usr.bin/indent/indent_globs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/indent/indent_globs.h b/usr.bin/indent/indent_globs.h
index c189bfd..d35900e 100644
--- a/usr.bin/indent/indent_globs.h
+++ b/usr.bin/indent/indent_globs.h
@@ -303,6 +303,7 @@ struct parser_state {
int else_if; /* True iff else if pairs should be handled
* specially */
int decl_indent; /* column to indent declared identifiers to */
+ int local_decl_indent; /* like decl_indent but for locals */
int its_a_keyword;
int sizeof_keyword;
int dumped_decl_indent;
OpenPOWER on IntegriCloud