home *** CD-ROM | disk | FTP | other *** search
-
-
- CB(1) C Utilities CB(1)
-
-
- NAME
- cb - A C program beautifier
-
- SYNOPSIS
- cb [-e<ze#labric>] [-fpnsMtMuv] infile [outifle]
-
- DESCRIPTION
- Cb is a C program beautifier. It takes infile and
- formats it according to the editing rules given with
- the -e option and places the output in [outfile]
- according to the options given with the -f option.
-
- The following options are interpreted by cb.
-
- -e[option] affects editing:
-
- l Break line before left brace
- a Break line after left brace
- r Break line after right brace
- b Break line before right brace
- c Break line at cases
- i Break line after do, if, etc.
- # Indent nested #if...'s
- z No line breaks or indented #if...'s
- e All of the above
-
- -f Output a form feed (FF) at beginning
- -p Output to CP/M LST: device
- -n Number source lines
- -sM Indentation shift width is 1<=M<=9 (Def: 8)
- -tM Assume hardware tab width is 1<=M<=9 (Def: 8)
- -u Unbeautify. Compact file by not indenting
- -v Debug option. More v's are more verbose
-
- [outfile] - write output to outfile, otherwise
- write to the console.
-
- FILES
- cb.crl public domain distribution crl file
-
- SEE ALSO
- B. W. Kernighan and D. M. Ritchie,
- The C Programming Language
- A Guide to CP/M Features and Facilities
-
- DIAGNOSTICS
- It will print a list of the valid switches when the
- arguements are empty or when there is an input error.
-
-
-
-
-
-
-
- 1 Printed 1/19/82 1
-
-
-
- CB(1) C Utilities CB(1)
-
-
- AUTHOR
- Chuck Forsberg
- Computer Devolpment Inc
- 6700 S.W. 105th Beaverton
- OR., 97005
- 1-503-646-1599
-
- BUGS
- There is no directed i/o in this version. The -e
- option does not give the formatting that is used in The
- C Programming Language.
-
- ACKNOWLEDGMENTS
- CP/M is a Trademark of Digitial Research
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 2 Printed 1/19/82 2