Plan 9 from Bell Labs’s /usr/web/sources/contrib/steve/root/sys/man/1/mkptypes

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.TH MKPTYPES 4
.SH NAME
mkptypes \- C prototype extractor
.SH SYNOPSIS
.B mkptypes
[
.B -ensxzA
] [
.B -p X
] 
file.c ...
.SH DESCRIPTION
.I Mkptypes
is an ANSI prototype generator that takes one or more C source code files,
and produces a list of function prototypes for the external functions defined
in the input source files. There are several options to control what is generated.
.TP
.B -e
put an explicit \fIextern\fR keyword in declarations.
.TP
.B -n
add line numbers of declarations as comments.
.TP
.B -p X
use \fIX\fR as the prototype macro's name, the default is \fI_P\fR.
.TP
.B -s
Include declarations for static as well as global functions.
.TP
.B -x
Add parameter names to prototypes.
.TP
.B -z
Add prototype macro in definition.
.TP
.B -A
define prototype macro, this generates header files that
can be compiled under ANSI or K&R C.

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].