diff options
author | Eli Zaretskii <eliz@gnu.org> | 2012-07-14 13:08:14 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2012-07-14 13:08:14 +0300 |
commit | 5a1131d937c324c070173482a8d7d47e3b3c79b0 (patch) | |
tree | 570554eddbff849902f0412f94e2f99c8dc949df /src | |
parent | 044080727ca76118afbd1cc35f85dbef7582030e (diff) | |
parent | b5cf7fc45c625b312ab88fb3fa13eef2f25acbce (diff) | |
download | emacs-5a1131d937c324c070173482a8d7d47e3b3c79b0.tar.gz |
Adapt the MS-DOS build to the latest configury changes.
msdos/sed1v2.inp: In the recipe for $(leimdir)/leim-list.el, edit the
prerequisites to be "temacs$(EXEEXT) $(BOOTSTRAPEMACS)", to avoid
the need to rebuild $(bootstrap_exe), which requires a Unixy shell
via lisp/Makefile.in's "update-subdirs" command.
msdos/sedlibmk.inp (am_libgnu_a_OBJECTS): Adjust the removal of
careadlinkat.$(OBJEXT) to the changes in lib/Makefile.in.
msdos/sed2v2.inp (DATA_START, GC_SETJMP_WORKS, HAVE_MENUS)
(HAVE_MOUSE): Edit for DJGPP, according to what was previously
done on src/s/msdos.h.
msdos/gmalloc.c (GMALLOC_INHIBIT_VALLOC): Don't reference.
src/s/msdos.h (BSD_SYSTEM, DATA_START, GC_SETJMP_WORKS, HAVE_MOUSE)
(HAVE_MENUS): Don't define, defined by editing config.in with
msdos/sed2v2.inp.
(GMALLOC_INHIBIT_VALLOC): Don't define.
(MODE_LINE_BINARY_TEXT): Remove, not used anymore.
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 10 | ||||
-rw-r--r-- | src/gmalloc.c | 7 | ||||
-rw-r--r-- | src/s/msdos.h | 31 |
3 files changed, 17 insertions, 31 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index bdaa69f0556..29ec8ffb6d2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,13 @@ +2012-07-14 Eli Zaretskii <eliz@gnu.org> + + * gmalloc.c (GMALLOC_INHIBIT_VALLOC): Don't reference. + + * s/msdos.h (BSD_SYSTEM, DATA_START, GC_SETJMP_WORKS, HAVE_MOUSE) + (HAVE_MENUS): Don't define, defined by editing config.in with + msdos/sed2v2.inp. + (GMALLOC_INHIBIT_VALLOC): Don't define. + (MODE_LINE_BINARY_TEXT): Remove, not used anymore. + 2012-07-14 Juanma Barranquero <lekktu@gmail.com> * s/ms-w32.h (GC_SETJMP_WORKS, GC_MARK_STACK): Set in nt/config.nt. diff --git a/src/gmalloc.c b/src/gmalloc.c index 3739214bc46..78d6934755b 100644 --- a/src/gmalloc.c +++ b/src/gmalloc.c @@ -1687,11 +1687,6 @@ Fifth Floor, Boston, MA 02110-1301, USA. The author may be reached (Email) at the address mike@ai.mit.edu, or (US mail) as Mike Haertel c/o Free Software Foundation. */ -/* Emacs defines GMALLOC_INHIBIT_VALLOC to avoid this definition - on MSDOS, where it conflicts with a system header file. */ - -#ifndef GMALLOC_INHIBIT_VALLOC - /* Allocate SIZE bytes on a page boundary. */ extern void *valloc (size_t); @@ -1712,8 +1707,6 @@ valloc (size_t size) return memalign (pagesize, size); } -#endif /* Not ELIDE_VALLOC. */ - #ifdef GC_MCHECK /* Standard debugging hooks for `malloc'. diff --git a/src/s/msdos.h b/src/s/msdos.h index fc1a8c7506a..e1d97d5cc85 100644 --- a/src/s/msdos.h +++ b/src/s/msdos.h @@ -31,7 +31,6 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ #endif #define DOS_NT /* MSDOS or WINDOWSNT */ -#undef BSD_SYSTEM /* subprocesses should be defined if you want to have code for asynchronous subprocesses (as used in M-x compile and M-x shell). @@ -44,10 +43,6 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ different things on your system and must be used only through an encapsulation (which you should place, by convention, in sysdep.c). */ -/* Avoid incompatibilities between gmalloc.c and system header files - in how to declare valloc. */ -#define GMALLOC_INHIBIT_VALLOC - /* This overrides the default value on editfns.c, since DJGPP does not have pw->pw_gecos. */ #define USER_FULL_NAME (getenv ("NAME")) @@ -57,15 +52,16 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ #define _setjmp setjmp #define _longjmp longjmp -#define DATA_START (&etext + 1) - #define _NAIVE_DOS_REGS -/* command.com does not understand `...` so we define this. */ +/* Used by emacs.c:decode_env_path. */ #define SEPCHAR ';' +/* Used by callproc.c (and process.c, but in the part not compiled on + MSDOS). The default is defined on process.h. */ #define NULL_DEVICE "nul" +/* Used by floatfns.c. */ #define HAVE_INVERSE_HYPERBOLIC #define FLOAT_CHECK_DOMAIN @@ -94,23 +90,14 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ likes that. */ #define FILE_SYSTEM_CASE Fmsdos_downcase_filename -/* Define this to be the separator between devices and paths. */ +/* Define this to be the separator between devices and paths. Used by + lisp.h to define IS_DEVICE_SEP. */ #define DEVICE_SEP ':' -/* We'll support either convention on MSDOG. */ +/* We'll support either convention of slashes on MSDOS. */ #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\') #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_)) - -/* Mode line description of a buffer's type. */ -#define MODE_LINE_BINARY_TEXT(buf) (NILP(B_(buf,buffer_file_type)) ? "T" : "B") - -/* We have (the code to control) a mouse. */ -#define HAVE_MOUSE - -/* We can use mouse menus. */ -#define HAVE_MENUS - /* Define one of these for easier conditionals. */ #ifdef HAVE_X_WINDOWS /* We need a little extra space, see ../../lisp/loadup.el and the @@ -129,7 +116,3 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ enlarging Emacs footprint by another 100+ KBytes. */ #define SYSTEM_PURESIZE_EXTRA (-170000+65000) #endif - -/* Tell the garbage collector that setjmp is known to save all - registers relevant for conservative garbage collection in the jmp_buf. */ -#define GC_SETJMP_WORKS 1 |