Print this page
6205 onbld manuals should be declared as 1onbld
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Josef Sipek <jeffpc@josefsipek.net>

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/scripts/cstyle.1.man.txt
          +++ new/usr/src/tools/scripts/cstyle.1onbld.man.txt
   1      -cstyle(1)                        User Commands                       cstyle(1)
        1 +cstyle(1ONBLD)                illumos Build Tools               cstyle(1ONBLD)
   2    2  
   3    3  
   4    4  
   5    5  NAME
   6    6         cstyle - check for some common stylistic errors in C source files
   7    7  
   8    8  SYNOPSIS
   9    9         cstyle [-chpvCP] [-o constructs] [file...]
  10   10  
  11   11  DESCRIPTION
  12   12         cstyle inspects C source files (*.c and *.h) for common sylistic
  13   13         errors.  It attempts to check for the cstyle documented in
  14   14         /shared/ON/general_docs/cstyle.ms.pdf.  Note that there is much in that
  15   15         document that cannot be checked for; just because your code is
  16      -       cstyle(1) clean does not mean that you've followed Sun's C style.
       16 +       cstyle(1ONBLD) clean does not mean that you've followed Sun's C style.
  17   17         Caveat emptor.
  18   18  
  19   19  OPTIONS
  20   20         The following options are supported:
  21   21  
  22   22         -c  Check continuation line indentation inside of functions.  Sun's C
  23   23             style states that all statements must be indented to an appropriate
  24   24             tab stop, and any continuation lines after them must be indented
  25   25             exactly four spaces from the start line.  This option enables a
  26   26             series of checks designed to find contination line problems within
↓ open down ↓ 75 lines elided ↑ open up ↑
 102  102             while (do_something(&x) == 0);
 103  103  
 104  104             Will trigger this error.  Instead, do:
 105  105  
 106  106             while (do_something(&x) == 0)
 107  107             ;
 108  108  
 109  109  
 110  110  
 111  111  
 112      -                                 28 March 2005                       cstyle(1)
      112 +                                 28 March 2005                  cstyle(1ONBLD)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX