PageRenderTime 16ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

Unknown | 36 lines | 36 code | 0 blank | 0 comment | 0 complexity | 5e1899cee05f8b6f22a67923e8137999 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, BSD-3-Clause, LGPL-2.0, LGPL-2.1, BSD-2-Clause, 0BSD, JSON, AGPL-1.0, GPL-2.0
 1.TH ANSI2KNR 1 "19 Jan 1996"
 3ansi2knr \- convert ANSI C to Kernighan & Ritchie C
 5.I ansi2knr
 6[--varargs] input_file [output_file]
 8If no output_file is supplied, output goes to stdout.
10There are no error messages.
12.I ansi2knr
13recognizes function definitions by seeing a non-keyword identifier at the left
14margin, followed by a left parenthesis, with a right parenthesis as the last
15character on the line, and with a left brace as the first token on the
16following line (ignoring possible intervening comments).  It will recognize a
17multi-line header provided that no intervening line ends with a left or right
18brace or a semicolon.  These algorithms ignore whitespace and comments, except
19that the function name must be the first thing on the line.
21The following constructs will confuse it:
23     - Any other construct that starts at the left margin and follows the
24above syntax (such as a macro or function call).
26     - Some macros that tinker with the syntax of the function header.
28The --varargs switch is obsolete, and is recognized only for
29backwards compatibility.  The present version of
30.I ansi2knr
31will always attempt to convert a ... argument to va_alist and va_dcl.
33L. Peter Deutsch <> wrote the original ansi2knr and
34continues to maintain the current version; most of the code in the current
35version is his work.  ansi2knr also includes contributions by Francois
36Pinard <> and Jim Avera <>.