Mercurial > hg > xemacs-beta
comparison lib-src/b2m.c @ 442:abe6d1db359e r21-2-36
Import from CVS: tag r21-2-36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:35:02 +0200 |
parents | 84b14dcb0985 |
children | 061f4f90f874 |
comparison
equal
deleted
inserted
replaced
441:72a7cfa4a488 | 442:abe6d1db359e |
---|---|
28 #include <stdio.h> | 28 #include <stdio.h> |
29 #include <stdlib.h> | 29 #include <stdlib.h> |
30 #include <string.h> | 30 #include <string.h> |
31 #include <time.h> | 31 #include <time.h> |
32 #include <sys/types.h> | 32 #include <sys/types.h> |
33 #ifdef MSDOS | 33 #ifdef WIN32_NATIVE |
34 #include <fcntl.h> | 34 #include <fcntl.h> |
35 #endif | 35 #endif |
36 | 36 |
37 #undef TRUE | 37 #undef TRUE |
38 #define TRUE 1 | 38 #define TRUE 1 |
86 logical labels_saved, printing, header; | 86 logical labels_saved, printing, header; |
87 time_t ltoday; | 87 time_t ltoday; |
88 char *labels = NULL, *p, *today; | 88 char *labels = NULL, *p, *today; |
89 struct linebuffer data; | 89 struct linebuffer data; |
90 | 90 |
91 #ifdef MSDOS | 91 #ifdef WIN32_NATIVE |
92 _fmode = O_BINARY; /* all of files are treated as binary files */ | 92 _fmode = O_BINARY; /* all of files are treated as binary files */ |
93 #if __DJGPP__ > 1 | |
94 if (!isatty (fileno (stdout))) | 93 if (!isatty (fileno (stdout))) |
95 setmode (fileno (stdout), O_BINARY); | 94 setmode (fileno (stdout), O_BINARY); |
96 if (!isatty (fileno (stdin))) | 95 if (!isatty (fileno (stdin))) |
97 setmode (fileno (stdin), O_BINARY); | 96 setmode (fileno (stdin), O_BINARY); |
98 #else /* not __DJGPP__ > 1 */ | |
99 (stdout)->_flag &= ~_IOTEXT; | |
100 (stdin)->_flag &= ~_IOTEXT; | |
101 #endif /* not __DJGPP__ > 1 */ | |
102 #endif | 97 #endif |
103 progname = argv[0]; | 98 progname = argv[0]; |
104 | 99 |
105 if (argc != 1) | 100 if (argc != 1) |
106 { | 101 { |