Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
659d3b43
Commit
659d3b43
authored
Apr 12, 1996
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DJGPP v2]: Include io.h.
(main) [DJGPP v2]: Switch standard streams to binary with setmode.
parent
b696f860
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
lib-src/hexl.c
lib-src/hexl.c
+11
-0
No files found.
lib-src/hexl.c
View file @
659d3b43
...
...
@@ -2,6 +2,9 @@
#include <ctype.h>
#ifdef MSDOS
#include <fcntl.h>
#if __DJGPP__ >= 2
#include <io.h>
#endif
#endif
#define DEFAULT_GROUPING 0x01
...
...
@@ -134,8 +137,12 @@ main (argc, argv)
char
buf
[
18
];
#ifdef MSDOS
#if __DJGPP__ >= 2
setmode
(
fileno
(
stdout
),
O_BINARY
);
#else
(
stdout
)
->
_flag
&=
~
_IOTEXT
;
/* print binary */
_setmode
(
fileno
(
stdout
),
O_BINARY
);
#endif
#endif
for
(;;)
{
...
...
@@ -178,8 +185,12 @@ main (argc, argv)
else
{
#ifdef MSDOS
#if __DJGPP__ >= 2
setmode
(
fileno
(
stdout
),
O_BINARY
);
#else
(
fp
)
->
_flag
&=
~
_IOTEXT
;
/* read binary */
_setmode
(
fileno
(
fp
),
O_BINARY
);
#endif
#endif
address
=
0
;
string
[
0
]
=
' '
;
...
...
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