Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
4e043ed3
Commit
4e043ed3
authored
Jun 20, 1995
by
Richard M. Stallman
Browse files
(main): On MSDOS, don't change stdout to binary, and insist on an -o option.
parent
3be2a362
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
lib-src/make-docfile.c
lib-src/make-docfile.c
+9
-2
No files found.
lib-src/make-docfile.c
View file @
4e043ed3
...
...
@@ -114,19 +114,23 @@ main (argc, argv)
progname
=
argv
[
0
];
outfile
=
stdout
;
/* Don't put CRs in the DOC file. */
#ifdef MSDOS
#if 0 /* Suspicion is that this causes hanging.
So instead we require people to use -o on MSDOS. */
_fmode = O_BINARY;
(stdout)->_flag &= ~_IOTEXT;
_setmode (fileno (stdout), O_BINARY);
#endif
outfile
=
0
;
#endif
/* MSDOS */
#ifdef WINDOWSNT
_fmode
=
O_BINARY
;
_setmode
(
fileno
(
stdout
),
O_BINARY
);
#endif
/* WINDOWSNT */
outfile
=
stdout
;
/* If first two args are -o FILE, output to FILE. */
i
=
1
;
if
(
argc
>
i
+
1
&&
!
strcmp
(
argv
[
i
],
"-o"
))
...
...
@@ -145,6 +149,9 @@ main (argc, argv)
i
+=
2
;
}
if
(
outfile
==
0
)
fatal
(
"No output file specified"
,
""
);
first_infile
=
i
;
for
(;
i
<
argc
;
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment