Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature-vt/sys/man/1/cb – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
.TH CB 1
2
.SH NAME
3
cb \- C program beautifier
4
.SH SYNOPSIS
5
.B cb
6
[
7
.B -js
8
]
9
[
10
.B -l
11
.I length
12
]
13
[
14
.I file
15
\&...
16
]
17
.SH DESCRIPTION
18
.I Cb
19
reads syntactically correct C programs from
20
from its input or the given files, and writes them to its stdout
21
with a more visually pleasing spacing and indentation.
22
.I Cb
23
understands no C++ syntax bar newline-terminated comments;
24
and by default all user new-lines are preserved in the output.
25
.PP
26
The options are:
27
.TP
28
.B -j
29
Join split lines.
30
.TP 
31
.B -s
32
Print code in the so-called K&R style used in
33
.IR "The C Programming Language" .
34
.TP 
35
.B -l
36
Split lines that are longer than
37
.IR length .
38
.PD
39
.SH SOURCE
40
.B /sys/src/cmd/cb
41
.SH BUGS
42
.I Cb
43
does not reformat structure initializers.
44
.br
45
Punctuation hidden in macros can cause
46
indentation errors.