From 280d7a79be32b41b7250885f7516ddbfbc3848e8 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 6 Jun 1990 16:00:28 +0000 Subject: [PATCH] change flag -s to -i --- lang/cem/cemcom/cemcom.1 | 6 +++--- lang/cem/cemcom/main.c | 2 +- lang/cem/cemcom/options | 2 +- lang/cem/cemcom/options.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lang/cem/cemcom/cemcom.1 b/lang/cem/cemcom/cemcom.1 index 12bbffc2a..571a31d9d 100644 --- a/lang/cem/cemcom/cemcom.1 +++ b/lang/cem/cemcom/cemcom.1 @@ -43,16 +43,16 @@ and at each return to call the routine .BE procexit . These routines are supplied with one parameter, a pointer to a string containing the name of the procedure. -.IP -\fBA\fR[\fIfile\fR] +.IP \fB\-A\fR[\fIfile\fR] .br if \fIfile\fR is not given, generate a list of makefile dependencies and write them to the standard output. If \fIfile\fP is given, generate the list of makefile dependencies on file \fIfile\fP. -.IP -\fBs\fR +.IP \fB\-i\fR when generating makefile dependencies, do not include files from /usr/include. -.IP -\fBm\fR +.IP \fB\-m\fR when generating makefile dependencies, generate them in the following format: .RS .IP "file.o: file1.h" diff --git a/lang/cem/cemcom/main.c b/lang/cem/cemcom/main.c index 620256849..eef89f83c 100644 --- a/lang/cem/cemcom/main.c +++ b/lang/cem/cemcom/main.c @@ -192,7 +192,7 @@ char *s; dependency(s, source) char *s, *source; { - if (options['s'] && !strncmp(s, "/usr/include/", 13)) { + if (options['i'] && !strncmp(s, "/usr/include/", 13)) { return; } if (options['m'] && source) { diff --git a/lang/cem/cemcom/options b/lang/cem/cemcom/options index 3f0ab959c..b14bdc686 100644 --- a/lang/cem/cemcom/options +++ b/lang/cem/cemcom/options @@ -4,6 +4,7 @@ C while running preprocessor, copy comment d perform a small dataflow analysis D see identifier following as a macro E run preprocessor only +i suppress /usr/include include files in dependency list I expand include table with directory name following m generate file.o: file1.h format dependency lines M set identifier length @@ -12,7 +13,6 @@ L don't generate linenumbers and filename indications p trace P in running the preprocessor do not output '# line' lines R restricted C -s suppress /usr/include include files in dependency list T take path following as directory for storing temporary file(s) U undefine predefined name V set objectsize and alignment requirements diff --git a/lang/cem/cemcom/options.c b/lang/cem/cemcom/options.c index 57032699c..270ad0ca8 100644 --- a/lang/cem/cemcom/options.c +++ b/lang/cem/cemcom/options.c @@ -96,7 +96,7 @@ next_option: /* to allow combined one-char options */ dep_file = text; } break; - case 's': + case 'i': case 'm': options[opt] = 1; break; -- 2.34.1