aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-08-01 08:19:51 -0700
committerGlenn Morris2012-08-01 08:19:51 -0700
commitfe3cc7713a8ed1263826543ca3a87fdf2475630f (patch)
tree973ebe144da191026fcd04ed4ad369b4ca7bfe8d
parentae21c275a81e4dc5a1ce2f9a9be1224ab0c169bc (diff)
downloademacs-fe3cc7713a8ed1263826543ca3a87fdf2475630f.tar.gz
emacs-fe3cc7713a8ed1263826543ca3a87fdf2475630f.zip
Remove src/s/msdos.h
* msdos/sed2v2.inp (MSDOS, DOS_NT, FLOAT_CHECK_DOMAIN) (HAVE_INVERSE_HYPERBOLIC, DEVICE_SEP, IS_DIRECTORY_SEP, IS_ANY_SEP) (INTERNAL_TERMINAL, NULL_DEVICE, SEPCHAR, USER_FULL_NAME) (_setjmp, _longjmp): Move here from src/s/msdos.h. (config_opsysfile, config_machfile): Remove. * msdos/sed1v2.inp (M_FILE, S_FILE): Remove. * msdos/mainmake.v2 (TAGS tags): Remove src/s/msdos.h. * src/s/msdos.h: Remove file. * src/conf_post.h [MSDOS]: New section, moved from s/msdos.h. * src/Makefile.in (S_FILE): Remove. (config_h): Remove S_FILE.
-rw-r--r--msdos/ChangeLog10
-rw-r--r--msdos/mainmake.v23
-rw-r--r--msdos/sed1v2.inp2
-rw-r--r--msdos/sed2v2.inp15
-rw-r--r--src/ChangeLog7
-rw-r--r--src/Makefile.in4
-rw-r--r--src/conf_post.h40
-rw-r--r--src/s/msdos.h114
8 files changed, 72 insertions, 123 deletions
diff --git a/msdos/ChangeLog b/msdos/ChangeLog
index 503c7cbf8a1..ebd4b137948 100644
--- a/msdos/ChangeLog
+++ b/msdos/ChangeLog
@@ -1,3 +1,13 @@
12012-08-01 Glenn Morris <rgm@gnu.org>
2
3 * sed2v2.inp (MSDOS, DOS_NT, FLOAT_CHECK_DOMAIN)
4 (HAVE_INVERSE_HYPERBOLIC, DEVICE_SEP, IS_DIRECTORY_SEP, IS_ANY_SEP)
5 (INTERNAL_TERMINAL, NULL_DEVICE, SEPCHAR, USER_FULL_NAME)
6 (_setjmp, _longjmp): Move here from src/s/msdos.h.
7 (config_opsysfile, config_machfile): Remove.
8 * sed1v2.inp (M_FILE, S_FILE): Remove.
9 * mainmake.v2 (TAGS tags): Remove src/s/msdos.h.
10
12012-07-31 Glenn Morris <rgm@gnu.org> 112012-07-31 Glenn Morris <rgm@gnu.org>
2 12
3 * sed1v2.inp (S_FILE): Update for format change. 13 * sed1v2.inp (S_FILE): Update for format change.
diff --git a/msdos/mainmake.v2 b/msdos/mainmake.v2
index e1e646a855c..3df6ca17827 100644
--- a/msdos/mainmake.v2
+++ b/msdos/mainmake.v2
@@ -161,8 +161,7 @@ TAGS tags: lib-src FRC
161 cd src 161 cd src
162 ../bin/etags --include=../lisp/TAGS \ 162 ../bin/etags --include=../lisp/TAGS \
163 --regex='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \ 163 --regex='/[ ]*DEFVAR_[A-Z_ (]+"\([^"]+\)"/' \
164 $(CURDIR)/src/*.c $(CURDIR)/src/*.h \ 164 $(CURDIR)/src/*.c $(CURDIR)/src/*.h
165 $(CURDIR)/src/s/msdos.h
166 cd .. 165 cd ..
167 ./bin/etags --include=src/TAGS 166 ./bin/etags --include=src/TAGS
168 167
diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp
index 1fd81ba0e4b..0ed88931691 100644
--- a/msdos/sed1v2.inp
+++ b/msdos/sed1v2.inp
@@ -128,8 +128,6 @@ s/\.h\.in/.h-in/
128/^DEPFLAGS *=/s/@DEPFLAGS@// 128/^DEPFLAGS *=/s/@DEPFLAGS@//
129/^MKDEPDIR *=/s/@MKDEPDIR@// 129/^MKDEPDIR *=/s/@MKDEPDIR@//
130/^version *=/s/@[^@\n]*@// 130/^version *=/s/@[^@\n]*@//
131/^M_FILE *=/s!@M_FILE@!$(srcdir)/m/intel386.h!
132/^S_FILE *=/s!=!= $(srcdir)/s/msdos.h!
133/^@SET_MAKE@$/s/@SET_MAKE@// 131/^@SET_MAKE@$/s/@SET_MAKE@//
134/^ [ ]*\$(libsrc)\/make-docfile.*>.*\/DOC/s!make-docfile!make-docfile -o $(etc)/DOC! 132/^ [ ]*\$(libsrc)\/make-docfile.*>.*\/DOC/s!make-docfile!make-docfile -o $(etc)/DOC!
135/^ [ ]*\$(libsrc)\/make-docfile.*>.*gl-tmp/s!make-docfile!make-docfile -o gl-tmp! 133/^ [ ]*\$(libsrc)\/make-docfile.*>.*gl-tmp/s!make-docfile!make-docfile -o gl-tmp!
diff --git a/msdos/sed2v2.inp b/msdos/sed2v2.inp
index 214480a27ab..c8abf36db39 100644
--- a/msdos/sed2v2.inp
+++ b/msdos/sed2v2.inp
@@ -26,7 +26,11 @@
26#define NSIG 320\ 26#define NSIG 320\
27#endif 27#endif
28 28
29/^#undef MSDOS *$/s/^.*$/#define MSDOS/
30/^#undef DOS_NT *$/s/^.*$/#define DOS_NT/
31/^#undef FLOAT_CHECK_DOMAIN *$/s/^.*$/#define FLOAT_CHECK_DOMAIN/
29/^#undef HAVE_ALLOCA *$/s/^.*$/#define HAVE_ALLOCA 1/ 32/^#undef HAVE_ALLOCA *$/s/^.*$/#define HAVE_ALLOCA 1/
33/^#undef HAVE_INVERSE_HYPERBOLIC *$/s/^.*$/#define HAVE_INVERSE_HYPERBOLIC/
30/^#undef HAVE_SETITIMER *$/s/^.*$/#define HAVE_SETITIMER 1/ 34/^#undef HAVE_SETITIMER *$/s/^.*$/#define HAVE_SETITIMER 1/
31/^#undef HAVE_STRUCT_UTIMBUF *$/s/^.*$/#define HAVE_STRUCT_UTIMBUF 1/ 35/^#undef HAVE_STRUCT_UTIMBUF *$/s/^.*$/#define HAVE_STRUCT_UTIMBUF 1/
32/^#undef LOCALTIME_CACHE *$/s/^.*$/#define LOCALTIME_CACHE 1/ 36/^#undef LOCALTIME_CACHE *$/s/^.*$/#define LOCALTIME_CACHE 1/
@@ -80,6 +84,15 @@
80/^#undef HAVE_SIGNED_WINT_T *$/s/^.*$/#define HAVE_SIGNED_WINT_T 1/ 84/^#undef HAVE_SIGNED_WINT_T *$/s/^.*$/#define HAVE_SIGNED_WINT_T 1/
81/^#undef HAVE_UNSIGNED_LONG_LONG_INT *$/s/^.*$/#define HAVE_UNSIGNED_LONG_LONG_INT 1/ 85/^#undef HAVE_UNSIGNED_LONG_LONG_INT *$/s/^.*$/#define HAVE_UNSIGNED_LONG_LONG_INT 1/
82/^#under HAVE_WCHAR_H *$/s/^.*$/#define HAVE_WCHAR_H 1/ 86/^#under HAVE_WCHAR_H *$/s/^.*$/#define HAVE_WCHAR_H 1/
87/^#undef DEVICE_SEP *$/s/^.*$/#define DEVICE_SEP ':'/
88/^#undef IS_DIRECTORY_SEP *$/s/^.*$/#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')/
89/^#undef IS_ANY_SEP *$/s/^.*$/#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))/
90/^#undef INTERNAL_TERMINAL *$/s/^.*$/#define INTERNAL_TERMINAL "pc|bios|IBM PC with color display::co#80:li#25:Co#16:pa#256:km:ms:cm=<CM>:cl=<CL>:ce=<CE>::se=</SO>:so=<SO>:us=<UL>:ue=</UL>:md=<BD>:mh=<DIM>:mb=<BL>:mr=<RV>:me=<NV>::AB=<BG %d>:AF=<FG %d>:op=<DefC>:"/
91/^#undef NULL_DEVICE *$/s/^.*$/#define NULL_DEVICE "nul"/
92/^#undef SEPCHAR *$/s/^.*$/#define SEPCHAR ';'/
93/^#undef USER_FULL_NAME *$/s/^.*$/#define USER_FULL_NAME (getenv ("NAME"))/
94/^#undef _setjmp/s/^.*$/#define _setjmp setjmp/
95/^#undef _longjmp/s/^.*$/#define _longjmp longjmp/
83/^#undef inline/s/^.*$/#define inline __inline__/ 96/^#undef inline/s/^.*$/#define inline __inline__/
84/^#undef my_strftime/s/^.*$/#define my_strftime nstrftime/ 97/^#undef my_strftime/s/^.*$/#define my_strftime nstrftime/
85/^#undef restrict/s/^.*$/#define restrict __restrict/ 98/^#undef restrict/s/^.*$/#define restrict __restrict/
@@ -90,8 +103,6 @@
90s/^#undef STACK_DIRECTION *$/#define STACK_DIRECTION -1/ 103s/^#undef STACK_DIRECTION *$/#define STACK_DIRECTION -1/
91s/^#undef EMACS_CONFIGURATION *$/#define EMACS_CONFIGURATION "i386-pc-msdosdjgpp"/ 104s/^#undef EMACS_CONFIGURATION *$/#define EMACS_CONFIGURATION "i386-pc-msdosdjgpp"/
92s/^#undef EMACS_CONFIG_OPTIONS *$/#define EMACS_CONFIG_OPTIONS "msdos"/ 105s/^#undef EMACS_CONFIG_OPTIONS *$/#define EMACS_CONFIG_OPTIONS "msdos"/
93s!^#undef config_opsysfile *$!#define config_opsysfile "s/msdos.h"!
94s!^#undef config_machfile *$!#define config_machfile "m/intel386.h"!
95s/^#undef PROTOTYPES *$/#define PROTOTYPES 1/ 106s/^#undef PROTOTYPES *$/#define PROTOTYPES 1/
96s/^#undef POINTER_TYPE *$/#define POINTER_TYPE void/ 107s/^#undef POINTER_TYPE *$/#define POINTER_TYPE void/
97/^#undef HAVE_INTTYPES_H/c\ 108/^#undef HAVE_INTTYPES_H/c\
diff --git a/src/ChangeLog b/src/ChangeLog
index 97e4d71baab..3640524b410 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12012-08-01 Glenn Morris <rgm@gnu.org>
2
3 * s/msdos.h: Remove file.
4 * conf_post.h [MSDOS]: New section, moved from s/msdos.h.
5 * Makefile.in (S_FILE): Remove.
6 (config_h): Remove S_FILE.
7
12012-08-01 Juanma Barranquero <lekktu@gmail.com> 82012-08-01 Juanma Barranquero <lekktu@gmail.com>
2 9
3 * s/ms-w32.h (DEVICE_SEP, IS_DIRECTORY_SEP, IS_ANY_SEP): 10 * s/ms-w32.h (DEVICE_SEP, IS_DIRECTORY_SEP, IS_ANY_SEP):
diff --git a/src/Makefile.in b/src/Makefile.in
index b8298dfa101..687b3ce9aac 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -56,9 +56,7 @@ lwlibdir = ../lwlib
56lispdir = ../lisp 56lispdir = ../lisp
57 57
58# Configuration files for .o files to depend on. 58# Configuration files for .o files to depend on.
59# MS-DOS sets S_FILE non-nil. 59config_h = config.h conf_post.h
60S_FILE =
61config_h = config.h conf_post.h $(S_FILE)
62 60
63bootstrap_exe = $(abs_builddir)/bootstrap-emacs$(EXEEXT) 61bootstrap_exe = $(abs_builddir)/bootstrap-emacs$(EXEEXT)
64 62
diff --git a/src/conf_post.h b/src/conf_post.h
index c4a27c10d85..c69e961067e 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -74,6 +74,46 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
74#define vfork fork 74#define vfork fork
75#endif /* DARWIN_OS */ 75#endif /* DARWIN_OS */
76 76
77#ifdef MSDOS
78#ifndef __DJGPP__
79You lose; /* Emacs for DOS must be compiled with DJGPP */
80#endif
81#define _NAIVE_DOS_REGS
82
83/* Start of gnulib-related stuff */
84
85/* lib/ftoastr.c wants strtold, but DJGPP only has _strtold. DJGPP >
86 2.03 has it, but it also has _strtold as a stub that jumps to
87 strtold, so use _strtold in all versions. */
88#define strtold _strtold
89
90#if __DJGPP__ > 2 || __DJGPP_MINOR__ > 3
91# define HAVE_LSTAT 1
92#else
93# define lstat stat
94#endif
95/* End of gnulib-related stuff. */
96
97/* Define one of these for easier conditionals. */
98#ifdef HAVE_X_WINDOWS
99/* We need a little extra space, see ../../lisp/loadup.el and the
100 commentary below, in the non-X branch. The 140KB number was
101 measured on GNU/Linux and on MS-Windows. */
102#define SYSTEM_PURESIZE_EXTRA (-170000+140000)
103#else
104/* We need a little extra space, see ../../lisp/loadup.el.
105 As of 20091024, DOS-specific files use up 62KB of pure space. But
106 overall, we end up wasting 130KB of pure space, because
107 BASE_PURESIZE starts at 1.47MB, while we need only 1.3MB (including
108 non-DOS specific files and load history; the latter is about 55K,
109 but depends on the depth of the top-level Emacs directory in the
110 directory tree). Given the unknown policy of different DPMI
111 hosts regarding loading of untouched pages, I'm not going to risk
112 enlarging Emacs footprint by another 100+ KBytes. */
113#define SYSTEM_PURESIZE_EXTRA (-170000+65000)
114#endif
115#endif MSDOS /* MSDOS */
116
77/* We have to go this route, rather than the old hpux9 approach of 117/* We have to go this route, rather than the old hpux9 approach of
78 renaming the functions via macros. The system's stdlib.h has fully 118 renaming the functions via macros. The system's stdlib.h has fully
79 prototyped declarations, which yields a conflicting definition of 119 prototyped declarations, which yields a conflicting definition of
diff --git a/src/s/msdos.h b/src/s/msdos.h
deleted file mode 100644
index 15112dad7a7..00000000000
--- a/src/s/msdos.h
+++ /dev/null
@@ -1,114 +0,0 @@
1/* System description file for MS-DOS
2
3Copyright (C) 1993, 1996-1997, 2001-2012 Free Software Foundation, Inc.
4
5This file is part of GNU Emacs.
6
7GNU Emacs is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
20/* Note: lots of stuff here was taken from s-msdos.h in demacs. */
21
22
23/* Define symbols to identify the version of Unix this is.
24 Define all the symbols that apply correctly. */
25#ifndef MSDOS
26#define MSDOS
27#endif
28
29#ifndef __DJGPP__
30You lose; /* Emacs for DOS must be compiled with DJGPP */
31#endif
32
33#define DOS_NT /* MSDOS or WINDOWSNT */
34
35/* subprocesses should be defined if you want to have code for
36 asynchronous subprocesses (as used in M-x compile and M-x shell).
37 This is the only system that needs this. */
38#undef subprocesses
39
40/* Here, on a separate page, add any special hacks needed to make
41 Emacs work on this system. For example, you might define certain
42 system call names that don't exist on your system, or that do
43 different things on your system and must be used only through an
44 encapsulation (which you should place, by convention, in sysdep.c). */
45
46/* This overrides the default value on editfns.c, since DJGPP
47 does not have pw->pw_gecos. */
48#define USER_FULL_NAME (getenv ("NAME"))
49
50/* setjmp and longjmp can safely replace _setjmp and _longjmp,
51 but they will run slower. */
52#define _setjmp setjmp
53#define _longjmp longjmp
54
55#define _NAIVE_DOS_REGS
56
57/* Used by emacs.c:decode_env_path. */
58#define SEPCHAR ';'
59
60/* Used by callproc.c (and process.c, but in the part not compiled on
61 MSDOS). The default is defined on process.h. */
62#define NULL_DEVICE "nul"
63
64/* Used by floatfns.c. */
65#define HAVE_INVERSE_HYPERBOLIC
66#define FLOAT_CHECK_DOMAIN
67
68/* Start of gnulib-related stuff */
69
70/* lib/ftoastr.c wants strtold, but DJGPP only has _strtold. DJGPP >
71 2.03 has it, but it also has _strtold as a stub that jumps to
72 strtold, so use _strtold in all versions. */
73#define strtold _strtold
74
75#if __DJGPP__ > 2 || __DJGPP_MINOR__ > 3
76# define HAVE_LSTAT 1
77#else
78# define lstat stat
79#endif
80
81/* End of gnulib-related stuff. */
82
83/* When $TERM is "internal" then this is substituted: */
84#define INTERNAL_TERMINAL "pc|bios|IBM PC with color display:\
85:co#80:li#25:Co#16:pa#256:km:ms:cm=<CM>:cl=<CL>:ce=<CE>:\
86:se=</SO>:so=<SO>:us=<UL>:ue=</UL>:md=<BD>:mh=<DIM>:mb=<BL>:mr=<RV>:me=<NV>:\
87:AB=<BG %d>:AF=<FG %d>:op=<DefC>:"
88
89/* Define this to be the separator between devices and paths. Used by
90 lisp.h to define IS_DEVICE_SEP. */
91#define DEVICE_SEP ':'
92
93/* We'll support either convention of slashes on MSDOS. */
94#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\')
95#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))
96
97/* Define one of these for easier conditionals. */
98#ifdef HAVE_X_WINDOWS
99/* We need a little extra space, see ../../lisp/loadup.el and the
100 commentary below, in the non-X branch. The 140KB number was
101 measured on GNU/Linux and on MS-Windows. */
102#define SYSTEM_PURESIZE_EXTRA (-170000+140000)
103#else
104/* We need a little extra space, see ../../lisp/loadup.el.
105 As of 20091024, DOS-specific files use up 62KB of pure space. But
106 overall, we end up wasting 130KB of pure space, because
107 BASE_PURESIZE starts at 1.47MB, while we need only 1.3MB (including
108 non-DOS specific files and load history; the latter is about 55K,
109 but depends on the depth of the top-level Emacs directory in the
110 directory tree). Given the unknown policy of different DPMI
111 hosts regarding loading of untouched pages, I'm not going to risk
112 enlarging Emacs footprint by another 100+ KBytes. */
113#define SYSTEM_PURESIZE_EXTRA (-170000+65000)
114#endif