source: trunk/third/findutils/lib/ansi2knr.1 @ 18890

Revision 18890, 2.0 KB checked in by zacheiss, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18889, which included commits to RCS files with non-trunk default branches.
Line 
1.\" $Id: ansi2knr.1,v 1.1.1.1 2003-02-19 07:56:32 zacheiss Exp $
2.TH ANSI2KNR 1 "9 September 1998" \" -*- nroff -*-
3.SH NAME
4ansi2knr \- convert ANSI C to Kernighan & Ritchie C
5.SH SYNOPSIS
6\fBansi2knr\fR [\fB--filename\fR \fIfilename\fR] [\fIinput_file\fR [\fIoutput_file\fR]]
7.br
8.SH DESCRIPTION
9\fB--filename\fR provides the file name for the #line directive in the output,
10overriding \fIinput_file\fR (if present).
11.sp
12If no \fIinput_file\fR is supplied, input is read from stdin.
13.sp
14If no \fIoutput_file\fR is supplied, output goes to stdout.
15.sp
16There are no error messages.
17.sp
18\fBansi2knr\fR
19recognizes function definitions by seeing a non-keyword identifier at the left
20margin, followed by a left parenthesis, with a right parenthesis as the last
21character on the line, and with a left brace as the first token on the
22following line (ignoring possible intervening comments).  It will recognize a
23multi-line header provided that no intervening line ends with a left or right
24brace or a semicolon.  These algorithms ignore whitespace and comments, except
25that the function name must be the first thing on the line.
26.sp
27\fBansi2knr\fP
28also recognizes adjacent string literals and concatenates them.
29.sp
30The following constructs will confuse it:
31.br
32     - Any other construct that starts at the left margin and follows the
33above syntax (such as a macro or function call).
34.br
35     - Some macros that tinker with the syntax of the function header.
36.br
37     - String literals whose concatenation requires rewriting
38their contents; e.g. "ab\0" "07c" is concatenated to "ab\007c",
39which is not correct.
40.sp
41The --varargs switch is obsolete, and is recognized only for
42backwards compatibility.  The present version of
43\fBansi2knr\fR
44will always attempt to convert a ... argument to va_alist and va_dcl.
45.SH AUTHOR
46L. Peter Deutsch <ghost@aladdin.com> wrote the original ansi2knr and
47continues to maintain the current version; most of the code in the current
48version is his work.  ansi2knr also includes contributions by Francois
49Pinard <pinard@iro.umontreal.ca> and Jim Avera <jima@netcom.com>.
Note: See TracBrowser for help on using the repository browser.