Initial revision

This commit is contained in:
ceriel 1987-02-04 12:45:43 +00:00
parent 1b071fe5a2
commit b536e4101d
4 changed files with 93 additions and 0 deletions

24
util/cmisc/cclash.1 Normal file
View file

@ -0,0 +1,24 @@
.TH CCLASH 1ACK
.SH NAME
cclash \- report clashing identifiers in C-programs
.SH SYNOPSIS
.B cclash [ -l<length> ] [ -c | -m ]
[ file ... ]
.SH DESCRIPTION
.I Cclash
prints all identifiers that don't differ in the first <length> characters.
The default value for <length> is 8.
.PP
The
.B -m
option indicates that #define's must be generated for clashing identifiers.
This is of course only useful if your preprocessor can distinguish between
them.
.PP
The
.B -c
option indicates that a oldname=newname line must be generated for each
clashing identifier. This is useful input for
.IR cid (1).
.SH "SEE ALSO"
cid(1)

33
util/cmisc/cid.1 Normal file
View file

@ -0,0 +1,33 @@
.TH CID 1ACK
.SH NAME
cid \- change identifiers not occurring in C comment, strings and
character constants.
.SH SYNOPSIS
.B cid
[options] [file ..]
.SH DESCRIPTION
.I Cid
copies the files, or standard input if no files are specified, to
standard output replacing the specified identifiers
by some text, defined by the caller in an option or on a file.
.br
.I Options
is a list of one or more of the following options:
.IP \fB\-D\fP\fIname\fP=\fItext\fP
.br
replace each occurence of \fIname\fP by \fItext\fP.
.I Text
may be empty, in which case the identifier is deleted.
.IP \fB\-D\fP\fIname\fP
.br
Delete all occurences of \fIname\fP.
.IP \fB\-F\fP\fIfile\fP
.br
Read substitute commands of the form "\fIname\fP=\fItext\fP", each on
a single line, from file \fIfile\fP.
.SH SEE ALSO
prid(1), cclash(1)
.SH DIAGNOSTICS
Supposed to be self explanatory.
.SH BUGS
The syntax of the substitute definitions is not (well) checked.

24
util/cmisc/mkdep.1 Normal file
View file

@ -0,0 +1,24 @@
.TH MKDEP 1ACK
.SH NAME
mkdep \- dependency generator for C-programs
.SH SYNOPSYS
.B mkdep
file ...
.SH DESCRIPTION
.I Mkdep
scans the files in the argument list for C-preprocessor lines of the form
.DS
#include "\fIfile1\fp"
.DE
and produces for each file \fIarg\fR in the argument list a line of the form
.DS
\fIarg\fR: \fIfile1\fR \fIfile2\fR ...
.DE
where \fIfile1\fR, \fIfile2\fR, etc. are filenames included by \fIarg\fR, or
by a file included by \fIarg\fR, etc.
.PP
Only files in the current directory are scanned.
.SH "SEE ALSO"
make(1)
.SH BUGS
Should be able to handle files from other directories

12
util/cmisc/prid.1 Normal file
View file

@ -0,0 +1,12 @@
.TH PRID 1ACK
.SH NAME
prid \- print identifiers in C-programs longer than a certain length
.SH SYNOPSIS
.B prid [ -l<length> ]
[ file ... ]
.SH DESCRIPTION
.I Prid
prints all identifiers with length >= <length>.
The default value for <length> is 8.
.SH "SEE ALSO"
cclash(1), cid(1)