home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 2 / RISC_DISC_2.iso / pd_share / program / gnu / indent / indent_txt < prev    next >
Encoding:
Text File  |  1995-03-13  |  28.5 KB  |  908 lines

  1. INDENT(1)
  2. ~~~~~~~~~
  3. NAME
  4. ~~~~
  5.      indent - changes the appearance of a C program by inserting or deleting
  6.      whitespace.
  7.  
  8. SYNOPSIS
  9. ~~~~~~~~
  10.      indent [-bad] [-bap] [-bbb] [-bc] [-bl] [-bliN] [-br] [-cN] [-cdN] [-cdb]
  11.         [-ce] [-ciN] [-cliN] [-cpN] [-cs] [-bs] [-dN] [-diN] [-fc1] [-fca]
  12.         [-gnu] [-iN] [-ipN] [-kr] [-lN] [-lp] [-nbad] [-nbap] [-nbbb]
  13.         [-nbc] [-ncdb] [-nce] [-ncs] [-nfc1] [-nfca] [-nip] [-nlp] [-npcs]
  14.         [-npsl] [-nsc] [-nsob] [-nss] [-nv] [-orig] [-npro] [-pcs] [-psl]
  15.         [-sc] [-sob] [-ss] [-st] [-T] [-tsN] [-v] [-lcN] [-version] [file]
  16.  
  17. DESCRIPTION
  18. ~~~~~~~~~~~
  19. This man page is based on the Info file indent.info, produced by
  20. Makeinfo-1.47 from the input file indent.texinfo. This is Edition 0.02,
  21. 5 May 1992, of The 'indent' Manual, for Indent Version 1.3.
  22.  
  23. Copyright (C) 1989, 1992 Free Software Foundation, Inc.
  24.  
  25. COPYING
  26. ~~~~~~~
  27. Permission is granted to make and distribute verbatim copies of this
  28. manual provided the copyright notice and this permission notice are
  29. preserved on all copies.
  30.  
  31.  
  32. INTRODUCTION
  33. ~~~~~~~~~~~~
  34. The 'indent' program can be used to make code easier to read. It can
  35. also convert from one style of writing C to another.
  36.  
  37. 'indent' understands a substantial amount about the syntax of C, but it
  38. also attempts to cope with incomplete and misformed syntax.
  39.  
  40. In version 1.2 and more recent versions, the GNU style of indenting is
  41. the default.
  42.  
  43. INVOKING INDENT
  44. ~~~~~~~~~~~~~~~
  45. As of version 1.3, the format of the 'indent' command is:
  46.  
  47.      indent [OPTIONS] [INPUT-FILES]
  48.  
  49.      indent [OPTIONS] [SINGLE-INPUT-FILE] [-o OUTPUT-FILE]
  50.  
  51. This format is different from earlier versions and other versions of
  52. 'indent'.
  53.  
  54. In the first form, one or more input files are specified. 'indent' makes
  55. a backup copy of each file, and the original file is replaced with its
  56. indented version. *Note Backup files::, for an explanation of how
  57. backups are made.
  58.  
  59. In the second form, only one input file is specified. In this case, or
  60. when the standard input is used, you may specify an output file after
  61. the '-o' option.
  62.  
  63. To cause 'indent' to write to standard output, use the '-st' option.
  64. This is only allowed when there is only one input file, or when the
  65. standard input is used.
  66.  
  67. If no input files are named, the standard input is read for input. Also,
  68. if a filename named '-' is specified, then the standard input is read.
  69.  
  70. As an example, each of the following commands will input the program
  71. 'slithy_toves.c' and write its indented text to 'slithy_toves.out':
  72.  
  73.      indent slithy_toves.c -o slithy_toves.out
  74.  
  75.      indent -st slithy_toves.c > slithy_toves.out
  76.  
  77.      cat slithy_toves.c | indent -o slithy_toves.out
  78.  
  79. Most other options to 'indent' control how programs are formatted. As of
  80. version 1.2, 'indent' also recognizes a long name for each option name. 
  81. Long options are prefixed by either '--' or '+'. '+' is being superseded
  82. by '--' to maintain consistency with the POSIX standard. In most of this
  83. document, the traditional, short names are used for the sake of brevity.
  84.  
  85. Here is another example:
  86.  
  87.      indent -br test/metabolism.c -l85
  88.  
  89. This will indent the program 'test/metabolism.c' using the '-br' and
  90. '-l85' options, write the output back to 'test/metabolism.c', and write
  91. the original contents of 'test/metabolism.c' to a backup file in the
  92. directory 'test'.
  93.  
  94. Equivalent invocations using long option names for this example would
  95. be:
  96.  
  97.      indent --braces-on-if-line --line-length185 test/metabolism.c
  98.  
  99.      indent +braces-on-if-line +line-length185 test/metabolism.c
  100.  
  101. If you find that you often use 'indent' with the same options, you may
  102. put those options into a file called '.indent.pro'. 'indent' will first
  103. look for '.indent.pro' in the current directory and use that if found. 
  104. Otherwise, 'indent' will search your home directory for '.indent.pro'
  105. and use that file if it is found. This behaviour is different from that
  106. of other versions of 'indent', which load both files if they both exist.
  107.  
  108. Command line switches are handled *after* processing '.indent.pro'. 
  109. Options specified later override arguments specified earlier, with one
  110. exception: Explicitly specified options always override background
  111. options (*note Common styles::.). You can prevent 'indent' from reading
  112. an '.indent.pro' file by specifying the '-npro' option.
  113.  
  114.  
  115. BACKUP FILES
  116. ~~~~~~~~~~~~
  117. As of version 1.3, GNU 'indent' makes GNU--style backup files, the same
  118. way GNU Emacs does. This means that either "simple" or "numbered"
  119. backup filenames may be made.
  120.  
  121. Simple backup file names are generated by appending a suffix to the
  122. original file name. The default for the this suffix is the one
  123. character string '~' (tilde). Thus, the backup file for 'python.c'
  124. would be 'python.c~'.
  125.  
  126. Instead of the default, you may specify any string as a suffix by
  127. setting the environment variable 'SIMPLE_BACKUP_SUFFIX' to your
  128. preferred suffix.
  129.  
  130. Numbered backup versions of a file 'momewraths' look like
  131. 'momewraths.c.~23~', where 23 is the version of this particular backup.
  132. When making a numbered backup of the file 'src/momewrath.c', the backup
  133. file will be named 'src/momewrath.c.~V~', where V is one greater than
  134. the highest version currently existing in the directory 'src'.
  135.  
  136. The type of backup file made is controlled by the value of the
  137. environment variable 'VERSION_CONTROL'. If it is the string 'simple',
  138. then only simple backups will be made. If its value is the string
  139. 'numbered', then numbered backups will be made. If its value is
  140. 'numbered-existing', then numbered backups will be made if there
  141. *already exist* numbered backups for the file being indented; otherwise,
  142. a simple backup is made. If 'VERSION_CONTROL' is not set, then 'indent'
  143. assumes the behaviour of 'numbered-existing'.
  144.  
  145. Other versions of 'indent' use the suffix '.BAK' in naming backup files.
  146. This behaviour can be emulated by setting 'SIMPLE_BACKUP_SUFFIX' to
  147. '.BAK'.
  148.  
  149. Note also that other versions of 'indent' make backups in the current
  150. directory, rather than in the directory of the source file as GNU
  151. 'indent' now does.
  152.  
  153.  
  154. COMMON STYLES
  155. ~~~~~~~~~~~~~
  156. There are several common styles of C code, including the GNU style, the
  157. Kernighan & Ritchie style, and the original Berkeley style. A style may
  158. be selected with a single "background" option, which specifies a set of
  159. values for all other options. However, explicitly specified options
  160. always override options implied by a background option.
  161.  
  162. As of version 1.2, the default style of GNU 'indent' is the GNU style. 
  163. Thus, it is no longer neccessary to specify the option '-gnu' to obtain
  164. this format, although doing so will not cause an error. Option settings
  165. which correspond to the GNU style are:
  166.  
  167.      -nbad -bap -nbbb -nbc -bl -bli2 -c33 -cd33 -ncdb -nce
  168.      -cli0 -cp1 -di0 -nfc1 -nfca -i2 -ip5 -lp -pcs -psl
  169.      -nsc -nsob -nss -ts8
  170.  
  171. The GNU coding style is that preferred by the GNU project. It is the
  172. style that the GNU Emacs C mode encourages and which is used in the C
  173. portions of GNU Emacs. (People interested in writing programs for
  174. Project GNU should get a copy of 'The GNU Coding Standards', which also
  175. covers semantic and portability issues such as memory usage, the size of
  176. integers, etc.)
  177.  
  178. The Kernighan & Ritchie style is used throughout their well-known book
  179. 'The C Programming Language'. It is enabled with the '-kr' option. The
  180. Kernighan & Ritchie style corresponds to the following set of options:
  181.  
  182.      -nbad -bap -nbbb -nbc -br -c33 -cd33 -ncdb -ce -ci4
  183.      -cli0 -cp33 -d0 -di1 -nfc1 -nfca -i4 -ip0 -l75 -lp
  184.      -npcs -npsl -nsc -nsob -nss -ts8
  185.  
  186. Kernighan & Ritchie style does not put comments to the right of code in
  187. the same column at all times (nor does it use only one space to the
  188. right of the code), so for this style 'indent' has arbitrarily chosen
  189. column 33.
  190.  
  191. The style of the original Berkeley 'indent' may be obtained by
  192. specifying '-orig' (or by specifyfying '--original', using the long
  193. option name). This style is equivalent to the following settings:
  194.  
  195.      -nbap -nbad -nbbb -bc -br -c33 -cd33 -cdb -ce -ci4
  196.      -cli0 -cp33 -d4 -di16 -fc1 -fca -i4 -ip4 -l75 -lp
  197.      -npcs -psl -sc -nsob -nss -ts8
  198.  
  199.  
  200. BLANK LINES
  201. ~~~~~~~~~~~
  202. Various programming styles use blank lines in different places. 'indent'
  203. has a number of options to insert or delete blank lines in specific
  204. places.
  205.  
  206. The '-bad' option causes 'indent' to force a blank line after every
  207. block of declarations. The '-nbad' option causes 'indent' not to force
  208. such blank lines.
  209.  
  210. The '-bap' option forces a blank line after every procedure body.
  211. The '-nbap' option forces no such blank line.
  212.  
  213. The '-bbb' option forces a blank line before every block comment. A
  214. block comment is one which starts in column one when formatting of such
  215. comments is disabled, or one with '-' or '*' immediately following the
  216. '/*'. The '-nbbb' option does not force such blank lines.
  217.  
  218. The '-sob' option causes 'indent' to swallow optional blank lines (that
  219. is, any optional blank lines present in the input will be removed from
  220. the output). If the '-nsob' is specified, any blank lines present in the
  221. input file will be copied to the output file.
  222.  
  223. The '-bad' option forces a blank line after every block of declarations.
  224. The '-nbad' option does not add any such blank lines.
  225.  
  226. For example, given the input
  227.  
  228.      char *foo;
  229.      char *bar;
  230.      /* This separates blocks of declarations.  */
  231.      int baz;
  232.  
  233. 'indent -bad' produces
  234.  
  235.      char *foo;
  236.      char *bar;
  237.      
  238.      /* This separates blocks of declarations.  */
  239.      int baz;
  240.  
  241. and 'indent -nbad' produces
  242.  
  243.      char *foo;
  244.      char *bar;
  245.      /* This separates blocks of declarations.  */
  246.      int baz;
  247.  
  248. The '-bap' option forces a blank line after every procedure body. For
  249. example, given the input
  250.  
  251.      int
  252.      foo ()
  253.      {
  254.        puts("Hi");
  255.      }
  256.      /* The procedure bar is even less interesting.  */
  257.      char *
  258.      bar ()
  259.      {
  260.        puts("Hello");
  261.      }
  262.  
  263. 'indent -bap' produces
  264.  
  265.      int
  266.      foo ()
  267.      {
  268.        puts ("Hi");
  269.      }
  270.      
  271.      /* The procedure bar is even less interesting.  */
  272.      char *
  273.      bar ()
  274.      {
  275.        puts ("Hello");
  276.      }
  277.  
  278. and 'indent -nbap' produces
  279.  
  280.      int
  281.      foo ()
  282.      {
  283.        puts ("Hi");
  284.      }
  285.      /* The procedure bar is even less interesting.  */
  286.      char *
  287.      bar ()
  288.      {
  289.        puts ("Hello");
  290.      }
  291.  
  292. No blank line will be added after the procedure 'foo'.
  293.  
  294. COMMENTS
  295. ~~~~~~~~
  296. Comments are no longer formatted by default as of version 1.2. This can
  297. be enabled with the '-fca' option. Doing so will cause newlines in the
  298. comment text to be ignored and the line will be filled up to the length
  299. of a line (which can be modified with '-l'). When formatting is enabled,
  300. blank lines indicate paragraph breaks.
  301.  
  302. The '-fc1' option enables the formatting of comments which begin in the
  303. first column. The '-nfc1' option disables the formatting of first column
  304. comments. When comment formatting is disabled, overall comment
  305. indentation may still be adjusted.
  306.  
  307. The indentation of comments which do not appear to the right of code is
  308. set by the '-d' option, which specifies the number of spaces to the left
  309. of the surrounding code that the comment appears. For example, '-d2'
  310. places comments two spaces to the left of code; '-d0' lines up comments
  311. with the code. The '-cdb' option controls whether the '/*' and '*/' are
  312. placed on blank lines.  With '-cdb', comments look like this:
  313.  
  314.      /*
  315.       * this is a comment
  316.       */
  317.  
  318. With '-ncdb', comments look like this:
  319.  
  320.      /* this is a comment */
  321.  
  322. '-cdb' only affects block comments, not comments to the right of code. 
  323. The default is '-ncdb'.
  324.  
  325. Comments which appear on the same line as code are placed to the right.
  326. The column in which comments on code start is controlled by the '-c'
  327. option. The column in which comments to the right of declarations start
  328. is controlled by the '-cd' option. By default, they start in the same
  329. column as comments to the right of code, which is column 33. The column
  330. number for comments to the right of '#else' and '#endif' statements is
  331. controlled by the '-cp' option. If the code on a line extends past the
  332. comment column, the comment starts further to the right, and the right
  333. margin may be automatically extended in extreme cases.
  334.  
  335. If the '-sc' option is specified, '*' is placed at the left edge of
  336. all comments. For example:
  337.  
  338.      /* This is a comment which extends from one line
  339.       * onto the next line, thus causing us to consider
  340.       * how it should continue.  */
  341.  
  342. instead of
  343.  
  344.      /* This is a comment which extends from one line
  345.         onto the next line, thus causing us to consider
  346.         how it should continue.  */
  347.  
  348. STATEMENTS
  349. ~~~~~~~~~~
  350. The '-br' or '-bl' option specifies how to format braces.
  351. The '-br' option formats braces like this:
  352.  
  353.      if (x > 0) {
  354.        x--;
  355.      }
  356.  
  357. The '-bl' option formats them like this:
  358.  
  359.      if (x > 0)
  360.        {
  361.          x--;
  362.        }
  363.  
  364. If you use the '-bl' option, you may also want to specify the '-bli'
  365. option. This option specifies the number of spaces by which braces are
  366. indented. '-bli2', the default, gives the result shown above. '-bli0'
  367. results in the following:
  368.  
  369.      if (x > 0)
  370.      {
  371.        x--;
  372.      }
  373.  
  374. If you are using the '-br' option, you probably want to also use the
  375. '-ce' option. This causes the 'else' in an if-then-else construct to
  376. cuddle up to the immediately preceding '}'. For example, with '-br -ce'
  377. you get the following:
  378.  
  379.      if (x > 0) {
  380.        x--;
  381.      } else {
  382.        fprintf (stderr, "...something wrong?\n");
  383.      }
  384.  
  385. With '-br -nce' that code would appear as
  386.  
  387.      if (x > 0) {
  388.        x--;
  389.      }
  390.      else {
  391.        fprintf (stderr, "...something wrong?\n");
  392.      }
  393.  
  394. The '-cli' option specifies the number of spaces that case labels should
  395. be indented to the right of the containing 'switch' statement.
  396.  
  397. If a semicolon is on the same line as a 'for' or 'while' statement, the
  398. '-ss' option will cause a space to be placed before the semicolon.  This
  399. emphasizes the semicolon, making it clear that the body of the 'for' or
  400. 'while' statement is an empty statement. '-nss' disables this feature.
  401.  
  402. The '-pcs' option causes a space to be placed between the name of the
  403. procedure being called and the '(' (for example, 'puts ("Hi");'.
  404. The '-npcs' option would give 'puts("Hi");').
  405.  
  406. If the '-cs' option is specified, 'indent' puts a space after a cast
  407. operator.
  408.  
  409. The '-bs' option ensures that there is a space between the keyword
  410. 'sizeof' and its argument. In some versions, this is known as the
  411. 'Bill_Shannon' option.
  412.  
  413. DECLARATIONS
  414. ~~~~~~~~~~~~
  415. By default 'indent' will line up identifiers, in the column specified by
  416. the '-di' option. For example, '-di16' makes things look like:
  417.  
  418.      int             foo;
  419.      char           *bar;
  420.  
  421. Using a small value (such as one or two) for the '-di' option can be
  422. used to cause the indentifiers to be placed in the first available
  423. position, for example
  424.  
  425.      int foo;
  426.      char *bar;
  427.  
  428. The value given to the '-di' option will still affect variables which
  429. are put on separate lines from their types, for example '-di2' will lead
  430. to
  431.  
  432.      int
  433.        foo;
  434.  
  435. If the '-bc' option is specified, a newline is forced after each comma
  436. in a declaration. For example,
  437.  
  438.      int a,
  439.        b,
  440.        c;
  441.  
  442. With the '-nbc' option this would look like
  443.  
  444.      int a, b, c;
  445.  
  446. The '-psl' option causes the type of a procedure being defined to be
  447. placed on the line before the name of the procedure. This style is
  448. required for the 'etags' program to work correctly, as well as some of
  449. the 'c-mode' functions of Emacs.
  450.  
  451. If you are not using the '-di1' option to place variables being declared
  452. immediately after their type, you need to use the '-T' option to tell
  453. 'indent' the name of all the typenames in your program that are defined
  454. by 'typedef'. '-T' can be specified more than once, and all names
  455. specified are used. For example, if your program contains
  456.  
  457.      typedef unsigned long CODE_ADDR;
  458.      typedef enum {red, blue, green} COLOR;
  459.  
  460. you would use the options '-T CODE_ADDR -T COLOR'.
  461.  
  462. INDENTATION
  463. ~~~~~~~~~~~
  464. One issue in the formatting of code is how far each line should be
  465. indented from the left margin. When the beginning of a statement such as
  466. 'if' or 'for' is encountered, the indentation level is increased by the
  467. value specified by the '-i' option. For example, use '-i8' to specify an
  468. eight character indentation for each level. When a statement is
  469. continued from a previous line, it is indented by a number of additional
  470. spaces specified by the '-ci' option. '-ci' defaults to 0.  However, if
  471. the '-lp' option is specified, and a line has a left parenthesis which
  472. is not closed on that line, then continuation lines will be lined up to
  473. start at the character position just after the left parenthesis. This
  474. processing also applies to '[' and applies to '{' when it occurs in
  475. initialization lists. For example, a piece of continued code might look
  476. like this with '-nlp -ci3' in effect:
  477.  
  478.        p1 = first_procedure (second_procedure (p2, p3),
  479.           third_procedure (p4, p5));
  480.  
  481. With '-lp' in effect the code looks somewhat clearer:
  482.  
  483.        p1 = first_procedure (second_procedure (p2, p3),
  484.                              third_procedure (p4, p5));
  485.  
  486. 'indent' assumes that tabs are placed at regular intervals of both input
  487. and output character streams. These intervals are by default 8 columns
  488. wide, but (as of version 1.2) may be changed by the '-ts' option. Tabs
  489. are treated as the equivalent number of spaces.
  490.  
  491. The indentation of type declarations in old-style function definitions
  492. is controlled by the '-ip' parameter. This is a numeric parameter
  493. specifying how many spaces to indent type declarations. For example, the
  494. default '-ip5' makes definitions look like this:
  495.  
  496.      char *
  497.      create_world (x, y, scale)
  498.           int x;
  499.           int y;
  500.           float scale;
  501.      {
  502.        . . .
  503.      }
  504.  
  505. For compatibility with other versions of indent, the option '-nip' is
  506. provided, which is equivalent to '-ip0'.
  507.  
  508. MISCELLANEOUS OPTIONS
  509. ~~~~~~~~~~~~~~~~~~~~~
  510. To find out what version of 'indent' you have, use the command 'indent
  511. -version'. This will report the version number of 'indent', without
  512. doing any of the normal processing.
  513.  
  514. The '-v' option can be used to turn on verbose mode. When in verbose
  515. mode, 'indent' reports when it splits one line of input into two more
  516. more lines of output, and gives some size statistics at completion.
  517.  
  518.  
  519. COPYRIGHT
  520. ~~~~~~~~~
  521. The following copyright notice applies to the 'indent' program. The
  522. copyright and copying permissions for this manual appear near the
  523. beginning of this document.
  524.  
  525.      Copyright (c) 1989, 1992 Free Software Foundation
  526.      Copyright (c) 1985 Sun Microsystems, Inc.
  527.      Copyright (c) 1980 The Regents of the University of California.
  528.      Copyright (c) 1976 Board of Trustees of the University of Illinois.
  529.      All rights reserved.
  530.      
  531.      Redistribution and use in source and binary forms are permitted
  532.      provided that the above copyright notice and this paragraph are
  533.      duplicated in all such forms and that any documentation,
  534.      advertising materials, and other materials related to such
  535.      distribution and use acknowledge that the software was developed
  536.      by the University of California, Berkeley, the University of Illinois,
  537.      Urbana, and Sun Microsystems, Inc.  The name of either University
  538.      or Sun Microsystems may not be used to endorse or promote products
  539.      derived from this software without specific prior written permission.
  540.      THIS SOFTWARE IS PROVIDED ''AS IS'' AND WITHOUT ANY EXPRESS OR
  541.      IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  542.      WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  543.      PURPOSE.
  544.  
  545.  
  546. OPTIONS
  547. ~~~~~~~
  548. Here is a list of all the options for 'indent', alphabetized by short
  549. option. It is followed by a cross key alphabetized by long option.
  550.  
  551. '-bad'
  552. '--blank-lines-after-declarations'
  553.      Force blank lines after the declarations.
  554.      *Note Blank lines::.
  555.  
  556. '-bap'
  557. '--blank-lines-after-procedures'
  558.      Force blank lines after procedure bodies.
  559.      *Note Blank lines::.
  560.  
  561. '-bbb'
  562. '--blank-lines-after-block-comments'
  563.      Force blank lines after block comments.
  564.      *Note Blank lines::.
  565.  
  566. '-bc'
  567. '--blank-lines-after-commas'
  568.      Force newline after comma in declaration.
  569.      *Note Declarations::.
  570.  
  571. '-bl'
  572. '--braces-after-if-line'
  573.      Put braces on line after 'if', etc.
  574.      *Note Statements::.
  575.  
  576. '-bliN'
  577. '--brace-indentN'
  578.      Indent braces N spaces.
  579.      *Note Statements::.
  580.  
  581. '-br'
  582. '--braces-on-if-line'
  583.      Put braces on line with 'if', etc. and structure declarations
  584.      *Note Statements::.
  585.  
  586. '-cN'
  587. '--comment-indentationN'
  588.      Put comments to the right of code in column N.
  589.      *Note Comments::.
  590.  
  591. '-cdN'
  592. '--declaration-comment-columnN'
  593.      Put comments to the right of the declarations in column N.
  594.      *Note Comments::.
  595.  
  596. '-cdb'
  597. '--comment-delimiters-on-blank-lines'
  598.      Put comment delimiters on blank lines.
  599.      *Note Comments::.
  600.  
  601. '-ce'
  602. '--cuddle-else'
  603.      Cuddle else and preceeding '}'.
  604.      *Note Comments::.
  605.  
  606. '-ciN'
  607. '--continuation-indentationN'
  608.      Continuation indent of N spaces.
  609.      *Note Statements::.
  610.  
  611. '-cliN'
  612. '--case-indentationN'
  613.      Case label indent of N spaces.
  614.      *Note Statements::.
  615.  
  616. '-cpN'
  617. '--else-endif-columnN'
  618.      Put comments to the right of '#else' and '#endif' statements in
  619.      column N.
  620.      *Note Comments::.
  621.  
  622. '-cs'
  623. '--space-after-cast'
  624.      Put a space after a cast operator.
  625.      *Note Statements::.
  626.  
  627. '-bs'
  628. '--blank-before-sizeof'
  629.      Put a space between 'sizeof' and its argument.
  630.      *Note Statements::
  631.  
  632. '-dN'
  633. '--line-comments-indentationN'
  634.      Set indentation of comments not to the right of code to N spaces.
  635.      *Note Comments::.
  636.  
  637. '-diN'
  638. '--declaration-indentationN'
  639.      Put variables in column N.
  640.      *Note Declarations::.
  641.  
  642. '-fc1'
  643. '--format-first-column-comments'
  644.      Format comments in the first column.
  645.      *Note Comments::.
  646.  
  647. '-fca'
  648. '--format-all-comments'
  649.      Do not disable all formatting of comments.
  650.      *Note Comments::
  651.  
  652. '-gnu'
  653. '--gnu-style'
  654.      Use GNU coding style.  This is the default.
  655.      *Note Common styles::.
  656.  
  657. '-iN'
  658. '--indent-levelN'
  659.      Set indentation level to N spaces.
  660.      *Note Indentation::.
  661.  
  662. '-ipN'
  663. '--parameter-indentationN'
  664.      Indent parameter types in old-style function definitions by N
  665.      spaces.
  666.      *Note Indentation::.
  667.  
  668. '-kr'
  669. '--k-and-r-style'
  670.      Use Kernighan & Ritchie coding style.
  671.      *Note Common styles::.
  672.  
  673. '-lN'
  674. '--line-lengthN'
  675.      Set maximum line length to N.
  676.      *Note Comments::.
  677.  
  678. '-lcN'
  679. '--comment-line-lengthN'
  680.      Set maximum line length for comment formatting to N.
  681.      *Note Comments::.
  682.  
  683. '-lp'
  684. '--continue-at-parentheses'
  685.      Line up continued lines at parentheses.
  686.      *Note Indentation::.
  687.  
  688. '-lps'
  689. '--leave-preprocessor-space'
  690.      Leave space between '#' and preprocessor directive.  *Note
  691.      Indentation::.
  692.  
  693. '-nbad'
  694. '--no-blank-lines-after-declarations'
  695.      Do not force blank lines after declarations.
  696.      *Note Blank lines::.
  697.  
  698. '-nbap'
  699. '--no-blank-lines-after-procedures'
  700.      Do not force blank lines after procedure bodies.
  701.      *Note Blank lines::.
  702.  
  703. '-nbc'
  704. '--no-blank-lines-after-commas'
  705.      Do not force newlines after commas in declarations.
  706.      *Note Declarations::.
  707.  
  708. '-ncdb'
  709. '--no-comment-delimiters-on-blank-lines'
  710.      Do not put comment delimiters on blank lines.
  711.      *Note Comments::.
  712.  
  713. '-nce'
  714. '--dont-cuddle-else'
  715.      Do not cuddle '}' and 'else'.
  716.      *Note Statements::.
  717.  
  718. '-ncs'
  719. '--no-space-after-casts'
  720.      Do not put a space after cast operators.
  721.      *Note Statements::.
  722.  
  723. '-nfc1'
  724. '--dont-format-first-column-comments'
  725.      Do not format comments in the first column as normal.
  726.      *Note Comments::.
  727.  
  728. '-nfca'
  729. '--dont-format-comments'
  730.      Do not format any comments.
  731.      *Note Comments::.
  732.  
  733. '-nip'
  734. '--no-parameter-indentation'
  735.      Zero width indentation for parameters.
  736.      *Note Indentation::
  737.  
  738. '-nlp'
  739. '--dont-line-up-parentheses'
  740.      Do not line up parentheses.
  741.      *Note Statements::.
  742.  
  743. '-npcs'
  744. '--no-space-after-function-call-names'
  745.      Do not put space after the function in function calls.
  746.      *Note Statements::.
  747.  
  748. '-npsl'
  749. '--dont-break-procedure-type'
  750.      Put the type of a procedure on the same line as its name.
  751.      *Note Declarations::.
  752.  
  753. '-nsc'
  754. '--dont-star-comments'
  755.      Do not put the '*' character at the left of comments.
  756.      *Note Comments::.
  757.  
  758. '-nsob'
  759. '--leave-optional-blank-lines'
  760.      Do not swallow optional blank lines.
  761.      *Note Blank lines::.
  762.  
  763. '-nss'
  764. '--dont-space-special-semicolon'
  765.      Do not force a space before the semicolon after certain statements.
  766.      Disables '-ss'.
  767.      *Note Statements::.
  768.  
  769. '-nv'
  770. '--no-verbosity'
  771.      Disable verbose mode. *Note Miscellaneous options::.
  772.  
  773. '-orig'
  774. '--original'
  775.      Use the original Berkeley coding style.
  776.      *Note Common styles::.
  777.  
  778. '-npro'
  779. '--ignore-profile'
  780.      Do not read '.indent.pro' files.
  781.      *Note Invoking indent::.
  782.  
  783. '-pcs'
  784. '--space-after-procedure-calls'
  785.      Insert a space between the name of the procedure being called and
  786.      the '('.
  787.      *Note Statements::.
  788.  
  789. '-psl'
  790. '--procnames-start-lines'
  791.      Put the type of a procedure on the line before its name.
  792.      *Note Declarations::.
  793.  
  794. '-sc'
  795. '--start-left-side-of-comments'
  796.      Put the '*' character at the left of comments.
  797.      *Note Comments::.
  798.  
  799. '-sob'
  800. '--swallow-optional-blank-lines'
  801.      Swallow optional blank lines.
  802.      *Note Blank lines::.
  803.  
  804. '-ss'
  805. '--space-special-semicolon'
  806.      On one-line 'for' and 'while' statments, force a blank before the
  807.      semicolon.
  808.      *Note Statements::.
  809.  
  810. '-st'
  811. '--standard-output'
  812.      Write to standard output.
  813.      *Note Invoking indent::.
  814.  
  815. '-T'
  816.      Tell 'indent' the name of typenames.
  817.      *Note Declarations::.
  818.  
  819. '-tsN'
  820. '--tab-sizeN'
  821.      Set tab size to N spaces.
  822.      *Note Indentation::.
  823.  
  824. '-v'
  825. '--verbose'
  826.      Enable verbose mode.
  827.      *Note Miscellaneous options::.
  828.  
  829. '-version'
  830.      Output the version number of 'indent'.
  831.      *Note Miscellaneous options::.
  832.  
  833.  
  834. OPTIONS CROSS-REFERENCE
  835. ~~~~~~~~~~~~~~~~~~~~~~~
  836. Here is a list of options alphabetized by long option, to help you find
  837. the corresponding short option.
  838.  
  839.      --blank-lines-after-block-comments              -bbb
  840.      --blank-lines-after-commas                      -bc
  841.      --blank-lines-after-declarations                -bad
  842.      --blank-lines-after-procedures                  -bap
  843.      --braces-after-if-line                          -bl
  844.      --brace-indent                                  -bli
  845.      --braces-on-if-line                             -br
  846.      --case-indentation                              -cliN
  847.      --comment-delimiters-on-blank-lines             -cdb
  848.      --comment-indentation                           -cN
  849.      --continuation-indentation                      -ciN
  850.      --continue-at-parentheses                       -lp
  851.      --cuddle-else                                   -ce
  852.      --declaration-comment-column                    -cdN
  853.      --declaration-indentation                       -diN
  854.      --dont-break-procedure-type                     -npsl
  855.      --dont-cuddle-else                              -nce
  856.      --dont-format-comments                          -nfca
  857.      --dont-format-first-column-comments             -nfc1
  858.      --dont-line-up-parentheses                      -nlp
  859.      --dont-space-special-semicolon                  -nss
  860.      --dont-star-comments                            -nsc
  861.      --else-endif-column                             -cpN
  862.      --format-all-comments                           -fca
  863.      --format-first-column-comments                  -fc1
  864.      --gnu-style                                     -gnu
  865.      --ignore-profile                                -npro
  866.      --indent-level                                  -iN
  867.      --k-and-r-style                                 -kr
  868.      --leave-optional-blank-lines                    -nsob
  869.      --leave-preprocessor-space                      -lps
  870.      --line-comments-indentation                     -dN
  871.      --line-length                                   -lN
  872.      --no-blank-lines-after-commas                   -nbc
  873.      --no-blank-lines-after-declarations             -nbad
  874.      --no-blank-lines-after-procedures               -nbap
  875.      --no-comment-delimiters-on-blank-lines          -ncdb
  876.      --no-space-after-casts                          -ncs
  877.      --no-parameter-indentation                      -nip
  878.      --no-space-after-function-call-names            -npcs
  879.      --no-verbosity                                  -nv
  880.      --original                                      -orig
  881.      --parameter-indentation                         -ipN
  882.      --procnames-start-lines                         -psl
  883.      --space-after-cast                              -cs
  884.      --space-after-procedure-calls                   -pcs
  885.      --space-special-semicolon                       -ss
  886.      --standard-output                               -st
  887.      --start-left-side-of-comments                   -sc
  888.      --swallow-optional-blank-lines                  -sob
  889.      --tab-size                                      -tsN
  890.      --verbose                                       -v
  891.  
  892.  
  893. RETURN VALUE
  894. ~~~~~~~~~~~~
  895.      Unknown
  896.  
  897. FILES
  898. ~~~~~
  899.      indent.pro           holds default options for indent.
  900.  
  901. AUTHOR
  902. ~~~~~~
  903.      The Free Software Foundation.
  904.  
  905. HISTORY
  906. ~~~~~~~
  907.      Derived from the UCB program "indent".
  908.