home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / s / msdos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-04  |  5.0 KB  |  189 lines

  1. /* System description file for MS-DOS
  2.  
  3.    Copyright (C) 1993 Free Software Foundation, Inc.
  4.  
  5. This file is part of GNU Emacs.
  6.  
  7. GNU Emacs is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2, or (at your option)
  10. any later version.
  11.  
  12. GNU Emacs is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with GNU Emacs; see the file COPYING.  If not, write to
  19. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  20.  
  21. /* Synched up with: FSF 19.29. */
  22.  
  23. /* Note: lots of stuff here was taken from s-msdos.h in demacs. */
  24.  
  25.  
  26. /*
  27.  *    Define symbols to identify the version of Unix this is.
  28.  *    Define all the symbols that apply correctly.
  29.  */
  30.  
  31. /* #define UNIPLUS */
  32. /* #define USG5 */
  33. /* #define USG */
  34. /* #define HPUX */
  35. /* #define UMAX */
  36. /* #define BSD4_1 */
  37. /* #define BSD4_2 */
  38. /* #define BSD4_3 */
  39. /* #define BSD */
  40. /* #define VMS */
  41. #ifndef MSDOS
  42. #define MSDOS
  43. #endif
  44.  
  45. #define DOS_NT    /* MSDOS or WINDOWSNT */
  46. #undef BSD
  47. #undef VMS
  48.  
  49. /* SYSTEM_TYPE should indicate the kind of system you are using.
  50.  It sets the Lisp variable system-type.  */
  51.  
  52. #define SYSTEM_TYPE "ms-dos"
  53.  
  54. #define SYMS_SYSTEM syms_of_dosfns()
  55.  
  56. /* Letter to use in finding device name of first pty,
  57.   if system supports pty's.  'a' means it is /dev/ptya0  */
  58.  
  59. /* #define FIRST_PTY_LETTER 'a' */
  60.  
  61. /*
  62.  *    Define HAVE_PTYS if the system supports pty devices.
  63.  */
  64.  
  65. /* #define HAVE_PTYS */
  66.  
  67. /* MSDOS has dirent.h but doesn't behave otherwise like the SYSV
  68.    directory functions.  We have special tests for this in
  69.    sysdir.h. */
  70.  
  71. #undef SYSV_SYSTEM_DIR
  72.  
  73. /* Define this is the compiler understands `volatile'.  */
  74. #define HAVE_VOLATILE
  75.  
  76. #define NO_SUBPROCESSES
  77.  
  78. /* If your system uses COFF (Common Object File Format) then define the
  79.    preprocessor symbol "COFF". */
  80.  
  81. #define COFF
  82.  
  83. /* define MAIL_USE_FLOCK if the mailer uses flock
  84.    to interlock access to /usr/spool/mail/$USER.
  85.    The alternative is that a lock file named
  86.    /usr/spool/mail/$USER.lock.  */
  87.  
  88. /* #define MAIL_USE_FLOCK */
  89.  
  90. /* Here, on a separate page, add any special hacks needed
  91.    to make Emacs work on this system.  For example,
  92.    you might define certain system call names that don't
  93.    exist on your system, or that do different things on
  94.    your system and must be used only through an encapsulation
  95.    (Which you should place, by convention, in sysdep.c).  */
  96.  
  97. /* we use djgcc's malloc */
  98. /* #define SYSTEM_MALLOC */
  99. /* setjmp and longjmp can safely replace _setjmp and _longjmp,
  100.    but they will run slower.  */
  101.  
  102. #define _setjmp setjmp
  103. #define _longjmp longjmp
  104.  
  105. #define NO_MODE_T
  106.  
  107. /* New chdir () routine. */
  108. #ifdef chdir
  109. #undef chdir
  110. #endif
  111. #define chdir sys_chdir
  112.  
  113. #define LIBS_SYSTEM -lpc
  114.  
  115. /* This somehow needs to be defined even though we use COFF.  */
  116. #define TEXT_START -1
  117.  
  118. #define ORDINARY_LINK
  119.  
  120. /* command.com does not understand `...` so we define this.  */
  121. #define LIB_GCC -Lgcc
  122. #define DONT_NEED_ENVIRON
  123. #define SEPCHAR ';'
  124.  
  125. #define NULL_DEVICE "nul"
  126. #define EXEC_SUFFIXES ".exe:.com:.bat:"
  127.  
  128. #define O_RDONLY        0x0001
  129. #define O_WRONLY        0x0002
  130. #define O_RDWR          0x0004
  131. #define O_CREAT         0x0100
  132. #define O_TRUNC         0x0200
  133. #define O_EXCL          0x0400
  134. #define O_APPEND        0x0800
  135. #define O_TEXT          0x4000
  136. #define O_BINARY        0x8000
  137.  
  138. #define HAVE_INVERSE_HYPERBOLIC
  139. #define FLOAT_CHECK_DOMAIN
  140. #define NO_MATHERR
  141.  
  142. /* When $TERM is "internal" then this is substituted:  */
  143. #define INTERNAL_TERMINAL "pc|bios|IBM PC with colour display:\
  144. :co#80:li#25:km:\
  145. :cm=\E@%.%.:\
  146. :do=^J:le=^H:up=\EU:ri=\ER:\
  147. :ti=\EA\027:te=\EA\007\EE:\
  148. :so=\EA\077:se=\EA\027:\
  149. :ms:mb=\EX\200:md=\EX\010:mk=\EA\161:me=\EA\027:\
  150. :cl=\EC:ce=\EE:\
  151. :vb=\EB\140:bl=\007:"
  152. #define fflush internal_flush
  153.  
  154. /* Define this to a function (Fdowncase, Fupcase) if your file system
  155.    likes that */
  156. #define FILE_SYSTEM_CASE Fdowncase
  157.  
  158. /* Define this to be the separator between devices and paths */
  159. #define DEVICE_SEP ':'
  160.  
  161. /* We'll support either convention on MSDOG.  */
  162. #define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\')
  163. #define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))
  164.  
  165. /* bcopy under djgpp is quite safe */
  166. #define GAP_USE_BCOPY
  167. #define BCOPY_UPWARD_SAFE 1
  168. #define BCOPY_DOWNWARD_SAFE 1
  169.  
  170. /* Mode line description of a buffer's type.  */
  171. #define MODE_LINE_BINARY_TEXT(buf) (NILP(buf->buffer_file_type) ? "T" : "B")
  172.  
  173. /* We have (the code to control) a mouse.  */
  174. #define HAVE_MOUSE
  175.  
  176. /* We have support for faces.  */
  177. #define HAVE_FACES
  178.  
  179. /* Define one of these for easier conditionals.  */
  180. #ifdef HAVE_X_WINDOWS
  181. /* We need a little extra space, see ../../lisp/loadup.el */
  182. #define SYSTEM_PURESIZE_EXTRA 15000
  183. #define HAVE_X11R5
  184. #define LIBX11_SYSTEM -lxext -lsys
  185. #else
  186. /* We need a little extra space, see ../../lisp/loadup.el */
  187. #define SYSTEM_PURESIZE_EXTRA 68000
  188. #endif
  189.