diff options
| author | Eli Zaretskii | 2010-04-01 17:59:46 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2010-04-01 17:59:46 +0300 |
| commit | ed68db4d2cf55caf6847151079e1b3861e5d0879 (patch) | |
| tree | a906021821c631f3d8ee4595c09e6d3afbe723df /src/s | |
| parent | 814062c76646a9dd4504ae578d7fb41891a5cab4 (diff) | |
| download | emacs-ed68db4d2cf55caf6847151079e1b3861e5d0879.tar.gz emacs-ed68db4d2cf55caf6847151079e1b3861e5d0879.zip | |
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.
Diffstat (limited to 'src/s')
| -rw-r--r-- | src/s/msdos.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/s/msdos.h b/src/s/msdos.h index 88771b9f15f..29fbdab8369 100644 --- a/src/s/msdos.h +++ b/src/s/msdos.h | |||
| @@ -30,11 +30,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 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 | ||
| @@ -97,34 +93,11 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ | |||
| 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 | 100 | ||
| 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 | |||
| 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. */ |
| @@ -133,19 +106,6 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ | |||
| 133 | 106 | ||
| 134 | #define NULL_DEVICE "nul" | 107 | #define NULL_DEVICE "nul" |
| 135 | 108 | ||
| 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 | |||
| 149 | #define HAVE_INVERSE_HYPERBOLIC | 109 | #define HAVE_INVERSE_HYPERBOLIC |
| 150 | #define FLOAT_CHECK_DOMAIN | 110 | #define FLOAT_CHECK_DOMAIN |
| 151 | 111 | ||
| @@ -166,12 +126,6 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ | |||
| 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 |
| @@ -181,9 +135,7 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ | |||
| 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 |