diff options
author | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:49:47 +0300 |
---|---|---|
committer | Taru Karttunen <taruti@taruti.net> | 2011-03-30 16:49:47 +0300 |
commit | b41b9034225ab3e49980d9de55c141011b6383b0 (patch) | |
tree | 891014b4c2e803e01ac7a1fd2b60819fbc5a6e73 /sys/man/1/cb | |
parent | c558a99e0be506a9abdf677f0ca4490644e05fc1 (diff) |
Import sources from 2011-03-30 iso image - sys/man
Diffstat (limited to 'sys/man/1/cb')
-rwxr-xr-x | sys/man/1/cb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sys/man/1/cb b/sys/man/1/cb new file mode 100755 index 000000000..b5eed691e --- /dev/null +++ b/sys/man/1/cb @@ -0,0 +1,46 @@ +.TH CB 1 +.SH NAME +cb \- C program beautifier +.SH SYNOPSIS +.B cb +[ +.B -js +] +[ +.B -l +.I length +] +[ +.I file +\&... +] +.SH DESCRIPTION +.I Cb +reads syntactically correct C programs from +from its input or the given files, and writes them to its stdout +with a more visually pleasing spacing and indentation. +.I Cb +understands no C++ syntax bar newline-terminated comments; +and by default all user new-lines are preserved in the output. +.PP +The options are: +.TP +.B -j +Join split lines. +.TP +.B -s +Print code in the so-called K&R style used in +.IR "The C Programming Language" . +.TP +.B -l length +Split lines that are longer than +.IR length . +.PD +.SH SOURCE +.B /sys/src/cmd/cb +.SH BUGS +.I Cb +does not reformat structure initializers. +.br +Punctuation hidden in macros can cause +indentation errors. |