aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.bat27
-rw-r--r--lisp/eshell/esh-cmd.el4
-rw-r--r--lisp/international/mule-cmds.el2
-rw-r--r--lisp/man.el4
-rw-r--r--lisp/progmodes/compile.el2
-rw-r--r--lisp/term/internal.el30
-rw-r--r--lisp/textmodes/ispell.el2
-rw-r--r--lisp/vc/diff.el2
-rw-r--r--lisp/window.el21
-rw-r--r--msdos/sed1v2.inp119
-rw-r--r--msdos/sed2v2.inp7
-rw-r--r--msdos/sed3v2.inp13
-rw-r--r--msdos/sed6.inp28
-rw-r--r--msdos/sedadmin.inp14
-rw-r--r--msdos/sedleim.inp10
-rw-r--r--msdos/sedlibmk.inp34
-rw-r--r--msdos/sedlisp.inp4
-rw-r--r--src/atimer.c4
-rw-r--r--src/conf_post.h3
-rw-r--r--src/deps.mk4
-rw-r--r--src/dosfns.h4
-rw-r--r--src/emacs.c1
-rw-r--r--src/filelock.c19
-rw-r--r--src/fns.c5
-rw-r--r--src/frame.c11
-rw-r--r--src/lread.c4
-rw-r--r--src/msdos.c36
-rw-r--r--src/msdos.h14
-rw-r--r--src/process.c39
-rw-r--r--src/w16select.c5
30 files changed, 272 insertions, 200 deletions
diff --git a/config.bat b/config.bat
index 04fce0f2988..a5bea7135ae 100644
--- a/config.bat
+++ b/config.bat
@@ -174,7 +174,7 @@ junk
174If ErrorLevel 1 Goto xmlDone 174If ErrorLevel 1 Goto xmlDone
175Echo Configuring with libxml2 ... 175Echo Configuring with libxml2 ...
176sed -e "/#undef HAVE_LIBXML2/s/^.*$/#define HAVE_LIBXML2 1/" <config.h2 >config.h3 176sed -e "/#undef HAVE_LIBXML2/s/^.*$/#define HAVE_LIBXML2 1/" <config.h2 >config.h3
177mv config.h3 config.h2 177sed -e "/#define EMACS_CONFIG_FEATURES/s/^.*$/#define EMACS_CONFIG_FEATURES \"LIBXML2\"/" <config.h3 >config.h2
178set libxml=1 178set libxml=1
179:xmlDone 179:xmlDone
180rm -f junk.c junk junk.exe 180rm -f junk.c junk junk.exe
@@ -194,7 +194,7 @@ if exist dir.h ren dir.h vmsdir.h
194 194
195rem Create "makefile" from "makefile.in". 195rem Create "makefile" from "makefile.in".
196rm -f Makefile makefile.tmp 196rm -f Makefile makefile.tmp
197copy Makefile.in+lisp.mk+deps.mk makefile.tmp 197copy Makefile.in+deps.mk makefile.tmp
198sed -f ../msdos/sed1v2.inp <makefile.tmp >Makefile 198sed -f ../msdos/sed1v2.inp <makefile.tmp >Makefile
199rm -f makefile.tmp 199rm -f makefile.tmp
200 200
@@ -227,6 +227,10 @@ rem ----------------------------------------------------------------------
227Echo Configuring the library source directory... 227Echo Configuring the library source directory...
228cd lib-src 228cd lib-src
229sed -f ../msdos/sed3v2.inp <Makefile.in >Makefile 229sed -f ../msdos/sed3v2.inp <Makefile.in >Makefile
230mv Makefile makefile.tmp
231sed -n -e "/^AC_INIT/s/[^,]*, \([^,]*\).*/@set emver=\1/p" ../configure.ac > emver.bat
232call emver.bat
233sed -e "s/@version@/%emver%/g" <makefile.tmp >Makefile
230if "%X11%" == "" goto libsrc2a 234if "%X11%" == "" goto libsrc2a
231mv Makefile makefile.tmp 235mv Makefile makefile.tmp
232sed -f ../msdos/sed3x.inp <makefile.tmp >Makefile 236sed -f ../msdos/sed3x.inp <makefile.tmp >Makefile
@@ -252,16 +256,23 @@ cd ..
252rem ---------------------------------------------------------------------- 256rem ----------------------------------------------------------------------
253Echo Configuring the doc directory, expect one "File not found" message... 257Echo Configuring the doc directory, expect one "File not found" message...
254cd doc 258cd doc
259Rem Rename files like djtar on plain DOS filesystem would.
260If Exist emacs\emacsver.texi.in update emacs/emacsver.texi.in emacs/emacsver.in
261If Exist man\emacs.1.in update man/emacs.1.in man/emacs.in
262If Exist ..\etc\refcards\emacsver.tex.in update ../etc/refcards/emacsver.tex.in ../etc/refcards/emacsver.in
255Rem The two variants for lispintro below is for when the shell 263Rem The two variants for lispintro below is for when the shell
256Rem supports long file names but DJGPP does not 264Rem supports long file names but DJGPP does not
257for %%d in (emacs lispref lispintro lispintr misc) do sed -f ../msdos/sed6.inp < %%d\Makefile.in > %%d\Makefile 265for %%d in (emacs lispref lispintro lispintr misc) do sed -e "s/@version@/%emver%/g" -f ../msdos/sed6.inp < %%d\Makefile.in > %%d\Makefile
266Rem produce emacs.1 from emacs.in
267If Exist man\emacs.1 goto manOk
268sed -e "s/@version@/%emver%/g" -e "s/@PACKAGE_BUGREPORT@/bug-gnu-emacs@gnu.org/g" < man\emacs.in > man\emacs.1
269:manOk
258cd .. 270cd ..
259rem ---------------------------------------------------------------------- 271rem ----------------------------------------------------------------------
260Echo Configuring the lib directory... 272Echo Configuring the lib directory...
261If Exist build-aux\snippet\c++defs.h update build-aux/snippet/c++defs.h build-aux/snippet/cxxdefs.h 273If Exist build-aux\snippet\c++defs.h update build-aux/snippet/c++defs.h build-aux/snippet/cxxdefs.h
262cd lib 274cd lib
263Rem Rename files like djtar on plain DOS filesystem would. 275Rem Rename files like djtar on plain DOS filesystem would.
264If Exist build-aux\snippet\c++defs.h update build-aux/snippet/c++defs.h build-aux/snippet/cxxdefs.h
265If Exist alloca.in.h update alloca.in.h alloca.in-h 276If Exist alloca.in.h update alloca.in.h alloca.in-h
266If Exist byteswap.in.h update byteswap.in.h byteswap.in-h 277If Exist byteswap.in.h update byteswap.in.h byteswap.in-h
267If Exist dirent.in.h update dirent.in.h dirent.in-h 278If Exist dirent.in.h update dirent.in.h dirent.in-h
@@ -286,6 +297,7 @@ If Exist sys_types.in.h update sys_types.in.h sys_types.in-h
286If Exist sys_time.in.h update sys_time.in.h sys_time.in-h 297If Exist sys_time.in.h update sys_time.in.h sys_time.in-h
287If Exist time.in.h update time.in.h time.in-h 298If Exist time.in.h update time.in.h time.in-h
288If Exist unistd.in.h update unistd.in.h unistd.in-h 299If Exist unistd.in.h update unistd.in.h unistd.in-h
300Rem Only repository has the msdos/autogen directory
289If Exist Makefile.in sed -f ../msdos/sedlibcf.inp < Makefile.in > makefile.tmp 301If Exist Makefile.in sed -f ../msdos/sedlibcf.inp < Makefile.in > makefile.tmp
290If Exist ..\msdos\autogen\Makefile.in sed -f ../msdos/sedlibcf.inp < ..\msdos\autogen\Makefile.in > makefile.tmp 302If Exist ..\msdos\autogen\Makefile.in sed -f ../msdos/sedlibcf.inp < ..\msdos\autogen\Makefile.in > makefile.tmp
291sed -f ../msdos/sedlibmk.inp < makefile.tmp > Makefile 303sed -f ../msdos/sedlibmk.inp < makefile.tmp > Makefile
@@ -311,6 +323,12 @@ If Not Exist admin\unidata goto noadmin
311Echo Configuring the admin/unidata directory... 323Echo Configuring the admin/unidata directory...
312cd admin\unidata 324cd admin\unidata
313sed -f ../../msdos/sedadmin.inp < Makefile.in > Makefile 325sed -f ../../msdos/sedadmin.inp < Makefile.in > Makefile
326Echo Configuring the admin/charsets directory...
327cd ..\charsets
328sed -f ../../msdos/sedadmin.inp < Makefile.in > Makefile
329Echo Configuring the admin/grammars directory...
330cd ..\grammars
331sed -f ../../msdos/sedadmin.inp < Makefile.in > Makefile
314cd ..\.. 332cd ..\..
315:noadmin 333:noadmin
316rem ---------------------------------------------------------------------- 334rem ----------------------------------------------------------------------
@@ -345,3 +363,4 @@ set nodebug=
345set djgpp_ver= 363set djgpp_ver=
346set sys_malloc= 364set sys_malloc=
347set libxml= 365set libxml=
366set emver=
diff --git a/lisp/eshell/esh-cmd.el b/lisp/eshell/esh-cmd.el
index 60615131e20..d3613d31405 100644
--- a/lisp/eshell/esh-cmd.el
+++ b/lisp/eshell/esh-cmd.el
@@ -800,7 +800,7 @@ This macro calls itself recursively, with NOTFIRST non-nil."
800(defmacro eshell-do-pipelines-synchronously (pipeline) 800(defmacro eshell-do-pipelines-synchronously (pipeline)
801 "Execute the commands in PIPELINE in sequence synchronously. 801 "Execute the commands in PIPELINE in sequence synchronously.
802Output of each command is passed as input to the next one in the pipeline. 802Output of each command is passed as input to the next one in the pipeline.
803This is used on systems where `start-process' is not supported." 803This is used on systems where async subprocesses are not supported."
804 (when (setq pipeline (cadr pipeline)) 804 (when (setq pipeline (cadr pipeline))
805 `(progn 805 `(progn
806 ,(when (cdr pipeline) 806 ,(when (cdr pipeline)
@@ -838,7 +838,7 @@ This is used on systems where `start-process' is not supported."
838 "Execute the commands in PIPELINE, connecting each to one another." 838 "Execute the commands in PIPELINE, connecting each to one another."
839 `(let ((eshell-in-pipeline-p t) tailproc) 839 `(let ((eshell-in-pipeline-p t) tailproc)
840 (progn 840 (progn
841 ,(if (fboundp 'start-process) 841 ,(if (fboundp 'make-process)
842 `(eshell-do-pipelines ,pipeline) 842 `(eshell-do-pipelines ,pipeline)
843 `(let ((tail-handles (eshell-create-handles 843 `(let ((tail-handles (eshell-create-handles
844 (car (aref eshell-current-handles 844 (car (aref eshell-current-handles
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index dbf12247fc6..001aad14754 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -72,7 +72,7 @@
72 (let ((map (make-sparse-keymap "Set Coding System"))) 72 (let ((map (make-sparse-keymap "Set Coding System")))
73 (bindings--define-key map [set-buffer-process-coding-system] 73 (bindings--define-key map [set-buffer-process-coding-system]
74 '(menu-item "For I/O with Subprocess" set-buffer-process-coding-system 74 '(menu-item "For I/O with Subprocess" set-buffer-process-coding-system
75 :visible (fboundp 'start-process) 75 :visible (fboundp 'make-process)
76 :enable (get-buffer-process (current-buffer)) 76 :enable (get-buffer-process (current-buffer))
77 :help "How to en/decode I/O from/to subprocess connected to this buffer")) 77 :help "How to en/decode I/O from/to subprocess connected to this buffer"))
78 (bindings--define-key map [set-next-selection-coding-system] 78 (bindings--define-key map [set-next-selection-coding-system]
diff --git a/lisp/man.el b/lisp/man.el
index b483dd12e8a..2b2ee99a9be 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -619,7 +619,7 @@ This is necessary if one wants to dump man.el with Emacs."
619 ;; `call-process' below sends it to /dev/null, 619 ;; `call-process' below sends it to /dev/null,
620 ;; so we don't need `2>' even with DOS shells 620 ;; so we don't need `2>' even with DOS shells
621 ;; which do support stderr redirection. 621 ;; which do support stderr redirection.
622 ((not (fboundp 'start-process)) " %s") 622 ((not (fboundp 'make-process)) " %s")
623 ((concat " %s 2>" null-device))))) 623 ((concat " %s 2>" null-device)))))
624 (flist Man-filter-list)) 624 (flist Man-filter-list))
625 (while (and flist (car flist)) 625 (while (and flist (car flist))
@@ -1080,7 +1080,7 @@ Return the buffer in which the manpage will appear."
1080 "[cleaning...]") 1080 "[cleaning...]")
1081 'face 'mode-line-emphasis))) 1081 'face 'mode-line-emphasis)))
1082 (Man-start-calling 1082 (Man-start-calling
1083 (if (fboundp 'start-process) 1083 (if (fboundp 'make-process)
1084 (let ((proc (start-process 1084 (let ((proc (start-process
1085 manual-program buffer 1085 manual-program buffer
1086 (if (memq system-type '(cygwin windows-nt)) 1086 (if (memq system-type '(cygwin windows-nt))
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index b7ab408f744..dbda8a9d5b8 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1736,7 +1736,7 @@ Returns the compilation buffer created."
1736 (funcall compilation-process-setup-function)) 1736 (funcall compilation-process-setup-function))
1737 (and outwin (compilation-set-window-height outwin)) 1737 (and outwin (compilation-set-window-height outwin))
1738 ;; Start the compilation. 1738 ;; Start the compilation.
1739 (if (fboundp 'start-process) 1739 (if (fboundp 'make-process)
1740 (let ((proc 1740 (let ((proc
1741 (if (eq mode t) 1741 (if (eq mode t)
1742 ;; comint uses `start-file-process'. 1742 ;; comint uses `start-file-process'.
diff --git a/lisp/term/internal.el b/lisp/term/internal.el
index f026c66b2a3..6f4866b0795 100644
--- a/lisp/term/internal.el
+++ b/lisp/term/internal.el
@@ -233,13 +233,13 @@
233 "U*!" "U*'" "R*;" "!:" ":'" "!*" nil nil nil "w*j" 233 "U*!" "U*'" "R*;" "!:" ":'" "!*" nil nil nil "w*j"
234 nil nil "w*?" nil "O*!" "O*'" "W*!" "W*'" "W*J" "/*" 234 nil nil "w*?" nil "O*!" "O*'" "W*!" "W*'" "W*J" "/*"
235 ";;" nil nil nil "1N" "1M" "3M" "4M" "6M" nil ; Gen Punct 235 ";;" nil nil nil "1N" "1M" "3M" "4M" "6M" nil ; Gen Punct
236 nil "1T" "1H" nil nil nil "LRM" "RLM" "-1" nil 236 nil "1T" "1H" nil nil nil "LRM" "RLM" "-" "-"
237 nil "--" "---" "===" "!2" "=2" "6`" "'9" ".9" "9'" 237 "-" "--" "---" "===" "!2" "=2" "'" "'" ".9" "9'"
238 "``" "''" ":9" "9``" "/-" "/=" "sb" "3b" nil ".." 238 "\"" "\"" ":9" "9``" "/-" "/=" "sb" "3b" nil ".."
239 "..." ".-" "LSep" "PSep" "LR[" "RL[" "PDF" "LRO" "RLO" 255 239 "..." ".-" "LSep" "PSep" "LR[" "RL[" "PDF" "LRO" "RLO" 255
240 "%o" "%oo" "'" "''" "\"'" "`" "``" "```" ".^" "<," 240 "%o" "%oo" "'" "''" "\"'" "`" "``" "```" ".^" "<,"
241 ",>" ":X" "!!" "?!" "'-" nil nil nil nil "-b" 241 ",>" ":X" "!!" "?!" "'-" nil nil nil nil "-b"
242 "/f" nil nil nil nil nil nil nil nil nil 242 "/f" nil nil "??" "?!" "!?" nil nil nil nil
243 nil nil nil nil nil nil nil nil nil nil 243 nil nil nil nil nil nil nil nil nil nil
244 nil nil nil nil nil nil nil nil nil nil 244 nil nil nil nil nil nil nil nil nil nil
245 nil nil nil nil nil nil nil nil nil nil 245 nil nil nil nil nil nil nil nil nil nil
@@ -265,17 +265,17 @@
265 "oK" "AO" nil nil "Est" nil nil nil nil nil 265 "oK" "AO" nil nil "Est" nil nil nil nil nil
266 nil "Aleph" "Bet" "Gimel" "Dalet" "=i=" nil nil nil nil 266 nil "Aleph" "Bet" "Gimel" "Dalet" "=i=" nil nil nil nil
267 nil nil nil nil nil nil nil nil nil nil 267 nil nil nil nil nil nil nil nil nil nil
268 nil nil nil nil nil nil nil nil nil nil 268 nil nil nil nil nil nil nil nil "1/7" "1/9"
269 nil "1/3" "2/3" "1/5" "2/5" "3/5" "4/5" "1/6" "5/6" "1/8" 269 "1/10" "1/3" "2/3" "1/5" "2/5" "3/5" "4/5" "1/6" "5/6" "1/8"
270 "3/8" "5/8" "7/8" "1/" ".I" "II" "III" "IV" ".V" "VI" 270 "3/8" "5/8" "7/8" "1/" ".I" "II" "III" "IV" ".V" "VI"
271 "VII" "VIII" "IX" "X" "XI" "XII" ".L" ".C" ".D" ".M" 271 "VII" "VIII" "IX" "X" "XI" "XII" ".L" ".C" ".D" ".M"
272 ".i" "ii" "iii" "iv" ".v" "vi" "vii" "viii" "ix" ".x" 272 ".i" "ii" "iii" "iv" ".v" "vi" "vii" "viii" "ix" ".x"
273 "xi" ".l" ".c" ".d" ".m" "CD" "DD" "CoD" "CI" nil 273 "xi" "xii" ".l" ".c" ".d" ".m" "CD" "DD" "CoD" "CI"
274 nil nil nil nil nil nil nil nil nil nil 274 nil nil nil nil nil nil nil nil nil nil
275 nil "<-" "|^" "->" "|v" "<->" "v|^" "^\\" "/^" "\\v" 275 nil nil "<-" "|^" "->" "|v" "<->" "v|^" "^\\" "/^"
276 "v/" "<-/" "/->" "<~" "~>" "<<-" "|^^" "->>" "|vv" "<-<" 276 "\\v" "v/" "<-/" "/->" "<~" "~>" "<<-" "|^^" "->>" "|vv"
277 ">->" "<-|" "_|^" "|->" "-|v" "_v|^" "<-?" "?->" "<-o" "o->" 277 "<-<" ">->" "<-|" "_|^" "|->" "-|v" "_v|^" "<-?" "?->" "<-o"
278 "<~>" "<-/>" nil nil nil nil nil nil nil nil 278 "o->" "<~>" "<-/>" nil nil nil nil nil nil nil
279 nil nil nil nil nil nil nil nil nil nil 279 nil nil nil nil nil nil nil nil nil nil
280 nil nil nil nil nil nil nil nil nil nil 280 nil nil nil nil nil nil nil nil nil nil
281 nil nil nil "<=/" "<=/>" "/=>" "<=" "||^" "=>" "||v" 281 nil nil nil "<=/" "<=/>" "/=>" "<=" "||^" "=>" "||v"
@@ -299,7 +299,7 @@
299 "~<'" "`>~" "/<'" "/`>" "(C" ")C" "/(C" "/)C" "(_" ")_" 299 "~<'" "`>~" "/<'" "/`>" "(C" ")C" "/(C" "/)C" "(_" ")_"
300 "/(_" "/)_" nil nil nil nil nil nil nil nil 300 "/(_" "/)_" nil nil nil nil nil nil nil nil
301 nil nil nil "0+" "0-" "0x" "0/" "0." "0o" "0*" 301 nil nil nil "0+" "0-" "0x" "0/" "0." "0o" "0*"
302 "0=" "0_" nil nil nil nil "|T" "T|" "-T" "_T" 302 "0=" "0_" nil nil nil nil "|-" "-|" "-T" "_T"
303 nil nil nil nil nil nil nil nil nil nil 303 nil nil nil nil nil nil nil nil nil nil
304 nil nil nil nil nil nil nil nil nil "-,-" 304 nil nil nil nil nil nil nil nil nil "-,-"
305 nil "XOR" "NAND" "NOR" nil nil nil nil nil nil 305 nil "XOR" "NAND" "NOR" nil nil nil nil nil nil
@@ -357,8 +357,10 @@
357 "M-o" "N-o" "O-o" "P-o" "Q-o" "R-o" "S-o" "T-o" "U-o" "V-o" 357 "M-o" "N-o" "O-o" "P-o" "Q-o" "R-o" "S-o" "T-o" "U-o" "V-o"
358 "W-o" "X-o" "Y-o" "Z-o" "a-o" "b-o" "c-o" "d-o" "e-o" "f-o" 358 "W-o" "X-o" "Y-o" "Z-o" "a-o" "b-o" "c-o" "d-o" "e-o" "f-o"
359 "g-o" "h-o" "i-o" "j-o" "k-o" "l-o" "m-o" "n-o" "o-o" "p-o" 359 "g-o" "h-o" "i-o" "j-o" "k-o" "l-o" "m-o" "n-o" "o-o" "p-o"
360 "q-o" "r-o" "s-o" "t-o" "u-o" "v-o" "w-o" "x-o" "y-o" "z-o" 360 "q-o" "r-o" "s-o" "t-o" "u-o" "v-o" "w-o" "x-o" "y-o" "z-o" "0-o" ]
361 "0-o" ] 361 )
362 (9733 9734
363 ["-!-" "-*-"]
362 ) 364 )
363 ) 365 )
364 366
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index db03a3244a4..0cedf86bb73 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -1000,7 +1000,7 @@ and added as a submenu of the \"Edit\" menu.")
1000(defvar ispell-async-processp (and (fboundp 'delete-process) 1000(defvar ispell-async-processp (and (fboundp 'delete-process)
1001 (fboundp 'process-send-string) 1001 (fboundp 'process-send-string)
1002 (fboundp 'accept-process-output) 1002 (fboundp 'accept-process-output)
1003 ;;(fboundp 'start-process) 1003 ;;(fboundp 'make-process)
1004 ;;(fboundp 'set-process-filter) 1004 ;;(fboundp 'set-process-filter)
1005 ;;(fboundp 'process-kill-without-query) 1005 ;;(fboundp 'process-kill-without-query)
1006 ) 1006 )
diff --git a/lisp/vc/diff.el b/lisp/vc/diff.el
index a8c3fcca2fc..6b316c4073c 100644
--- a/lisp/vc/diff.el
+++ b/lisp/vc/diff.el
@@ -167,7 +167,7 @@ Possible values are:
167 (setq default-directory thisdir) 167 (setq default-directory thisdir)
168 (let ((inhibit-read-only t)) 168 (let ((inhibit-read-only t))
169 (insert command "\n")) 169 (insert command "\n"))
170 (if (and (not no-async) (fboundp 'start-process)) 170 (if (and (not no-async) (fboundp 'make-process))
171 (let ((proc (start-process "Diff" buf shell-file-name 171 (let ((proc (start-process "Diff" buf shell-file-name
172 shell-command-switch command))) 172 shell-command-switch command)))
173 (set-process-filter proc 'diff-process-filter) 173 (set-process-filter proc 'diff-process-filter)
diff --git a/lisp/window.el b/lisp/window.el
index d9ac0e6d240..f7a547b915a 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -8543,16 +8543,17 @@ displaying that processes's buffer."
8543 8543
8544(defun window--adjust-process-windows () 8544(defun window--adjust-process-windows ()
8545 "Update process window sizes to match the current window configuration." 8545 "Update process window sizes to match the current window configuration."
8546 (dolist (procwin (window--process-window-list)) 8546 (when (fboundp 'process-list)
8547 (let ((process (car procwin))) 8547 (dolist (procwin (window--process-window-list))
8548 (with-demoted-errors "Error adjusting window size: %S" 8548 (let ((process (car procwin)))
8549 (with-current-buffer (process-buffer process) 8549 (with-demoted-errors "Error adjusting window size: %S"
8550 (let ((size (funcall 8550 (with-current-buffer (process-buffer process)
8551 (or (process-get process 'adjust-window-size-function) 8551 (let ((size (funcall
8552 window-adjust-process-window-size-function) 8552 (or (process-get process 'adjust-window-size-function)
8553 process (cdr procwin)))) 8553 window-adjust-process-window-size-function)
8554 (when size 8554 process (cdr procwin))))
8555 (set-process-window-size process (cdr size) (car size))))))))) 8555 (when size
8556 (set-process-window-size process (cdr size) (car size))))))))))
8556 8557
8557(add-hook 'window-configuration-change-hook 'window--adjust-process-windows) 8558(add-hook 'window-configuration-change-hook 'window--adjust-process-windows)
8558 8559
diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp
index 71646821a59..383105a3f30 100644
--- a/msdos/sed1v2.inp
+++ b/msdos/sed1v2.inp
@@ -15,32 +15,24 @@
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16# 16#
17# ---------------------------------------------------------------------- 17# ----------------------------------------------------------------------
18s/^#.*//
19s/^[ \f\t][ \f\t]*$// 18s/^[ \f\t][ \f\t]*$//
20s/^ / / 19s/^ / /
21s/\.h\.in/.h-in/ 20s/\.h\.in/.h-in/
22/^MAKE *=/s/^/# /
23/^SHELL *=/s/^/# / 21/^SHELL *=/s/^/# /
24/^srcdir *=/s/@[^@\n]*@/./ 22/^srcdir *=/s/@[^@\n]*@/./
25/^abs_builddir *=/s|@abs_builddir@|../src| 23/^top_srcdir *=/s/@[^@\n]*@/../
26/^VPATH *=/s/@[^@\n]*@/./ 24/^CC *=/s/@[^@\n]*@/gcc -std=gnu99/
27/^CC *=/s/@[^@\n]*@/gcc/
28/^CPP *=/s/@[^@\n]*@/gcc -e/
29/^CFLAGS *=/s/@[^@\n]*@/-O2 -gcoff/ 25/^CFLAGS *=/s/@[^@\n]*@/-O2 -gcoff/
30/^ALL_CFLAGS *=/s/@[^@\n]*@//g 26/^ALL_CFLAGS *=/s/@[^@\n]*@//g
31/^ALL_CFLAGS *=/s/ -I\.//g 27/^ALL_CFLAGS *=/s/ -I\.//g
32/^CPPFLAGS *=/s|@[^@\n]*@|-I../msdos| 28/^CPPFLAGS *=/s|@[^@\n]*@|-I../msdos|
33/^LDFLAGS *=/s/@[^@\n]*@// 29/^LDFLAGS *=/s/@[^@\n]*@//
34/^LD_FIRSTFLAG *=/s/@[^@\n]*@//
35/^LIBS *=/s/@[^@\n]*@//
36/^LIBES *=/,/^ *$/ {
37 s/@[^@\n]*@//g
38}
39/^LIBOBJS *=/s/@[^@\n]*@// 30/^LIBOBJS *=/s/@[^@\n]*@//
40/^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@// 31/^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
41/^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@// 32/^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@//
42/^GNUSTEP_CFLAGS *=/s/@GNUSTEP_CFLAGS@// 33/^GNUSTEP_CFLAGS *=/s/@GNUSTEP_CFLAGS@//
43/^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@// 34/^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@//
35/^PNG_CFLAGS *=/s/@PNG_CFLAGS@//
44/^WARN_CFLAGS *=/s/@WARN_CFLAGS@// 36/^WARN_CFLAGS *=/s/@WARN_CFLAGS@//
45/^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@// 37/^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@//
46/^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@// 38/^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@//
@@ -64,6 +56,7 @@ s/ *@LIBPNG@//
64s/ *@LIBGIF@// 56s/ *@LIBGIF@//
65s/ *@LIBXPM@// 57s/ *@LIBXPM@//
66/^XFT_LIBS *=/s/@XFT_LIBS@// 58/^XFT_LIBS *=/s/@XFT_LIBS@//
59/^XCB_LIBS *=/s/@XCB_LIBS@//
67/^FONTCONFIG_CFLAGS *=/s/@FONTCONFIG_CFLAGS@// 60/^FONTCONFIG_CFLAGS *=/s/@FONTCONFIG_CFLAGS@//
68/^FONTCONFIG_LIBS *=/s/@FONTCONFIG_LIBS@// 61/^FONTCONFIG_LIBS *=/s/@FONTCONFIG_LIBS@//
69/^FREETYPE_CFLAGS *=/s/@FREETYPE_CFLAGS@// 62/^FREETYPE_CFLAGS *=/s/@FREETYPE_CFLAGS@//
@@ -78,7 +71,8 @@ s/ *@LIBXPM@//
78/^NOTIFY_OBJ *=/s/@NOTIFY_OBJ@// 71/^NOTIFY_OBJ *=/s/@NOTIFY_OBJ@//
79/^SETTINGS_CFLAGS *=/s/@SETTINGS_CFLAGS@// 72/^SETTINGS_CFLAGS *=/s/@SETTINGS_CFLAGS@//
80/^SETTINGS_LIBS *=/s/@SETTINGS_LIBS@// 73/^SETTINGS_LIBS *=/s/@SETTINGS_LIBS@//
81/^GFILENOTIFY_LIBS *=/s/@GFILENOTIFY_LIBS@// 74/^NOTIFY_LIBS *=/s/@NOTIFY_LIBS@//
75/^NOTIFY_CFLAGS *=/s/@NOTIFY_CFLAGS@//
82/^GTK_OBJ *=/s/@GTK_OBJ@// 76/^GTK_OBJ *=/s/@GTK_OBJ@//
83/^LIBS_TERMCAP *=/s/@LIBS_TERMCAP@// 77/^LIBS_TERMCAP *=/s/@LIBS_TERMCAP@//
84/^TERMCAP_OBJ *=/s/@TERMCAP_OBJ@/termcap.o tparam.o/ 78/^TERMCAP_OBJ *=/s/@TERMCAP_OBJ@/termcap.o tparam.o/
@@ -92,7 +86,7 @@ s/ *@LIBXPM@//
92/^XGSELOBJ *=/s/@XGSELOBJ@// 86/^XGSELOBJ *=/s/@XGSELOBJ@//
93/^TOOLKIT_LIBW *=/s/@TOOLKIT_LIBW@// 87/^TOOLKIT_LIBW *=/s/@TOOLKIT_LIBW@//
94/^LIBSOUND *=/s/@LIBSOUND@// 88/^LIBSOUND *=/s/@LIBSOUND@//
95/^LIBS_GNUSTEP *=/s/@LIBS_GNUSTEP@// 89/^LIBS_GNUSTEP *=/s/=.*$/=/
96/^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@// 90/^CFLAGS_SOUND *=/s/@CFLAGS_SOUND@//
97/^RSVG_LIBS *=/s/@RSVG_LIBS@// 91/^RSVG_LIBS *=/s/@RSVG_LIBS@//
98/^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@// 92/^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@//
@@ -101,15 +95,23 @@ s/ *@LIBXPM@//
101/^LIBXML2_LIBS *=/s/@LIBXML2_LIBS@// 95/^LIBXML2_LIBS *=/s/@LIBXML2_LIBS@//
102/^LIBXML2_CFLAGS *=/s/@LIBXML2_CFLAGS@// 96/^LIBXML2_CFLAGS *=/s/@LIBXML2_CFLAGS@//
103/^WIDGET_OBJ *=/s/@WIDGET_OBJ@// 97/^WIDGET_OBJ *=/s/@WIDGET_OBJ@//
98/^XWIDGETS_OBJ *=/s/@XWIDGETS_OBJ@//
99/^WEBKIT_LIBS *=/s/@WEBKIT_LIBS@//
100/^WEBKIT_CFLAGS *=/s/@WEBKIT_CFLAGS@//
101/^CAIRO_LIBS *=/s/@CAIRO_LIBS@//
102/^CAIRO_CFLAGS *=/s/@CAIRO_CFLAGS@//
103/^XFIXES_LIBS *=/s/@XFIXES_LIBS@//
104/^XFIXES_CFLAGS *=/s/@XFIXES_CFLAGS@//
104/^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@// 105/^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@//
105/^WINDOW_SYSTEM_OBJ *=/s/@WINDOW_SYSTEM_OBJ@// 106/^WINDOW_SYSTEM_OBJ *=/s/@WINDOW_SYSTEM_OBJ@//
106/^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/ 107/^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/
107/^NS_OBJ *=/s/@NS_OBJ@// 108/^NS_OBJ *=/s/@NS_OBJ@//
108/^NS_OBJC_OBJ *=/s/@NS_OBJC_OBJ@// 109/^NS_OBJC_OBJ *=/s/@NS_OBJC_OBJ@//
109/^GNU_OBJC_CFLAGS*=/s/@GNU_OBJC_CFLAGS@// 110/^GNU_OBJC_CFLAGS*=/s/=.*$/=/
110/^LIBRESOLV *=/s/@LIBRESOLV@// 111/^LIBRESOLV *=/s/@LIBRESOLV@//
112/^LIBMODULES *=/s/@LIBMODULES@//
113/^MODULES_OBJ *=/s/@MODULES_OBJ@//
111/^LIBSELINUX_LIBS *=/s/@LIBSELINUX_LIBS@// 114/^LIBSELINUX_LIBS *=/s/@LIBSELINUX_LIBS@//
112/^LIB_PTHREAD_SIGMASK *=/s/@[^@\n]*@//
113/^LIB_CLOCK_GETTIME *=/s/@[^@\n]*@//g 115/^LIB_CLOCK_GETTIME *=/s/@[^@\n]*@//g
114/^LIB_TIMER_TIME *=/s/@[^@\n]*@//g 116/^LIB_TIMER_TIME *=/s/@[^@\n]*@//g
115/^LIB_EXECINFO *=/s/@[^@\n]*@//g 117/^LIB_EXECINFO *=/s/@[^@\n]*@//g
@@ -145,65 +147,59 @@ s/ *@LIBXPM@//
145/^W32_LIBS *=/s/@W32_LIBS@// 147/^W32_LIBS *=/s/@W32_LIBS@//
146/^version *=/s/@[^@\n]*@// 148/^version *=/s/@[^@\n]*@//
147/^EMACSRES *=/s/@EMACSRES@// 149/^EMACSRES *=/s/@EMACSRES@//
148/^EMACS_MANIFEST *=/s/@EMACS_MANIFEST@//
149/^W32_RES_LINK *=/s/@W32_RES_LINK@// 150/^W32_RES_LINK *=/s/@W32_RES_LINK@//
150/^CM_OBJ *=/s/@CM_OBJ@/cm.o/ 151/^CM_OBJ *=/s/@CM_OBJ@/cm.o/
151/^@SET_MAKE@$/s/@SET_MAKE@// 152/^@SET_MAKE@$/s/@SET_MAKE@//
152/^TEMACS_POST_LINK *=/s/@TEMACS_POST_LINK@/stubedit temacs.exe minstack=1024k/
153/^ADDSECTION *=/s/@ADDSECTION@// 153/^ADDSECTION *=/s/@ADDSECTION@//
154/^ [ ]*\$(libsrc)\/make-docfile.*>.*\/DOC/s!make-docfile!make-docfile -o $(etc)/DOC! 154/^AM_DEFAULT_VERBOSITY *=/s/@AM_DEFAULT_VERBOSITY@/1/
155/^ [ ]*\$(libsrc)\/make-docfile.*>.*gl.tmp/s!make-docfile!make-docfile -o gl.tmp! 155/^[Aa][Mm]_/s/@AM_V@/$(V)/
156/^.\$(libsrc)\/make-doc/s!>.*$!! 156/^[Aa][Mm]_/s/@AM_DEFAULT_V@/$(AM_DEFAULT_VERBOSITY)/
157/^ [ ]*\$(libsrc)\/make-docfile /s!`[^`]*`!$(lisp); cd ../src! 157/^AUTO_DEPEND *=/s/@AUTO_DEPEND@/yes/
158/^[ ]*$/d 158/^PAXCTL_if_present *=/s/=.*$/=@Rem/
159/^\$(leimdir)\/leim-list.el: /s/bootstrap-emacs\$(EXEEXT)/temacs$(EXEEXT) $(BOOTSTRAPEMACS)/ 159/^lisp\.mk:/,/^$/c\
160lisp.mk: $(lispsource)/loadup.el\
161 @rm -f $@\
162 ${AM_V_GEN}printf 'shortlisp = \\n' > $@\
163 ${AM_V_GEN}sed -n 's/^[ \t]*(load "\([^"]*\)".*/\1/p' $< | sed -e "s/$/.elc \/" -e "s/\.el\.elc/.el/" >> $@\
164 ${AM_V_GEN}djecho "" >> $@
165
166#"
167
168/^ [ ]*\$(AM_V_at)\$(libsrc)\/make-docfile -d/s!make-docfile!make-docfile -o $(etc)/DOC!
169/ > \$(etc)\/DOC *$/s/ >.*$//
170/^ [ ]*\$(AM_V_GLOBALS)\$(libsrc)\/make-docfile.*>.*globals.tmp/s!make-docfile!make-docfile -o globals.tmp!
171/^ [ ]*\$(AM_V_GLOBALS)\$(libsrc)\/make-doc/s!>.*$!!
172/^\$(libsrc)\/make-docfile\$(EXEEXT): /i\
173 cd ../src
174/^\$(leimdir)\/leim-list.el: /s/bootstrap-emacs\$(EXEEXT)/b-emacs$(EXEEXT)/
160/^ if test -f/,/^ fi$/c\ 175/^ if test -f/,/^ fi$/c\
161 command.com /c if exist .gdbinit rm -f _gdbinit 176 command.com /c if exist .gdbinit rm -f _gdbinit
162/^ *test "X\$(PAXCTL)" = X/d 177/^ *\$(PAXCTL_if_present) -zex/d
163/^ *test "\$(CANNOT_DUMP)" = "yes"/d 178/^ *ln /s/ln /cp /
164/^ if test "\$(CANNOT_DUMP)" =/,/^ else /d 179/^ *\$(SETFATTR_if_present) -n/d
165/^ *\$(SETFATTR) -n/d
166/^ -\{0,1\} *ln /s/bootstrap-emacs\$(EXEEXT).*$/bootstrap-emacs$(EXEEXT)/
167/^ fi/d 180/^ fi/d
181/^ *\$(RUN_TEMACS) /i\
182 stubedit temacs.exe minstack=1024k
168/^ *LC_ALL=C \$(RUN_TEMACS)/i\ 183/^ *LC_ALL=C \$(RUN_TEMACS)/i\
169 stubedit temacs.exe minstack=1024k 184 stubedit temacs.exe minstack=1024k
170/^ *LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/ 185/^ *LC_ALL=C.*\$(RUN_TEMACS)/s/LC_ALL=C/set &;/
171/-batch -l loadup/a\ 186/-batch -l loadup/a\
172 stubify emacs\ 187 stubify emacs\
173 stubedit emacs.exe minstack=2048k 188 stubedit emacs.exe minstack=3072k
174s/ || exit 1\; \\$//
175s/ || true\; \\$//
176s/ @true *$/ @rem/ 189s/ @true *$/ @rem/
177s/^ [^ ]*move-if-change / update / 190s/^ [^ ]*move-if-change / update /
178/^ echo[ ][ ]*timestamp/s/echo /djecho / 191/^ [^ ]*echo[ ][ ]*timestamp/s/echo /djecho /
179/^ .*djecho timestamp/a\ 192/^ .*djecho timestamp/a\
180 @rm -f gl.tmp 193 @rm -f globals.tmp
181/^ cd ..\/leim && \$(MAKE)/i\
182 $(RUN_TEMACS) -batch -l loadup dump\
183 stubify emacs\
184 stubedit emacs.exe minstack=2048k\
185 rm -f b-emacs$(EXEEXT)\
186 cp emacs$(EXEEXT) b-emacs$(EXEEXT)
187/^ cd ..\/leim && \$(MAKE)/c\
188 $(MAKE) $(MFLAGS) -C ../leim leim-list.el EMACS=$(bootstrap_exe)
189/^ cd ..\/admin\/unidata && \$(MAKE)/c\
190 $(MAKE) $(MFLAGS) -C ../admin/unidata all EMACS="../$(bootstrap_exe)"
191/^ cd \$(lib) && \$(MAKE)/c\
192 $(MAKE) $(MFLAGS) -C $(lib) libgnu.a
193/^RUN_TEMACS *=/s|`/bin/pwd`|.|
194/^ *@\$(MKDEPDIR) *$/d 194/^ *@\$(MKDEPDIR) *$/d
195/^ mv \.\/\.gdbinit/d 195/^ mv \.\/\.gdbinit/d
196/^ if test -f/,/^ fi$/c\ 196/^ if test -f/,/^ fi$/c\
197 command.com /c if exist .gdbinit rm -f _gdbinit 197 command.com /c if exist .gdbinit rm -f _gdbinit
198/^ #/d 198/^ #/d
199/^ cd.*make-docfile/s!$!; cd ../src!
200/^ @: /d 199/^ @: /d
201/^ -\{0,1\} *ln /s/ln /cp / 200/^ -\{0,1\} *ln /s/ln /cp /
202/^[ ]touch /s/touch/djecho $@ >/ 201/^[ ]touch /s/touch/djecho $@ >/
203s/@YMF_PASS_LDFLAGS@/flags/ 202s/@YMF_PASS_LDFLAGS@/flags/
204s/@lisp_frag@//
205s/@deps_frag@//
206s/@ns_frag@//
207s/@PRE_EDIT_LDFLAGS@// 203s/@PRE_EDIT_LDFLAGS@//
208s/@POST_EDIT_LDFLAGS@// 204s/@POST_EDIT_LDFLAGS@//
209s/bootstrap-emacs/b-emacs/ 205s/bootstrap-emacs/b-emacs/
@@ -211,21 +207,24 @@ s/bootstrap-temacs/b-temacs/
211s/bootstrap-doc/b-doc/ 207s/bootstrap-doc/b-doc/
212/rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/ 208/rm -f bootstrap-emacs/s/b-emacs/b-emacs b-emacs.exe/
213s/echo.*buildobj.lst/dj&/ 209s/echo.*buildobj.lst/dj&/
214/ --load loadup bootstrap/i\
215 stubedit temacs.exe minstack=1024k
216/ --load loadup bootstrap/a\ 210/ --load loadup bootstrap/a\
217 stubify emacs 211 stubify emacs
218/^ mv -f emacs/a\ 212/^ mv -f emacs/a\
219 stubedit b-emacs.exe minstack=3072k\ 213 stubedit b-emacs.exe minstack=3072k\
220 djecho bootlisp > bootlisp 214 djecho bootlisp > bootlisp
221/^ -\{0,1\}rm -f/s/\\#/#/ 215/^ -\{0,1\}rm -f/s/\\#/#/
222/^ @\{0,1\}cd ..\/lisp;.*[^\]$/s|$|\; cd ../src|
223/^ *THEFILE=/s|$|\; cd ../src|
224/^ echo.* buildobj.h/s|echo |djecho | 216/^ echo.* buildobj.h/s|echo |djecho |
225/^buildobj\.h:/,/^ mv /{ 217/^buildobj\.h:/,/^ *\$(AM_V_at)mv /{
226 /^ *for /,/^ *done /c\ 218 /^ *\$(AM_V_GEN)for /,/^ *done /c\
227 djecho "$(ALLOBJS)" | sed -e 's/^ */"/' -e 's/ *$$/"/' -e 's/ */", "/g' >>$@.tmp 219 djecho "$(ALLOBJS)" | sed -e 's/^ */"/' -e 's/ *$$/"/' -e 's/ */", "/g' >>$@.tmp
228} 220}
221# Remove or replace dependencies we cannot have
222/^\.PRECIOUS: /s!\.\./config.status !!
223/^\.\.\/config.status: /d
224/^Makefile: /s!\.\./config.status !!
225/^\$(top_srcdir)\/aclocal\.m4 /,/^doc\.o:/c\
226\
227doc.o: buildobj.h
229# Make the GCC command line fit one screen line 228# Make the GCC command line fit one screen line
230/^[ ][ ]*\$(GNUSTEP_CFLAGS)/d 229/^[ ][ ]*\$(GNUSTEP_CFLAGS)/d
231/^[ ][ ]*\$(GCONF_CFLAGS)/d 230/^[ ][ ]*\$(GCONF_CFLAGS)/d
@@ -233,7 +232,13 @@ s/echo.*buildobj.lst/dj&/
233s/\$(LIBOTF_CFLAGS) \$(M17N_FLT_CFLAGS) \$(DEPFLAGS) // 232s/\$(LIBOTF_CFLAGS) \$(M17N_FLT_CFLAGS) \$(DEPFLAGS) //
234s/ \$(C_SWITCH_X_SITE)// 233s/ \$(C_SWITCH_X_SITE)//
235s/ \$(DBUS_CFLAGS)// 234s/ \$(DBUS_CFLAGS)//
236s| -I\$(srcdir)/../lib|| 235s/ \$(PNG_CFLAGS) //
236s/ \$(XINERAMA_CFLAGS)//
237s/ \$(XFIXES_CFLAGS)//
238s/ \$(FREETYPE_CFLAGS)//
239s/ \$(FONTCONFIG_CFLAGS)//
240s| -I\$(srcdir)/\.\./lib||
241s| -I\$(top_srcdir)/lib||
237# Add our local inttypes.h to prerequisites where needed 242# Add our local inttypes.h to prerequisites where needed
238/^lread\.o:/s|lread\.c|& ../msdos/inttypes.h| 243/^lread\.o:/s|lread\.c|& ../msdos/inttypes.h|
239/^ *test "X/d 244/^ *test "X/d
diff --git a/msdos/sed2v2.inp b/msdos/sed2v2.inp
index aa948fd39f8..9f4ff836318 100644
--- a/msdos/sed2v2.inp
+++ b/msdos/sed2v2.inp
@@ -64,7 +64,7 @@
64/^#undef PACKAGE_NAME/s/^.*$/#define PACKAGE_NAME ""/ 64/^#undef PACKAGE_NAME/s/^.*$/#define PACKAGE_NAME ""/
65/^#undef PACKAGE_STRING/s/^.*$/#define PACKAGE_STRING ""/ 65/^#undef PACKAGE_STRING/s/^.*$/#define PACKAGE_STRING ""/
66/^#undef PACKAGE_TARNAME/s/^.*$/#define PACKAGE_TARNAME ""/ 66/^#undef PACKAGE_TARNAME/s/^.*$/#define PACKAGE_TARNAME ""/
67/^#undef PACKAGE_VERSION/s/^.*$/#define PACKAGE_VERSION ""/ 67/^#undef PACKAGE_VERSION/s/^.*$/#define PACKAGE_VERSION VERSION/
68/^#undef PENDING_OUTPUT_COUNT/s/^.*$/#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)/ 68/^#undef PENDING_OUTPUT_COUNT/s/^.*$/#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)/
69/^#undef VERSION/s/^.*$/#define VERSION "25.0.93"/ 69/^#undef VERSION/s/^.*$/#define VERSION "25.0.93"/
70/^#undef SYSTEM_TYPE/s/^.*$/#define SYSTEM_TYPE "ms-dos"/ 70/^#undef SYSTEM_TYPE/s/^.*$/#define SYSTEM_TYPE "ms-dos"/
@@ -82,7 +82,6 @@
82/^#undef HAVE_SIGNED_SIG_ATOMIC_T *$/s/^.*$/#define HAVE_SIGNED_SIG_ATOMIC_T 1/ 82/^#undef HAVE_SIGNED_SIG_ATOMIC_T *$/s/^.*$/#define HAVE_SIGNED_SIG_ATOMIC_T 1/
83/^#undef HAVE_SIGNED_WINT_T *$/s/^.*$/#define HAVE_SIGNED_WINT_T 1/ 83/^#undef HAVE_SIGNED_WINT_T *$/s/^.*$/#define HAVE_SIGNED_WINT_T 1/
84/^#undef HAVE_UNSIGNED_LONG_LONG_INT *$/s/^.*$/#define HAVE_UNSIGNED_LONG_LONG_INT 1/ 84/^#undef HAVE_UNSIGNED_LONG_LONG_INT *$/s/^.*$/#define HAVE_UNSIGNED_LONG_LONG_INT 1/
85/^#undef HAVE_WCHAR_H *$/s/^.*$/#define HAVE_WCHAR_H 1/
86/^#undef DEVICE_SEP *$/s/^.*$/#define DEVICE_SEP ':'/ 85/^#undef DEVICE_SEP *$/s/^.*$/#define DEVICE_SEP ':'/
87/^#undef IS_DIRECTORY_SEP *$/s,^.*$,#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\'), 86/^#undef IS_DIRECTORY_SEP *$/s,^.*$,#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\'),
88/^#undef IS_DEVICE_SEP *$/s/^.*$/#define IS_DEVICE_SEP(_c_) ((_c_) == ':')/ 87/^#undef IS_DEVICE_SEP *$/s/^.*$/#define IS_DEVICE_SEP(_c_) ((_c_) == ':')/
@@ -91,6 +90,7 @@
91/^#undef NULL_DEVICE *$/s/^.*$/#define NULL_DEVICE "nul"/ 90/^#undef NULL_DEVICE *$/s/^.*$/#define NULL_DEVICE "nul"/
92/^#undef SEPCHAR *$/s/^.*$/#define SEPCHAR '\;'/ 91/^#undef SEPCHAR *$/s/^.*$/#define SEPCHAR '\;'/
93/^#undef USER_FULL_NAME *$/s/^.*$/#define USER_FULL_NAME (getenv ("NAME"))/ 92/^#undef USER_FULL_NAME *$/s/^.*$/#define USER_FULL_NAME (getenv ("NAME"))/
93/^# *undef _GNU_SOURCE *$/s/^.*$/#define _GNU_SOURCE 1/
94/^#undef inline/s/^.*$/#define inline __inline__/ 94/^#undef inline/s/^.*$/#define inline __inline__/
95/^#undef my_strftime/s/^.*$/#define my_strftime nstrftime/ 95/^#undef my_strftime/s/^.*$/#define my_strftime nstrftime/
96/^#undef restrict/s/^.*$/#define restrict __restrict/ 96/^#undef restrict/s/^.*$/#define restrict __restrict/
@@ -101,6 +101,7 @@
101s/^#undef STACK_DIRECTION *$/#define STACK_DIRECTION -1/ 101s/^#undef STACK_DIRECTION *$/#define STACK_DIRECTION -1/
102s/^#undef EMACS_CONFIGURATION *$/#define EMACS_CONFIGURATION "i386-pc-msdosdjgpp"/ 102s/^#undef EMACS_CONFIGURATION *$/#define EMACS_CONFIGURATION "i386-pc-msdosdjgpp"/
103s/^#undef EMACS_CONFIG_OPTIONS *$/#define EMACS_CONFIG_OPTIONS "msdos"/ 103s/^#undef EMACS_CONFIG_OPTIONS *$/#define EMACS_CONFIG_OPTIONS "msdos"/
104s/^#undef EMACS_CONFIG_FEATURES *$/#define EMACS_CONFIG_FEATURES ""/
104s/^#undef PROTOTYPES *$/#define PROTOTYPES 1/ 105s/^#undef PROTOTYPES *$/#define PROTOTYPES 1/
105s/^#undef POINTER_TYPE *$/#define POINTER_TYPE void/ 106s/^#undef POINTER_TYPE *$/#define POINTER_TYPE void/
106/^#undef HAVE_INTTYPES_H/c\ 107/^#undef HAVE_INTTYPES_H/c\
@@ -115,12 +116,14 @@ s/^#undef POINTER_TYPE *$/#define POINTER_TYPE void/
115#else\ 116#else\
116#undef HAVE_STDINT_H\ 117#undef HAVE_STDINT_H\
117#endif 118#endif
119s/^#undef HAVE_C_VARARRAYS *$/#define HAVE_C_VARARRAYS 1/
118s/^#undef HAVE_DECL_STRTOLL *$/#define HAVE_DECL_STRTOLL 1/ 120s/^#undef HAVE_DECL_STRTOLL *$/#define HAVE_DECL_STRTOLL 1/
119s/^#undef HAVE_DECL_STRTOULL *$/#define HAVE_DECL_STRTOULL 1/ 121s/^#undef HAVE_DECL_STRTOULL *$/#define HAVE_DECL_STRTOULL 1/
120s/^#undef HAVE_DECL_STRTOIMAX *$/#define HAVE_DECL_STRTOIMAX 1/ 122s/^#undef HAVE_DECL_STRTOIMAX *$/#define HAVE_DECL_STRTOIMAX 1/
121s/^#undef HAVE_DECL_STRTOUMAX *$/#define HAVE_DECL_STRTOUMAX 1/ 123s/^#undef HAVE_DECL_STRTOUMAX *$/#define HAVE_DECL_STRTOUMAX 1/
122s/^#undef HAVE_STRTOLL *$/#define HAVE_STRTOLL 1/ 124s/^#undef HAVE_STRTOLL *$/#define HAVE_STRTOLL 1/
123s/^#undef HAVE_STRTOULL *$/#define HAVE_STRTOULL 1/ 125s/^#undef HAVE_STRTOULL *$/#define HAVE_STRTOULL 1/
126s/^#undef HAVE_PUTENV *$/#define HAVE_PUTENV 1/
124/^#undef HAVE_SIGSET_T *$/s/^.*$/#define HAVE_SIGSET_T 1/ 127/^#undef HAVE_SIGSET_T *$/s/^.*$/#define HAVE_SIGSET_T 1/
125/^#undef HAVE_SNPRINTF/c\ 128/^#undef HAVE_SNPRINTF/c\
126#if __DJGPP__ > 2 || __DJGPP_MINOR__ > 3\ 129#if __DJGPP__ > 2 || __DJGPP_MINOR__ > 3\
diff --git a/msdos/sed3v2.inp b/msdos/sed3v2.inp
index 711f8fedba6..49f2b761984 100644
--- a/msdos/sed3v2.inp
+++ b/msdos/sed3v2.inp
@@ -15,11 +15,8 @@
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16# 16#
17# ---------------------------------------------------------------------- 17# ----------------------------------------------------------------------
18/^# DIST: /d
19/^SHELL *=/s/^/# / 18/^SHELL *=/s/^/# /
20/^CC *=/s/=.*$/=gcc/ 19/^CC *=/s/=.*$/=gcc -std=gnu99/
21s/-DVERSION[^ ]* //
22/^configname *=/s/=.*$/=msdos/
23/^archlibdir *=/s!=.*$!=/emacs/bin! 20/^archlibdir *=/s!=.*$!=/emacs/bin!
24/^bindir *=/s!=.*$!=/emacs/bin! 21/^bindir *=/s!=.*$!=/emacs/bin!
25/^libdir *=/s!=.*$!=/emacs/bin! 22/^libdir *=/s!=.*$!=/emacs/bin!
@@ -38,12 +35,17 @@ s/-DVERSION[^ ]* //
38/^LIB_CLOCK_GETTIME *=/s/@[^@\n]*@//g 35/^LIB_CLOCK_GETTIME *=/s/@[^@\n]*@//g
39/^LIB_TIMER_TIME *=/s/@[^@\n]*@//g 36/^LIB_TIMER_TIME *=/s/@[^@\n]*@//g
40/^CFLAGS *=/s!=.*$!=-O2 -g! 37/^CFLAGS *=/s!=.*$!=-O2 -g!
38/^CPPFLAGS *=/s/@CPPFLAGS@//
39/^LDFLAGS *=/s/@LDFLAGS@//
41/^C_SWITCH_SYSTEM *=/s!=.*$!=-DMSDOS -I../msdos! 40/^C_SWITCH_SYSTEM *=/s!=.*$!=-DMSDOS -I../msdos!
42/^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@// 41/^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
43/^WARN_CFLAGS *=/s/@WARN_CFLAGS@// 42/^WARN_CFLAGS *=/s/@WARN_CFLAGS@//
44/^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@// 43/^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@//
45/^UPDATE_MANIFEST *=/s/@UPDATE_MANIFEST@// 44/^UPDATE_MANIFEST *=/s/@UPDATE_MANIFEST@//
46/^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@// 45/^PROFILING_CFLAGS *=/s/@PROFILING_CFLAGS@//
46/^AM_DEFAULT_VERBOSITY *=/s/@AM_DEFAULT_VERBOSITY@/1/
47/^[Aa][Mm]_/s/@AM_V@/$(V)/
48/^[Aa][Mm]_/s/@AM_DEFAULT_V@/$(AM_DEFAULT_VERBOSITY)/
47/^ALLOCA *=/s!@ALLOCA@!! 49/^ALLOCA *=/s!@ALLOCA@!!
48/^EXEEXT *=/s!@EXEEXT@!.exe! 50/^EXEEXT *=/s!@EXEEXT@!.exe!
49/^CLIENTW *=/s/@CLIENTW@// 51/^CLIENTW *=/s/@CLIENTW@//
@@ -56,9 +58,6 @@ s/-DVERSION[^ ]* //
56/^GETOPT_H *=/s!@GETOPT_H@!getopt.h! 58/^GETOPT_H *=/s!@GETOPT_H@!getopt.h!
57/^GETOPTOBJS *=/s!@GETOPTOBJS@!getopt.o getopt1.o! 59/^GETOPTOBJS *=/s!@GETOPTOBJS@!getopt.o getopt1.o!
58/^INSTALLABLES/s/emacsclient[^ ]* *// 60/^INSTALLABLES/s/emacsclient[^ ]* *//
59s!^ \./! !
60/^UTILITIES *=/,/^$/{ 61/^UTILITIES *=/,/^$/{
61 s/movemail[^ ]* *// 62 s/movemail[^ ]* *//
62} 63}
63/^insrcdir=/s/^.*$/\#&/
64/^ *\$(insrcdir) ||/s,\$(insrcdir) ||,command.com /c if not exist $(<F),
diff --git a/msdos/sed6.inp b/msdos/sed6.inp
index 5df8c2776b9..a209d7ac6b9 100644
--- a/msdos/sed6.inp
+++ b/msdos/sed6.inp
@@ -19,28 +19,16 @@
19/^srcdir *=/s/@[^@\n]*@/./ 19/^srcdir *=/s/@[^@\n]*@/./
20/^VPATH *=/s/@[^@\n]*@/./ 20/^VPATH *=/s/@[^@\n]*@/./
21/^MAKEINFO *=/s/@[^@\n]*@/makeinfo/ 21/^MAKEINFO *=/s/@[^@\n]*@/makeinfo/
22/^INFO_EXT *=/s/@[^@\n]*@/.info/ 22/^AM_DEFAULT_VERBOSITY *=/s/@AM_DEFAULT_VERBOSITY@/1/
23/^INFO_OPTS *=/s/@[^@\n]*@/--no-split/ 23/^[Aa][Mm]_/s/@AM_V@/$(V)/
24/^[Aa][Mm]_/s/@AM_DEFAULT_V@/$(AM_DEFAULT_VERBOSITY)/
24/^ENVADD/,/^$/c\ 25/^ENVADD/,/^$/c\
25ENVADD =\ 26ENVADD =\
26export TEXINPUTS := $(srcdir)";"$(TEXINPUTS)\ 27export TEXINPUTS := $(srcdir)";"$(texinfodir)";"$(TEXINPUTS)\
27export MAKEINFO := $(MAKEINFO) $(MAKEINFO_OPTS) 28export MAKEINFO := $(MAKEINFO) $(MAKEINFO_OPTS)
28/^SHELL *=/s/^/# / 29/^SHELL *=/s/^/# /
29/^elisp.dvi:/,/^$/ { 30/^doc-emacsver:/,/^$/ {
30 /^ *if \[ *\a${permuted_index}/,/^ *fi *$/c\ 31 s/emacsver\.texi\.in/emacsver.in/g
31 command.com /c 'if not a${permuted_index}==a sh ./permute-index' \ 32 s/\.texi\.\$\$\$\$/.tmp/g
32 command.com /c 'if not a${permuted_index}==a mv permuted.fns elisp.fns' \ 33 s/[^ ]*move-if-change/update/
33 command.com /c 'if not a${permuted_index}==a texindex elisp.tp' \
34 command.com /c 'if a${permuted_index}==a texindex elisp.??'
35} 34}
36/^index.texi:/,/^$/ {
37 /^ *if \[ *\a${permuted_index}/,/^ *fi *$/c\
38 command.com /c 'if not a${permuted_index}==a cp -p ./index.perm index.texi' \
39 command.com /c 'if a${permuted_index}==a cp -p ./index.unperm index.texi'
40}
41/^maintainer-clean:/,/^$/ {
42 s/^ for file in $(INFO_TARGETS)\; do rm -f.*$/ rm -f $(INFO_TARGETS)/
43}
44
45/^mkinfodir *=/s| @.*$|@command.com /c if not exist ..\\..\\info\\emacs$(INFO_EXT) mkdir ..\\..\\info|
46
diff --git a/msdos/sedadmin.inp b/msdos/sedadmin.inp
index 95c7c0636fb..77812e8f757 100644
--- a/msdos/sedadmin.inp
+++ b/msdos/sedadmin.inp
@@ -15,15 +15,11 @@
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16# 16#
17# ---------------------------------------------------------------------- 17# ----------------------------------------------------------------------
18/^SHELL *=/s/^/# / 18/^SHELL *=/s!@SHELL@!/bin/sh!
19/^AWK *=/s/@AWK@/gawk/
19/^srcdir *=/s/@[^@\n]*@/./ 20/^srcdir *=/s/@[^@\n]*@/./
20/^top_srcdir *=/s|@[^@\n]*@|../..| 21/^top_srcdir *=/s|@[^@\n]*@|../..|
21/^top_builddir *=/s|@[^@\n]*@|../..| 22/^top_builddir *=/s|@[^@\n]*@|../..|
22 23/^AM_DEFAULT_VERBOSITY *=/s/@AM_DEFAULT_VERBOSITY@/1/
23/^ *-if /,/^ *fi/d 24/^[Aa][Mm]_/s/@AM_V@/$(V)/
24/^ *if test -f charprop/,/^ *fi/c\ 25/^[Aa][Mm]_/s/@AM_DEFAULT_V@/$(AM_DEFAULT_VERBOSITY)/
25 rm -f uni-*.el
26/^ *if test -f \${DSTDIR/,/^ *fi/c\
27 rm -f ${DSTDIR}/uni-*.el ${DSTDIR}/charprop.el
28/^ *cp `sed -n/c\
29 cp uni-*.el ${DSTDIR}
diff --git a/msdos/sedleim.inp b/msdos/sedleim.inp
index fcfcd08b55e..ecbfd4a112b 100644
--- a/msdos/sedleim.inp
+++ b/msdos/sedleim.inp
@@ -19,6 +19,11 @@
19SHELL=/xyzzy/command\ 19SHELL=/xyzzy/command\
20MAKESHELL=/xyzzy/command 20MAKESHELL=/xyzzy/command
21 21
22/^EXEEXT *=/s/@EXEEXT@/.exe/
23/^AM_DEFAULT_VERBOSITY *=/s/@AM_DEFAULT_VERBOSITY@/1/
24/^[Aa][Mm]_/s/@AM_V@/$(V)/
25/^[Aa][Mm]_/s/@AM_DEFAULT_V@/$(AM_DEFAULT_VERBOSITY)/
26
22/^srcdir=/s|srcdir=@srcdir@|srcdir := $(subst \\,/,$(shell cd))| 27/^srcdir=/s|srcdir=@srcdir@|srcdir := $(subst \\,/,$(shell cd))|
23 28
24# Need a relative directory name for the md command, otherwise it 29# Need a relative directory name for the md command, otherwise it
@@ -33,7 +38,6 @@ s|\([ ]\)echo|\1djecho|g
33export EMACSLOADPATH=\ 38export EMACSLOADPATH=\
34RUN_EMACS = ${EMACS} -batch --no-site-file --no-site-lisp 39RUN_EMACS = ${EMACS} -batch --no-site-file --no-site-lisp
35 40
36/^MKDIR_P *=/s,@MKDIR_P@,-command.com /c md, 41/^MKDIR_P *=/s,@MKDIR_P@,gmkdir -p,
37 42
38/MKDIR_P.* \${leimdir}\/.*$/s|\${leimdir}/|$(rel_leimdir)\\| 43/^\${leimdir}\/quail \${leimdir}\/ja-dic: *$/s|\${leimdir}/|$(rel_leimdir)\\|
39/MKDIR_P.* \$(leimdir)\/.*$/s|\$(leimdir)/|$(rel_leimdir)\\|
diff --git a/msdos/sedlibmk.inp b/msdos/sedlibmk.inp
index a5f938189be..9d71ef0e669 100644
--- a/msdos/sedlibmk.inp
+++ b/msdos/sedlibmk.inp
@@ -146,7 +146,7 @@ am__cd = cd
146/^ARFLAGS *=/s/@[^@\n]*@/cru/ 146/^ARFLAGS *=/s/@[^@\n]*@/cru/
147/^AWK *=/s/@[^@\n]*@/gawk/ 147/^AWK *=/s/@[^@\n]*@/gawk/
148/^CANNOT_DUMP *=/s/@[^@\n]*@/no/ 148/^CANNOT_DUMP *=/s/@[^@\n]*@/no/
149/^CC *=/s/@[^@\n]*@/gcc/ 149/^CC *=/s/@[^@\n]*@/gcc -std=gnu99/
150/^CPP *=/s/@[^@\n]*@/gcc -e/ 150/^CPP *=/s/@[^@\n]*@/gcc -e/
151/^CPPFLAGS *=/s/@[^@\n]*@// 151/^CPPFLAGS *=/s/@[^@\n]*@//
152/^CCDEPMODE *=/s/@[^@\n]*@/depmode=gcc3/ 152/^CCDEPMODE *=/s/@[^@\n]*@/depmode=gcc3/
@@ -163,7 +163,6 @@ am__cd = cd
163/^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@// 163/^WERROR_CFLAGS *=/s/@WERROR_CFLAGS@//
164/^DEFS *=/s/@[^@\n]*@// 164/^DEFS *=/s/@[^@\n]*@//
165/^DEPDIR *=/s/@[^@\n]*@/deps/ 165/^DEPDIR *=/s/@[^@\n]*@/deps/
166/^DEPFLAGS *=/s/@[^@\n]*@/-MMD -MF ${DEPDIR}\/$*.d/
167/^ECHO_N *=/s/@[^@\n]*@/-n/ 166/^ECHO_N *=/s/@[^@\n]*@/-n/
168/^EXEEXT *=/s/@[^@\n]*@/.exe/ 167/^EXEEXT *=/s/@[^@\n]*@/.exe/
169/^EXECINFO_H *=/s/@[^@\n]*@/execinfo.h/ 168/^EXECINFO_H *=/s/@[^@\n]*@/execinfo.h/
@@ -190,7 +189,9 @@ am__cd = cd
190/^GNULIB_GL_UNISTD_H_GETOPT *=/s/@GNULIB_GL_UNISTD_H_GETOPT@/1/ 189/^GNULIB_GL_UNISTD_H_GETOPT *=/s/@GNULIB_GL_UNISTD_H_GETOPT@/1/
191/^GNULIB_MEMRCHR *=/s/@GNULIB_MEMRCHR@/1/ 190/^GNULIB_MEMRCHR *=/s/@GNULIB_MEMRCHR@/1/
192/^GNULIB_MKOSTEMP *=/s/@GNULIB_MKOSTEMP@/1/ 191/^GNULIB_MKOSTEMP *=/s/@GNULIB_MKOSTEMP@/1/
192/^GNULIB_MKTIME *=/s/@GNULIB_MKTIME@/1/
193/^GNULIB_TIME_R *=/s/@GNULIB_TIME_R@/1/ 193/^GNULIB_TIME_R *=/s/@GNULIB_TIME_R@/1/
194/^GNULIB_TIME_RZ *=/s/@GNULIB_TIME_RZ@/1/
194/^GNULIB_UNSETENV *=/s/@GNULIB_UNSETENV@/1/ 195/^GNULIB_UNSETENV *=/s/@GNULIB_UNSETENV@/1/
195/^GNULIB_[^ =]* *= *@/s/@[^@\n]*@/0/ 196/^GNULIB_[^ =]* *= *@/s/@[^@\n]*@/0/
196/^GSETTINGS_CFLAGS *=/s/@[^@\n]*@// 197/^GSETTINGS_CFLAGS *=/s/@[^@\n]*@//
@@ -218,6 +219,7 @@ am__cd = cd
218/^HAVE_LONG_LONG_INT *=/s/@HAVE_LONG_LONG_INT@/1/ 219/^HAVE_LONG_LONG_INT *=/s/@HAVE_LONG_LONG_INT@/1/
219/^HAVE_LSTAT *=/s/@HAVE_LSTAT@/HAVE_LSTAT/ 220/^HAVE_LSTAT *=/s/@HAVE_LSTAT@/HAVE_LSTAT/
220/^HAVE_MAKEINFO *=/s/@HAVE_MAKEINFO@/yes/ 221/^HAVE_MAKEINFO *=/s/@HAVE_MAKEINFO@/yes/
222/^HAVE_MAX_ALIGN_T *=/s/@HAVE_MAX_ALIGN_T@/0/
221/^HAVE_MEMCHR *=/s/@HAVE_MEMCHR@/1/ 223/^HAVE_MEMCHR *=/s/@HAVE_MEMCHR@/1/
222/^HAVE_MKFIFO *=/s/@HAVE_MKFIFO@/1/ 224/^HAVE_MKFIFO *=/s/@HAVE_MKFIFO@/1/
223/^HAVE_MKNOD *=/s/@HAVE_MKNOD@/1/ 225/^HAVE_MKNOD *=/s/@HAVE_MKNOD@/1/
@@ -272,8 +274,7 @@ am__cd = cd
272/^NEXT_AS_FIRST_DIRECTIVE_FCNTL_H *=/s/@[^@\n]*@/<fcntl.h>/ 274/^NEXT_AS_FIRST_DIRECTIVE_FCNTL_H *=/s/@[^@\n]*@/<fcntl.h>/
273/^NEXT_AS_FIRST_DIRECTIVE_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/ 275/^NEXT_AS_FIRST_DIRECTIVE_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/
274/^NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H *=/s/@[^@\n]*@/<signal.h>/ 276/^NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H *=/s/@[^@\n]*@/<signal.h>/
275/^NEXT_AS_FIRST_DIRECTIVE_STDARG_H *=/s/@[^@\n]*@// 277/^NEXT_AS_FIRST_DIRECTIVE_STDDEF_H *=/s/@[^@\n]*@/<stddef.h>/
276/^NEXT_AS_FIRST_DIRECTIVE_STDDEF_H *=/s/@[^@\n]*@//
277/^NEXT_AS_FIRST_DIRECTIVE_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/ 278/^NEXT_AS_FIRST_DIRECTIVE_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/
278/^NEXT_AS_FIRST_DIRECTIVE_STDIO_H *=/s/@[^@\n]*@/<stdio.h>/ 279/^NEXT_AS_FIRST_DIRECTIVE_STDIO_H *=/s/@[^@\n]*@/<stdio.h>/
279/^NEXT_AS_FIRST_DIRECTIVE_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/ 280/^NEXT_AS_FIRST_DIRECTIVE_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/
@@ -288,9 +289,8 @@ am__cd = cd
288/^NEXT_ERRNO_H *=/s/@[^@\n]*@// 289/^NEXT_ERRNO_H *=/s/@[^@\n]*@//
289/^NEXT_FCNTL_H *=/s/@[^@\n]*@/<fcntl.h>/ 290/^NEXT_FCNTL_H *=/s/@[^@\n]*@/<fcntl.h>/
290/^NEXT_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/ 291/^NEXT_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/
291/^NEXT_STDARG_H *=/s/@[^@\n]*@//
292/^NEXT_SIGNAL_H *=/s/@[^@\n]*@/<signal.h>/ 292/^NEXT_SIGNAL_H *=/s/@[^@\n]*@/<signal.h>/
293/^NEXT_STDDEF_H *=/s/@[^@\n]*@// 293/^NEXT_STDDEF_H *=/s/@[^@\n]*@/<stddef.h>/
294/^NEXT_STDIO_H *=/s/@[^@\n]*@/<stdio.h>/ 294/^NEXT_STDIO_H *=/s/@[^@\n]*@/<stdio.h>/
295/^NEXT_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/ 295/^NEXT_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/
296/^NEXT_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/ 296/^NEXT_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/
@@ -307,7 +307,8 @@ am__cd = cd
307/^PTHREAD_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/ 307/^PTHREAD_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/
308/^PTRDIFF_T_SUFFIX *=/s/@[^@\n]*@// 308/^PTRDIFF_T_SUFFIX *=/s/@[^@\n]*@//
309/^RANLIB *=/s/@[^@\n]*@/ranlib/ 309/^RANLIB *=/s/@[^@\n]*@/ranlib/
310# We never want any gnulib replacement functions 310/^REPLACE_MKTIME *=/s/@[^@\n]*@/1/
311# We don't want any other gnulib replacement functions
311/^REPLACE_[^ =]* *= *@/s/@[^@\n]*@/0/ 312/^REPLACE_[^ =]* *= *@/s/@[^@\n]*@/0/
312/^SIG_ATOMIC_T_SUFFIX *=/s/@SIG_ATOMIC_T_SUFFIX@// 313/^SIG_ATOMIC_T_SUFFIX *=/s/@SIG_ATOMIC_T_SUFFIX@//
313/^SIZE_T_SUFFIX *=/s/@SIZE_T_SUFFIX@/u/ 314/^SIZE_T_SUFFIX *=/s/@SIZE_T_SUFFIX@/u/
@@ -316,15 +317,14 @@ am__cd = cd
316/^DIRENT_H *=/s/@[^@\n]*@// 317/^DIRENT_H *=/s/@[^@\n]*@//
317/^ERRNO_H *=/s/@[^@\n]*@// 318/^ERRNO_H *=/s/@[^@\n]*@//
318/^EXECINFO_H *=/s/@[^@\n]*@/execinfo.h/ 319/^EXECINFO_H *=/s/@[^@\n]*@/execinfo.h/
319/^STDBOOL_H *=/s/@[^@\n]*@//
320/^STDALIGN_H *=/s/@[^@\n]*@/stdalign.h/ 320/^STDALIGN_H *=/s/@[^@\n]*@/stdalign.h/
321/^STDARG_H *=/s/@[^@\n]*@// 321/^STDDEF_H *=/s/@[^@\n]*@/stddef.h/
322/^STDDEF_H *=/s/@[^@\n]*@//
323/^STDINT_H *=/s/@[^@\n]*@/stdint.h/ 322/^STDINT_H *=/s/@[^@\n]*@/stdint.h/
324/^SYS_TIME_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/ 323/^SYS_TIME_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/
325/^TIME_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/ 324/^TIME_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/
326/^UNISTD_H_HAVE_WINSOCK2_H *=/s/@[^@\n]*@/0/ 325/^UNISTD_H_HAVE_WINSOCK2_H *=/s/@[^@\n]*@/0/
327/^UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS *=/s/@[^@\n]*@/0/ 326/^UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS *=/s/@[^@\n]*@/0/
327/^UNISTD_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/
328/^UNDEFINE_STRTOK_R *=/s/@UNDEFINE_STRTOK_R@/0/ 328/^UNDEFINE_STRTOK_R *=/s/@UNDEFINE_STRTOK_R@/0/
329/^WCHAR_T_SUFFIX *=/s/@WCHAR_T_SUFFIX@/h/ 329/^WCHAR_T_SUFFIX *=/s/@WCHAR_T_SUFFIX@/h/
330/^WINT_T_SUFFIX *=/s/@WINT_T_SUFFIX@// 330/^WINT_T_SUFFIX *=/s/@WINT_T_SUFFIX@//
@@ -334,7 +334,7 @@ am__cd = cd
334/am__append_[1-9][0-9]* *=.*gettext\.h/s/@[^@\n]*@/\#/ 334/am__append_[1-9][0-9]* *=.*gettext\.h/s/@[^@\n]*@/\#/
335/am__append_2 *=.*verify\.h/s/@[^@\n]*@// 335/am__append_2 *=.*verify\.h/s/@[^@\n]*@//
336/^@gl_GNULIB_ENABLED_tempname_TRUE@/s/@[^@\n]*@// 336/^@gl_GNULIB_ENABLED_tempname_TRUE@/s/@[^@\n]*@//
337/^gl_LIBOBJS *=/s/@[^@\n]*@/getopt.o getopt1.o memrchr.o sig2str.o time_r.o getloadavg.o pthread_sigmask.o mkostemp.o fpending.o fdatasync.o execinfo.o/ 337/^gl_LIBOBJS *=/s/@[^@\n]*@/getopt.o getopt1.o memrchr.o sig2str.o time_r.o time_rz.o timegm.o mktime.o getloadavg.o pthread_sigmask.o mkostemp.o fpending.o fdatasync.o execinfo.o/
338/^am__append_[1-9][0-9]* *=/,/^[^ ]/{ 338/^am__append_[1-9][0-9]* *=/,/^[^ ]/{
339 s/ *inttypes\.h// 339 s/ *inttypes\.h//
340 s| *sys/select\.h|| 340 s| *sys/select\.h||
@@ -342,13 +342,13 @@ am__cd = cd
342} 342}
343/^am_libgnu_a_OBJECTS *=/,/^[^ ]/{ 343/^am_libgnu_a_OBJECTS *=/,/^[^ ]/{
344 s/allocator\.\$(OBJEXT) // 344 s/allocator\.\$(OBJEXT) //
345 s/binary-io\.\$(OBJEXT) //
346 s/careadlinkat\.\$(OBJEXT) // 345 s/careadlinkat\.\$(OBJEXT) //
347 s/pipe2\.\$(OBJEXT) // 346 s/pipe2\.\$(OBJEXT) //
348 s/acl-errno-valid\.\$(OBJEXT) // 347 s/acl-errno-valid\.\$(OBJEXT) //
349 s/file-has-acl\.\$(OBJEXT) // 348 s/acl-internal\.\$(OBJEXT) //
349 s/get-permissions\.\$(OBJEXT) //
350 s/set-permissions\.\$(OBJEXT) //
350 s/qcopy-acl\.\$(OBJEXT) // 351 s/qcopy-acl\.\$(OBJEXT) //
351 s/qset-acl\.\$(OBJEXT) //
352 s/openat-die\.\$(OBJEXT) // 352 s/openat-die\.\$(OBJEXT) //
353 s/save-cwd\.\$(OBJEXT) // 353 s/save-cwd\.\$(OBJEXT) //
354} 354}
@@ -396,13 +396,9 @@ s/^@GL_GENERATE_ERRNO_H_TRUE@/\#/
396s/^@GL_GENERATE_ERRNO_H_FALSE@// 396s/^@GL_GENERATE_ERRNO_H_FALSE@//
397s/^@GL_GENERATE_EXECINFO_H_TRUE@// 397s/^@GL_GENERATE_EXECINFO_H_TRUE@//
398s/^@GL_GENERATE_EXECINFO_H_FALSE@/\#/ 398s/^@GL_GENERATE_EXECINFO_H_FALSE@/\#/
399s/^@GL_GENERATE_STDBOOL_H_TRUE@/\#/
400s/^@GL_GENERATE_STDBOOL_H_FALSE@//
401s/^@GL_GENERATE_STDALIGN_H_TRUE@// 399s/^@GL_GENERATE_STDALIGN_H_TRUE@//
402s/^@GL_GENERATE_STDALIGN_H_FALSE@/\#/ 400s/^@GL_GENERATE_STDALIGN_H_FALSE@/\#/
403s/^@GL_GENERATE_STDARG_H_TRUE@/\#/ 401s/^@GL_GENERATE_STDDEF_H_TRUE@//
404s/^@GL_GENERATE_STDARG_H_FALSE@/\#/
405s/^@GL_GENERATE_STDDEF_H_TRUE@/\#/
406s/^@GL_GENERATE_STDDEF_H_FALSE@/\#/ 402s/^@GL_GENERATE_STDDEF_H_FALSE@/\#/
407s/^@GL_GENERATE_STDINT_H_TRUE@// 403s/^@GL_GENERATE_STDINT_H_TRUE@//
408s/^@GL_GENERATE_STDINT_H_FALSE@/\#/ 404s/^@GL_GENERATE_STDINT_H_FALSE@/\#/
diff --git a/msdos/sedlisp.inp b/msdos/sedlisp.inp
index 7fa476eb072..17aa168e843 100644
--- a/msdos/sedlisp.inp
+++ b/msdos/sedlisp.inp
@@ -23,5 +23,9 @@ export FNCASE=y
23/^lisp *=/s|\$(srcdir)|$(CURDIR)| 23/^lisp *=/s|\$(srcdir)|$(CURDIR)|
24/^srcdir *=/s|@srcdir@|.| 24/^srcdir *=/s|@srcdir@|.|
25/^top_srcdir *=/s|@top_srcdir@|./..| 25/^top_srcdir *=/s|@top_srcdir@|./..|
26/^EXEEXT *=/s/@EXEEXT@/.exe/
26/^XARGS_LIMIT *=/s|@XARGS_LIMIT@|| 27/^XARGS_LIMIT *=/s|@XARGS_LIMIT@||
28/^AM_DEFAULT_VERBOSITY *=/s/@AM_DEFAULT_VERBOSITY@/1/
29/^[Aa][Mm]_/s/@AM_V@/$(V)/
30/^[Aa][Mm]_/s/@AM_DEFAULT_V@/$(AM_DEFAULT_VERBOSITY)/
27 31
diff --git a/src/atimer.c b/src/atimer.c
index 70d9bf52bc2..64c9e8ab6cb 100644
--- a/src/atimer.c
+++ b/src/atimer.c
@@ -30,6 +30,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
30# include <sys/timerfd.h> 30# include <sys/timerfd.h>
31#endif 31#endif
32 32
33#ifdef MSDOS
34#include "msdos.h"
35#endif
36
33/* Free-list of atimer structures. */ 37/* Free-list of atimer structures. */
34 38
35static struct atimer *free_atimers; 39static struct atimer *free_atimers;
diff --git a/src/conf_post.h b/src/conf_post.h
index d0f04b63700..209f60792cf 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -145,6 +145,9 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
145# define HAVE_LSTAT 1 145# define HAVE_LSTAT 1
146#else 146#else
147# define lstat stat 147# define lstat stat
148/* DJGPP 2.03 and older don't have the next two. */
149# define EOVERFLOW ERANGE
150# define SIZE_MAX 4294967295U
148#endif 151#endif
149 152
150/* We must intercept 'opendir' calls to stash away the directory name, 153/* We must intercept 'opendir' calls to stash away the directory name,
diff --git a/src/deps.mk b/src/deps.mk
index 0295e705a9c..72f68cabfc3 100644
--- a/src/deps.mk
+++ b/src/deps.mk
@@ -35,7 +35,7 @@
35### Code: 35### Code:
36 36
37atimer.o: atimer.c atimer.h syssignal.h systime.h lisp.h blockinput.h \ 37atimer.o: atimer.c atimer.h syssignal.h systime.h lisp.h blockinput.h \
38 globals.h ../lib/unistd.h $(config_h) 38 globals.h ../lib/unistd.h msdos.h $(config_h)
39bidi.o: bidi.c buffer.h character.h dispextern.h msdos.h lisp.h \ 39bidi.o: bidi.c buffer.h character.h dispextern.h msdos.h lisp.h \
40 globals.h $(config_h) 40 globals.h $(config_h)
41buffer.o: buffer.c buffer.h region-cache.h commands.h window.h \ 41buffer.o: buffer.c buffer.h region-cache.h commands.h window.h \
@@ -92,7 +92,7 @@ editfns.o: editfns.c window.h buffer.h systime.h $(INTERVALS_H) character.h \
92emacs.o: emacs.c commands.h systty.h syssignal.h blockinput.h process.h \ 92emacs.o: emacs.c commands.h systty.h syssignal.h blockinput.h process.h \
93 termhooks.h buffer.h atimer.h systime.h $(INTERVALS_H) lisp.h $(config_h) \ 93 termhooks.h buffer.h atimer.h systime.h $(INTERVALS_H) lisp.h $(config_h) \
94 globals.h ../lib/unistd.h window.h dispextern.h keyboard.h keymap.h \ 94 globals.h ../lib/unistd.h window.h dispextern.h keyboard.h keymap.h \
95 frame.h coding.h gnutls.h msdos.h unexec.h 95 frame.h coding.h gnutls.h msdos.h dosfns.h unexec.h
96fileio.o: fileio.c window.h buffer.h systime.h $(INTERVALS_H) character.h \ 96fileio.o: fileio.c window.h buffer.h systime.h $(INTERVALS_H) character.h \
97 coding.h msdos.h blockinput.h atimer.h lisp.h $(config_h) frame.h \ 97 coding.h msdos.h blockinput.h atimer.h lisp.h $(config_h) frame.h \
98 commands.h globals.h ../lib/unistd.h 98 commands.h globals.h ../lib/unistd.h
diff --git a/src/dosfns.h b/src/dosfns.h
index 9fbf7eda192..849fb91a7af 100644
--- a/src/dosfns.h
+++ b/src/dosfns.h
@@ -24,6 +24,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
24extern unsigned char dos_country_info[DOS_COUNTRY_INFO]; 24extern unsigned char dos_country_info[DOS_COUNTRY_INFO];
25extern int dos_memory_info (unsigned long *, unsigned long *, 25extern int dos_memory_info (unsigned long *, unsigned long *,
26 unsigned long *, unsigned long *); 26 unsigned long *, unsigned long *);
27void dos_cleanup (void);
28void syms_of_dosfns (void);
29void init_dosfns (void);
30
27#ifndef HAVE_X_WINDOWS 31#ifndef HAVE_X_WINDOWS
28extern int msdos_stdcolor_idx (const char *); 32extern int msdos_stdcolor_idx (const char *);
29extern Lisp_Object msdos_stdcolor_name (int); 33extern Lisp_Object msdos_stdcolor_name (int);
diff --git a/src/emacs.c b/src/emacs.c
index d1d649dfcfd..5c187e76ba1 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -54,6 +54,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
54 54
55#ifdef MSDOS 55#ifdef MSDOS
56#include <binary-io.h> 56#include <binary-io.h>
57#include "dosfns.h"
57#endif 58#endif
58 59
59#ifdef HAVE_WINDOW_SYSTEM 60#ifdef HAVE_WINDOW_SYSTEM
diff --git a/src/filelock.c b/src/filelock.c
index bc3a6209a8d..8aaa656438d 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -53,6 +53,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
53#include "w32.h" /* for dostounix_filename */ 53#include "w32.h" /* for dostounix_filename */
54#endif 54#endif
55 55
56#ifndef MSDOS
57
56#ifdef HAVE_UTMP_H 58#ifdef HAVE_UTMP_H
57#include <utmp.h> 59#include <utmp.h>
58#endif 60#endif
@@ -742,6 +744,19 @@ unlock_file (Lisp_Object fn)
742 SAFE_FREE (); 744 SAFE_FREE ();
743} 745}
744 746
747#else /* MSDOS */
748void
749lock_file (Lisp_Object fn)
750{
751}
752
753void
754unlock_file (Lisp_Object fn)
755{
756}
757
758#endif /* MSDOS */
759
745void 760void
746unlock_all_files (void) 761unlock_all_files (void)
747{ 762{
@@ -805,6 +820,9 @@ The value is nil if the FILENAME is not locked,
805t if it is locked by you, else a string saying which user has locked it. */) 820t if it is locked by you, else a string saying which user has locked it. */)
806 (Lisp_Object filename) 821 (Lisp_Object filename)
807{ 822{
823#ifdef MSDOS
824 return Qnil;
825#else
808 Lisp_Object ret; 826 Lisp_Object ret;
809 char *lfname; 827 char *lfname;
810 int owner; 828 int owner;
@@ -825,6 +843,7 @@ t if it is locked by you, else a string saying which user has locked it. */)
825 843
826 SAFE_FREE (); 844 SAFE_FREE ();
827 return ret; 845 return ret;
846#endif
828} 847}
829 848
830void 849void
diff --git a/src/fns.c b/src/fns.c
index 47ed2d82207..a65863ce0e8 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -32,8 +32,13 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
32#include "intervals.h" 32#include "intervals.h"
33#include "window.h" 33#include "window.h"
34 34
35#if __GNUC__ >= 4
35static void sort_vector_copy (Lisp_Object, ptrdiff_t, 36static void sort_vector_copy (Lisp_Object, ptrdiff_t,
36 Lisp_Object [restrict], Lisp_Object [restrict]); 37 Lisp_Object [restrict], Lisp_Object [restrict]);
38#else
39static void sort_vector_copy (Lisp_Object, ptrdiff_t,
40 Lisp_Object [], Lisp_Object []);
41#endif
37static bool internal_equal (Lisp_Object, Lisp_Object, int, bool, Lisp_Object); 42static bool internal_equal (Lisp_Object, Lisp_Object, int, bool, Lisp_Object);
38 43
39DEFUN ("identity", Fidentity, Sidentity, 1, 1, 0, 44DEFUN ("identity", Fidentity, Sidentity, 1, 1, 0,
diff --git a/src/frame.c b/src/frame.c
index 53ff05965c1..00f25f7e911 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -509,10 +509,13 @@ adjust_frame_size (struct frame *f, int new_width, int new_height, int inhibit,
509 block_input (); 509 block_input ();
510 510
511#ifdef MSDOS 511#ifdef MSDOS
512 /* We only can set screen dimensions to certain values supported 512 /* We only can set screen dimensions to certain values supported by
513 by our video hardware. Try to find the smallest size greater 513 our video hardware. Try to find the smallest size greater or
514 or equal to the requested dimensions. */ 514 equal to the requested dimensions, while accounting for the fact
515 dos_set_window_size (&new_lines, &new_cols); 515 that the menu-bar lines are not counted in the frame height. */
516 int dos_new_lines = new_lines + FRAME_TOP_MARGIN (f);
517 dos_set_window_size (&dos_new_lines, &new_cols);
518 new_lines = dos_new_lines - FRAME_TOP_MARGIN (f);
516#endif 519#endif
517 520
518 if (new_windows_width != old_windows_width) 521 if (new_windows_width != old_windows_width)
diff --git a/src/lread.c b/src/lread.c
index 91469230b7e..d374406e7b9 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -46,6 +46,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
46 46
47#ifdef MSDOS 47#ifdef MSDOS
48#include "msdos.h" 48#include "msdos.h"
49#if __DJGPP__ == 2 && __DJGPP_MINOR__ < 5
50# define INFINITY __builtin_inf()
51# define NAN __builtin_nan("")
52#endif
49#endif 53#endif
50 54
51#ifdef HAVE_NS 55#ifdef HAVE_NS
diff --git a/src/msdos.c b/src/msdos.c
index 84e8c39ec0c..62411ea2f6d 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -59,6 +59,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
59#include <libc/dosio.h> /* for _USE_LFN */ 59#include <libc/dosio.h> /* for _USE_LFN */
60#include <conio.h> /* for cputs */ 60#include <conio.h> /* for cputs */
61 61
62#if (__DJGPP__ + (__DJGPP_MINOR__ > 3)) >= 3
63#define SYS_ENVIRON _environ
64#else
65#define SYS_ENVIRON environ
66#endif
67
62#include "msdos.h" 68#include "msdos.h"
63#include "systime.h" 69#include "systime.h"
64#include "frame.h" 70#include "frame.h"
@@ -422,8 +428,6 @@ static unsigned long screen_old_address = 0;
422/* Segment and offset of the virtual screen. If 0, DOS/V is NOT loaded. */ 428/* Segment and offset of the virtual screen. If 0, DOS/V is NOT loaded. */
423static unsigned short screen_virtual_segment = 0; 429static unsigned short screen_virtual_segment = 0;
424static unsigned short screen_virtual_offset = 0; 430static unsigned short screen_virtual_offset = 0;
425extern Lisp_Object Qcursor_type;
426extern Lisp_Object Qbar, Qhbar;
427 431
428/* The screen colors of the current frame, which serve as the default 432/* The screen colors of the current frame, which serve as the default
429 colors for newly-created frames. */ 433 colors for newly-created frames. */
@@ -1384,11 +1388,6 @@ IT_delete_glyphs (struct frame *f, int n)
1384 1388
1385/* This was copied from xfaces.c */ 1389/* This was copied from xfaces.c */
1386 1390
1387extern Lisp_Object Qbackground_color;
1388extern Lisp_Object Qforeground_color;
1389Lisp_Object Qreverse;
1390extern Lisp_Object Qtitle;
1391
1392/* IT_set_terminal_modes is called when emacs is started, 1391/* IT_set_terminal_modes is called when emacs is started,
1393 resumed, and whenever the screen is redrawn! */ 1392 resumed, and whenever the screen is redrawn! */
1394 1393
@@ -3710,7 +3709,7 @@ dos_ttcooked (void)
3710 file TEMPOUT and stderr to TEMPERR. */ 3709 file TEMPOUT and stderr to TEMPERR. */
3711 3710
3712int 3711int
3713run_msdos_command (unsigned char **argv, const char *working_dir, 3712run_msdos_command (char **argv, const char *working_dir,
3714 int tempin, int tempout, int temperr, char **envv) 3713 int tempin, int tempout, int temperr, char **envv)
3715{ 3714{
3716 char *saveargv1, *saveargv2, *lowcase_argv0, *pa, *pl; 3715 char *saveargv1, *saveargv2, *lowcase_argv0, *pa, *pl;
@@ -3796,8 +3795,8 @@ run_msdos_command (unsigned char **argv, const char *working_dir,
3796 ; 3795 ;
3797 if (*cmnd) 3796 if (*cmnd)
3798 { 3797 {
3799 extern char **environ; 3798 extern char **SYS_ENVIRON;
3800 char **save_env = environ; 3799 char **save_env = SYS_ENVIRON;
3801 int save_system_flags = __system_flags; 3800 int save_system_flags = __system_flags;
3802 3801
3803 /* Request the most powerful version of `system'. We need 3802 /* Request the most powerful version of `system'. We need
@@ -3809,16 +3808,16 @@ run_msdos_command (unsigned char **argv, const char *working_dir,
3809 | __system_handle_null_commands 3808 | __system_handle_null_commands
3810 | __system_emulate_chdir); 3809 | __system_emulate_chdir);
3811 3810
3812 environ = envv; 3811 SYS_ENVIRON = envv;
3813 result = system (cmnd); 3812 result = system (cmnd);
3814 __system_flags = save_system_flags; 3813 __system_flags = save_system_flags;
3815 environ = save_env; 3814 SYS_ENVIRON = save_env;
3816 } 3815 }
3817 else 3816 else
3818 result = 0; /* emulate Unixy shell behavior with empty cmd line */ 3817 result = 0; /* emulate Unixy shell behavior with empty cmd line */
3819 } 3818 }
3820 else 3819 else
3821 result = spawnve (P_WAIT, argv[0], (char **)argv, envv); 3820 result = spawnve (P_WAIT, argv[0], argv, envv);
3822 3821
3823 dup2 (inbak, 0); 3822 dup2 (inbak, 0);
3824 dup2 (outbak, 1); 3823 dup2 (outbak, 1);
@@ -4085,11 +4084,14 @@ sys_select (int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds,
4085 gettime (&t); 4084 gettime (&t);
4086 clnow = make_timespec (t.tv_sec, t.tv_nsec); 4085 clnow = make_timespec (t.tv_sec, t.tv_nsec);
4087 cldiff = timespec_sub (clnow, cllast); 4086 cldiff = timespec_sub (clnow, cllast);
4087 /* Stop when timeout value is about to cross zero. */
4088 if (timespec_cmp (*timeout, cldiff) <= 0)
4089 {
4090 timeout->tv_sec = 0;
4091 timeout->tv_nsec = 0;
4092 return 0;
4093 }
4088 *timeout = timespec_sub (*timeout, cldiff); 4094 *timeout = timespec_sub (*timeout, cldiff);
4089
4090 /* Stop when timeout value crosses zero. */
4091 if (timespec_sign (*timeout) <= 0)
4092 return 0;
4093 cllast = clnow; 4095 cllast = clnow;
4094 dos_yield_time_slice (); 4096 dos_yield_time_slice ();
4095 } 4097 }
diff --git a/src/msdos.h b/src/msdos.h
index 863ca486e8d..0c3ba2bfa16 100644
--- a/src/msdos.h
+++ b/src/msdos.h
@@ -41,8 +41,12 @@ void mouse_on (void);
41void mouse_off (void); 41void mouse_off (void);
42void mouse_moveto (int, int); 42void mouse_moveto (int, int);
43 43
44void IT_set_frame_parameters (struct frame *, Lisp_Object);
45
44#include <sys/types.h> 46#include <sys/types.h>
45#include <sys/stat.h> 47#include <sys/stat.h>
48#include <pc.h>
49#include <signal.h>
46 50
47#if __DJGPP__ == 2 && __DJGPP_MINOR__ < 4 51#if __DJGPP__ == 2 && __DJGPP_MINOR__ < 4
48int readlink (const char *, char *, size_t); 52int readlink (const char *, char *, size_t);
@@ -50,6 +54,16 @@ int readlink (const char *, char *, size_t);
50ssize_t readlinkat (int, const char *, char *, size_t); 54ssize_t readlinkat (int, const char *, char *, size_t);
51int fstatat (int, char const *, struct stat *, int); 55int fstatat (int, char const *, struct stat *, int);
52int unsetenv (const char *); 56int unsetenv (const char *);
57int faccessat (int, const char *, int, int);
58void msdos_fatal_signal (int);
59void syms_of_msdos (void);
60int pthread_sigmask (int, const sigset_t *, sigset_t *);
61int dos_keysns (void);
62int dos_keyread (void);
63int run_msdos_command (char **, const char *, int, int, int, char **);
64
65void syms_of_win16select (void);
66
53 67
54/* Constants. */ 68/* Constants. */
55#define EINPROGRESS 112 69#define EINPROGRESS 112
diff --git a/src/process.c b/src/process.c
index dd508836f79..2c758a4c9a7 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4085,19 +4085,6 @@ Data that is unavailable is returned as nil. */)
4085#endif 4085#endif
4086} 4086}
4087 4087
4088/* If program file NAME starts with /: for quoting a magic
4089 name, remove that, preserving the multibyteness of NAME. */
4090
4091Lisp_Object
4092remove_slash_colon (Lisp_Object name)
4093{
4094 return
4095 ((SBYTES (name) > 2 && SREF (name, 0) == '/' && SREF (name, 1) == ':')
4096 ? make_specified_string (SSDATA (name) + 2, SCHARS (name) - 2,
4097 SBYTES (name) - 2, STRING_MULTIBYTE (name))
4098 : name);
4099}
4100
4101/* Turn off input and output for process PROC. */ 4088/* Turn off input and output for process PROC. */
4102 4089
4103static void 4090static void
@@ -7118,6 +7105,19 @@ add_timer_wait_descriptor (int fd)
7118 7105
7119#endif /* HAVE_TIMERFD */ 7106#endif /* HAVE_TIMERFD */
7120 7107
7108/* If program file NAME starts with /: for quoting a magic
7109 name, remove that, preserving the multibyteness of NAME. */
7110
7111Lisp_Object
7112remove_slash_colon (Lisp_Object name)
7113{
7114 return
7115 ((SBYTES (name) > 2 && SREF (name, 0) == '/' && SREF (name, 1) == ':')
7116 ? make_specified_string (SSDATA (name) + 2, SCHARS (name) - 2,
7117 SBYTES (name) - 2, STRING_MULTIBYTE (name))
7118 : name);
7119}
7120
7121/* Add DESC to the set of keyboard input descriptors. */ 7121/* Add DESC to the set of keyboard input descriptors. */
7122 7122
7123void 7123void
@@ -7643,13 +7643,6 @@ The variable takes effect when `start-process' is called. */);
7643 defsubr (&Sset_process_filter_multibyte); 7643 defsubr (&Sset_process_filter_multibyte);
7644 defsubr (&Sprocess_filter_multibyte_p); 7644 defsubr (&Sprocess_filter_multibyte_p);
7645 7645
7646#endif /* subprocesses */
7647
7648 defsubr (&Sget_buffer_process);
7649 defsubr (&Sprocess_inherit_coding_system_flag);
7650 defsubr (&Slist_system_processes);
7651 defsubr (&Sprocess_attributes);
7652
7653 { 7646 {
7654 Lisp_Object subfeatures = Qnil; 7647 Lisp_Object subfeatures = Qnil;
7655 const struct socket_options *sopt; 7648 const struct socket_options *sopt;
@@ -7684,4 +7677,10 @@ The variable takes effect when `start-process' is called. */);
7684 Fprovide (intern_c_string ("make-network-process"), subfeatures); 7677 Fprovide (intern_c_string ("make-network-process"), subfeatures);
7685 } 7678 }
7686 7679
7680#endif /* subprocesses */
7681
7682 defsubr (&Sget_buffer_process);
7683 defsubr (&Sprocess_inherit_coding_system_flag);
7684 defsubr (&Slist_system_processes);
7685 defsubr (&Sprocess_attributes);
7687} 7686}
diff --git a/src/w16select.c b/src/w16select.c
index 434a5987893..208cfccf11a 100644
--- a/src/w16select.c
+++ b/src/w16select.c
@@ -65,8 +65,6 @@ unsigned get_clipboard_data (unsigned, void *, unsigned, int);
65unsigned close_clipboard (void); 65unsigned close_clipboard (void);
66unsigned clipboard_compact (unsigned); 66unsigned clipboard_compact (unsigned);
67 67
68Lisp_Object QCLIPBOARD, QPRIMARY;
69
70/* The segment address and the size of the buffer in low 68/* The segment address and the size of the buffer in low
71 memory used to move data between us and WinOldAp module. */ 69 memory used to move data between us and WinOldAp module. */
72static struct { 70static struct {
@@ -719,8 +717,7 @@ variable is set, it is used for the next communication only.
719After the communication, this variable is set to nil. */); 717After the communication, this variable is set to nil. */);
720 Vnext_selection_coding_system = Qnil; 718 Vnext_selection_coding_system = Qnil;
721 719
722 QPRIMARY = intern ("PRIMARY"); staticpro (&QPRIMARY); 720 DEFSYM (QCLIPBOARD, "CLIPBOARD");
723 QCLIPBOARD = intern ("CLIPBOARD"); staticpro (&QCLIPBOARD);
724} 721}
725 722
726#endif /* MSDOS */ 723#endif /* MSDOS */