aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1997-01-12 04:04:52 +0000
committerSteve Price <steve@FreeBSD.org>1997-01-12 04:04:52 +0000
commit2b6dfbee74891c864b96c37653071cbe44b25b84 (patch)
tree4a61c1e92e0ee6b331885f60d29b197969feea00 /usr.bin
parentc3e3432cd3c90265d688d00619df3093b2ef141a (diff)
downloadsrc-2b6dfbee74891c864b96c37653071cbe44b25b84.tar.gz
src-2b6dfbee74891c864b96c37653071cbe44b25b84.zip
Revert the '-o output_file_name' option changes.
Notes
Notes: svn path=/head/; revision=21583
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/yacc/main.c13
-rw-r--r--usr.bin/yacc/yacc.110
2 files changed, 1 insertions, 22 deletions
diff --git a/usr.bin/yacc/main.c b/usr.bin/yacc/main.c
index 8b7f36ff027f..79b332a237e7 100644
--- a/usr.bin/yacc/main.c
+++ b/usr.bin/yacc/main.c
@@ -144,7 +144,7 @@ set_signals()
usage()
{
- fprintf(stderr, "usage: %s [-dlrtv] [-b file_prefix] [-o output_file_name] [-p symbol_prefix] filename\n", myname);
+ fprintf(stderr, "usage: %s [-dlrtv] [-b file_prefix] [-p symbol_prefix] filename\n", myname);
exit(1);
}
@@ -189,15 +189,6 @@ char *argv[];
lflag = 1;
break;
- case 'o':
- if (*++s)
- output_file_name = s;
- else if (++i < argc)
- output_file_name = argv[i];
- else
- usage();
- continue;
-
case 'p':
if (*++s)
symbol_prefix = s;
@@ -325,13 +316,11 @@ create_file_names()
len = strlen(file_prefix);
- if (!output_file_name) {
output_file_name = MALLOC(len + 7);
if (output_file_name == 0)
no_space();
strcpy(output_file_name, file_prefix);
strcpy(output_file_name + len, OUTPUT_SUFFIX);
- }
if (rflag)
{
diff --git a/usr.bin/yacc/yacc.1 b/usr.bin/yacc/yacc.1
index 3175a22cd35c..787dc0043fe0 100644
--- a/usr.bin/yacc/yacc.1
+++ b/usr.bin/yacc/yacc.1
@@ -86,16 +86,6 @@ If the \fB-l\fR option is specified,
will not insert the #line directives.
Any #line directives specified by the user will be retained.
.TP
-\fB-o \fIoutput_file_name\fR
-The
-.B -o
-option causes
-.I yacc
-to write the generated code to
-.IR output_file_name
-instead of the default file,
-.IR y.tab.c .
-.TP
\fB-p \fIsymbol_prefix\fR
The
.B -p