/* System description file for MS-DOS
Copyright (C) 1993, 1996, 1997, 2001, 2002, 2003, 2004, 2005, 2006,
- 2007, 2008 Free Software Foundation, Inc.
+ 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
This file is part of GNU Emacs.
#define DOS_NT /* MSDOS or WINDOWSNT */
#undef BSD_SYSTEM
-#undef VMS
/* SYSTEM_TYPE should indicate the kind of system you are using.
It sets the Lisp variable system-type. */
/* subprocesses should be defined if you want to
have code for asynchronous subprocesses
(as used in M-x compile and M-x shell).
- This is generally OS dependent, and not supported
- under most USG systems. */
+ This is the only system that needs this. */
#undef subprocesses
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"))
+
/* setjmp and longjmp can safely replace _setjmp and _longjmp,
but they will run slower. */
#define DATA_START (&etext + 1)
#define TEXT_START &start
-#define TEXT_END &etext
#define _NAIVE_DOS_REGS
/* Define one of these for easier conditionals. */
#ifdef HAVE_X_WINDOWS
-/* We need a little extra space, see ../../lisp/loadup.el */
-#define SYSTEM_PURESIZE_EXTRA 15000
+/* We need a little extra space, see ../../lisp/loadup.el and the
+ commentary below, in the non-X branch. The 140KB number was
+ measured on GNU/Linux and on MS-WIndows. */
+#define SYSTEM_PURESIZE_EXTRA (-170000+140000)
#define LIBX11_SYSTEM -lxext -lsys
#else
-/* We need a little extra space, see ../../lisp/loadup.el */
-#define SYSTEM_PURESIZE_EXTRA 50000
+/* We need a little extra space, see ../../lisp/loadup.el.
+ As of 20091024, DOS-specific files use up 62KB of pure space. But
+ overall, we end up wasting 130KB of pure space, because
+ BASE_PURESIZE starts at 1.47MB, while we need only 1.3MB (including
+ non-DOS specific files and load history; the latter is about 55K,
+ but depends on the depth of the top-level Emacs directory in the
+ directory tree). Given the unknown policy of different DPMI
+ hosts regarding loading of untouched pages, I'm not going to risk
+ 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