diff --git a/util/cmisc/cclash.1 b/util/cmisc/cclash.1 new file mode 100644 index 000000000..35ece4017 --- /dev/null +++ b/util/cmisc/cclash.1 @@ -0,0 +1,24 @@ +.TH CCLASH 1ACK +.SH NAME +cclash \- report clashing identifiers in C-programs +.SH SYNOPSIS +.B cclash [ -l ] [ -c | -m ] +[ file ... ] +.SH DESCRIPTION +.I Cclash +prints all identifiers that don't differ in the first characters. +The default value for 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) diff --git a/util/cmisc/cid.1 b/util/cmisc/cid.1 new file mode 100644 index 000000000..3c1799cb1 --- /dev/null +++ b/util/cmisc/cid.1 @@ -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. diff --git a/util/cmisc/mkdep.1 b/util/cmisc/mkdep.1 new file mode 100644 index 000000000..7c42ecd54 --- /dev/null +++ b/util/cmisc/mkdep.1 @@ -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 diff --git a/util/cmisc/prid.1 b/util/cmisc/prid.1 new file mode 100644 index 000000000..99eced70d --- /dev/null +++ b/util/cmisc/prid.1 @@ -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 ] +[ file ... ] +.SH DESCRIPTION +.I Prid +prints all identifiers with length >= . +The default value for is 8. +.SH "SEE ALSO" +cclash(1), cid(1)