chiark / gitweb /
Merge branch 'running' of login.chiark.greenend.org.uk:public-git/inn-innduct
[innduct.git] / support / indent
1 #! /bin/sh
2
3 ##  $Id: indent 5165 2002-03-02 01:43:53Z rra $
4 ##
5 ##  Run indent on source files with INN options.
6 ##
7 ##  This is a simple wrapper around GNU indent to call it with all of the
8 ##  options suitable for INN's coding style and typedefs.  These options
9 ##  are also documented in HACKING.  Assumes indent is on the user's path.
10 ##
11 ##  The order of options matches the order in which they're described in
12 ##  the GNU indent info manual.  In order, each line sets options for:
13 ##  blank lines, comments, statements, declarations, indentation, breaking
14 ##  long lines, and typedefs used by INN.
15 ##
16 ##  Note that the resulting output should not be used without manual review,
17 ##  nor should this script be run automatically.  indent still has a few
18 ##  bugs, tends to mangle case statements written compactly, and varies from
19 ##  the prevailing INN style in a few ways that can't be changed.
20
21 indent \
22     -bad -bap -nsob \
23     -fca -lc78 -cd32 -cp1 \
24     -br -ce -cdw -cli0 -ss -npcs -cs \
25     -di1 -nbc -psl -brs \
26     -i4 -ci4 -lp -ts8 -nut -ip5 -lps \
27     -l78 -bbo -hnl \
28     -T off_t -T size_t -T uint32_t -T time_t -T FILE \
29     $*