home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / LANGUAGS / C / C-BEAUT.LBR / CB.MAN < prev   
Text File  |  2000-06-30  |  3KB  |  123 lines

  1.  
  2.  
  3. CB(1)                     C Utilities                     CB(1)
  4.  
  5.  
  6. NAME
  7.         cb - A C program beautifier
  8.  
  9. SYNOPSIS
  10.         cb [-e<ze#labric>] [-fpnsMtMuv] infile [outifle]
  11.  
  12. DESCRIPTION
  13.         Cb  is  a  C  program  beautifier.  It takes infile and
  14.         formats it according to the editing  rules  given  with
  15.         the  -e  option  and  places  the  output  in [outfile]
  16.         according to the options given with the -f option.
  17.  
  18.         The following options are interpreted by cb.
  19.  
  20.         -e[option] affects editing:
  21.  
  22.             l    Break line before left brace
  23.             a    Break line after left brace
  24.             r    Break line after right brace
  25.             b    Break line before right brace
  26.             c    Break line at cases
  27.             i    Break line after do, if, etc.
  28.             #    Indent nested #if...'s
  29.             z    No line breaks or indented #if...'s
  30.             e    All of the above
  31.  
  32.         -f   Output a form feed (FF) at beginning
  33.         -p   Output to CP/M LST: device
  34.         -n   Number source lines
  35.         -sM  Indentation shift width is 1<=M<=9 (Def: 8)
  36.         -tM  Assume hardware tab width is 1<=M<=9 (Def: 8)
  37.         -u   Unbeautify.  Compact file by not indenting
  38.         -v   Debug option.  More v's are more verbose
  39.  
  40.         [outfile] - write output to outfile, otherwise
  41.                     write to the console.
  42.  
  43. FILES
  44.         cb.crl  public domain distribution crl file
  45.  
  46. SEE ALSO
  47.         B.  W.  Kernighan and D.  M.  Ritchie,
  48.         The C Programming Language
  49.         A Guide to CP/M Features and Facilities
  50.  
  51. DIAGNOSTICS
  52.         It will print a list of the  valid  switches  when  the
  53.         arguements  are  empty or when there is an input error.
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61. 1                       Printed 1/19/82                       1
  62.  
  63.  
  64.  
  65. CB(1)                     C Utilities                     CB(1)
  66.  
  67.  
  68. AUTHOR
  69.         Chuck Forsberg
  70.         Computer Devolpment Inc
  71.         6700 S.W.  105th Beaverton
  72.         OR., 97005
  73.         1-503-646-1599
  74.  
  75. BUGS
  76.         There is no directed  i/o  in  this  version.   The  -e
  77.         option does not give the formatting that is used in The
  78.         C Programming Language.
  79.  
  80. ACKNOWLEDGMENTS
  81.         CP/M is a Trademark of Digitial Research
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122. 2                       Printed 1/19/82                       2
  123.