Mercurial > emacs
comparison src/s/msdos.h @ 107733:84b961690802
Remove support for DJGPP v1.x (bug#5813).
src/:
w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
s/msdos.h:
unexec.c (make_hdr, copy_text_and_data):
sysdep.c (wait_for_termination, sys_subshell):
msdos.c (dos_set_window_size, msdos_set_cursor_shape)
(IT_set_terminal_modes):
(__write, _rename, gethostname, gettimeofday, alarm, fork, kill)
(dos_ttraw, dos_ttcooked, run_msdos_command, abort): Remove DJGPP
v1.x code and tests of the value of __DJGPP__.
(nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
compatibility code.
lread.c:
gmalloc.c (memalign):
fileio.c (Fcopy_file, check_executable, Ffile_modes):
emacs.c (main):
dosfns.c (init_dosfns):
dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
msdos/:
sed3.inp:
sed2.inp:
sed1.inp:
mainmake: Files removed.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Thu, 01 Apr 2010 17:59:46 +0300 |
parents | 1d1d5d9bd884 |
children | 1f5000fd5ff7 |
comparison
equal
deleted
inserted
replaced
107732:dc45468b3140 | 107733:84b961690802 |
---|---|
28 | 28 |
29 #ifndef MSDOS | 29 #ifndef MSDOS |
30 #define MSDOS | 30 #define MSDOS |
31 #endif | 31 #endif |
32 | 32 |
33 #ifdef __GO32__ | |
34 #ifndef __DJGPP__ | 33 #ifndef __DJGPP__ |
35 #define __DJGPP__ 1 /* V2 defines __DJGPP__ == 2 */ | |
36 #endif | |
37 #else | |
38 You lose; /* Emacs for DOS must be compiled with DJGPP */ | 34 You lose; /* Emacs for DOS must be compiled with DJGPP */ |
39 #endif | 35 #endif |
40 | 36 |
41 #define DOS_NT /* MSDOS or WINDOWSNT */ | 37 #define DOS_NT /* MSDOS or WINDOWSNT */ |
42 #undef BSD_SYSTEM | 38 #undef BSD_SYSTEM |
95 but they will run slower. */ | 91 but they will run slower. */ |
96 | 92 |
97 #define _setjmp setjmp | 93 #define _setjmp setjmp |
98 #define _longjmp longjmp | 94 #define _longjmp longjmp |
99 | 95 |
100 #if __DJGPP__ < 2 | |
101 | |
102 /* New chdir () routine. | |
103 DJGPP v2.0 and later doesn't need it because its chdir() does | |
104 set the drive itself. */ | |
105 #ifdef chdir | |
106 #undef chdir | |
107 #endif | |
108 #define chdir sys_chdir | |
109 | |
110 #define LIBS_SYSTEM -lpc /* isn't required in DJGPP v2.0, either */ | |
111 | |
112 #endif /* __DJGPP__ < 2 */ | |
113 | |
114 #if __DJGPP__ > 1 | |
115 | |
116 #define DATA_START (&etext + 1) | 96 #define DATA_START (&etext + 1) |
117 #define TEXT_START &start | 97 #define TEXT_START &start |
118 | 98 |
119 #define _NAIVE_DOS_REGS | 99 #define _NAIVE_DOS_REGS |
120 | |
121 #else /* not __DJGPP__ > 1 */ | |
122 | |
123 /* This somehow needs to be defined even though we use COFF. */ | |
124 #define TEXT_START -1 | |
125 | |
126 #endif /* not __DJGPP__ > 1 */ | |
127 | 100 |
128 #define ORDINARY_LINK | 101 #define ORDINARY_LINK |
129 | 102 |
130 /* command.com does not understand `...` so we define this. */ | 103 /* command.com does not understand `...` so we define this. */ |
131 #define LIB_GCC -Lgcc | 104 #define LIB_GCC -Lgcc |
132 #define SEPCHAR ';' | 105 #define SEPCHAR ';' |
133 | 106 |
134 #define NULL_DEVICE "nul" | 107 #define NULL_DEVICE "nul" |
135 | |
136 #if __DJGPP__ < 2 | |
137 #define O_RDONLY 0x0001 | |
138 #define O_WRONLY 0x0002 | |
139 #define O_RDWR 0x0004 | |
140 #define O_CREAT 0x0100 | |
141 #define O_TRUNC 0x0200 | |
142 #define O_EXCL 0x0400 | |
143 #define O_APPEND 0x0800 | |
144 #define O_TEXT 0x4000 | |
145 #define O_BINARY 0x8000 | |
146 #define NO_MATHERR | |
147 #endif | |
148 | 108 |
149 #define HAVE_INVERSE_HYPERBOLIC | 109 #define HAVE_INVERSE_HYPERBOLIC |
150 #define FLOAT_CHECK_DOMAIN | 110 #define FLOAT_CHECK_DOMAIN |
151 | 111 |
152 /* When $TERM is "internal" then this is substituted: */ | 112 /* When $TERM is "internal" then this is substituted: */ |
164 | 124 |
165 /* We'll support either convention on MSDOG. */ | 125 /* We'll support either convention on MSDOG. */ |
166 #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\') | 126 #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\') |
167 #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_)) | 127 #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_)) |
168 | 128 |
169 /* Call init_gettimeofday when TZ changes. */ | |
170 #if __DJGPP__ < 2 | |
171 #define LOCALTIME_CACHE | |
172 #define tzset init_gettimeofday | |
173 #endif | |
174 | |
175 /* bcopy under djgpp is quite safe */ | 129 /* bcopy under djgpp is quite safe */ |
176 #define GAP_USE_BCOPY | 130 #define GAP_USE_BCOPY |
177 #define BCOPY_UPWARD_SAFE 1 | 131 #define BCOPY_UPWARD_SAFE 1 |
178 #define BCOPY_DOWNWARD_SAFE 1 | 132 #define BCOPY_DOWNWARD_SAFE 1 |
179 | 133 |
180 /* Mode line description of a buffer's type. */ | 134 /* Mode line description of a buffer's type. */ |
181 #define MODE_LINE_BINARY_TEXT(buf) (NILP(buf->buffer_file_type) ? "T" : "B") | 135 #define MODE_LINE_BINARY_TEXT(buf) (NILP(buf->buffer_file_type) ? "T" : "B") |
182 | 136 |
183 /* Do we have POSIX signals? */ | 137 /* Do we have POSIX signals? */ |
184 #if __DJGPP__ > 1 | |
185 #define POSIX_SIGNALS | 138 #define POSIX_SIGNALS |
186 #endif | |
187 | 139 |
188 /* We have (the code to control) a mouse. */ | 140 /* We have (the code to control) a mouse. */ |
189 #define HAVE_MOUSE | 141 #define HAVE_MOUSE |
190 | 142 |
191 /* We canuse mouse menus. */ | 143 /* We canuse mouse menus. */ |