home *** CD-ROM | disk | FTP | other *** search
- .EV
- .T1 proto 1 "2/6/88"
- .SH NAME
- proto \- build ANSI style prototypes from C source code.
- .SH SYNTAX
- .B proto
- [\fB\-f\fP] \fIinputfile\fP [\fIoutputfile\fp]
- .SH DESCRIPTION
- .I Proto
- builds a list of ANSI-style external declarations [\fIprototypes\fP] for all
- the functions in a given C source file.
- It produces this list in two forms:
- .nf
- #ifdef HASPROTOS
- <nice external prototype declarations>
- #else
- <old ikky external declarations for UNIX C compilers>
- #endif
- .fi
- .PP
- You can then incorporate the file generated into your .h files.
- Make sure you #define HASPROTOS iff your compiler supports
- prototypes: otherwise you'll lose all the advantages.
- .PP
- If you omit the output file from the command line,
- the standard output will be used.
- .SH OPTIONS
- The only option this program accepts is \fB-f\fP,
- which causes it to place a pretty-printed form of the
- original function declarations in the output file,
- rather than the prototypes.
- .SH PORTABILITY
- This program should work fine on any system with a C compiler.
- If it doesn't, please let me know!
- .SH AUTHOR
- Duncan White,
- Dept Of Computing,
- Imperial College,
- London,
- England.
- .SH LIMITATIONS
- The grammar used for parsing is incomplete.
- In particular, array parameters, function parameters, and structure parameters
- not disguised by \fI#define's\fP or \fItypedef's\fP will not be recognised.
- .PP
- In addition, the entire function declaration, including the types of the
- parameters, must reside on a single line for it to be recognised.
-