1
0

cb 896 B

12345678910111213141516171819202122232425262728293031
  1. .TH CB 1
  2. .SH NAME
  3. .I cb
  4. \- C program beautifier
  5. .SH SYNOPSIS
  6. \fBcb\fR [\fB-s\fR] [\fB-j\fR] [\fB-l\fR \fIlength\fR] [\fIfile\fR ...]
  7. .SH DESCRIPTION
  8. \fBCb\fR reads syntactically correct C programs from
  9. from its input or the given files, and writes them to its stdout
  10. with a more visualy pleasing spacing and indentation. \fBCb\fR
  11. understands no C++ syntax bar newline terminated comments;
  12. and by default all user new-lines are preserved in the output.
  13. .PP
  14. \fBCb\fR accepts the following options.
  15. .TP
  16. .B -s
  17. Write the code in the style of Kernighan and
  18. Ritchie found in The C Programming Language.
  19. .TP
  20. .B -j
  21. Put split lines back together.
  22. .TP
  23. .B -l length
  24. Split lines that are longer than \fIlength\fR.
  25. .SH SOURCE
  26. .B /sys/src/cmd/cb
  27. .SH NOTES
  28. The format of structure initializations is unchanged by \fBcb\fR.
  29. .br
  30. Punctuation that is hidden in preprocessing directives
  31. causes indentation errors.