~ctwm/ctwm/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Code formatting for ctwm
# See <http://astyle.sourceforge.net/astyle.html> for reference of
# options.

# K&R bracing
style=kr

# Tabs for indent.  8 is here mostly for the initial transformation, not
# necessarily as suggested tabstop for working with the code.
indent=tab=8

# Indent switch() and case's.
indent-switches
# It looks like this actually makes cases with blocks indent twice.
# That's not what we want.
#indent-cases

# Don't push too far
# Astyle refuses to accept less than 40.  Brilliant.
#max-instatement-indent=16

# Space around operators
pad-oper

# Get rid of spaces around parens (I actually wish this were a little
# more discriminating, but this is an improvement on the current state)
unpad-paren

# Align * and & and such to the name
align-pointer=name
align-reference=name

# Don't cuddle elses
# s/brackets/braces/ as of astyle 3.0, old name removed in 3.2
break-closing-braces

# Bracket one-liners.  This has the nice side effect that we break up
# one-liners.
# Ditto above s/brackets/braces/
add-braces

# Use tabs only for indent levels, spaces for alignment below that
convert-tabs

# 80 char lines
max-code-length=80

# \n
lineend=linux