home *** CD-ROM | disk | FTP | other *** search
/ MacGames Sampler / PHT MacGames Bundle.iso / MacSource Folder / Samples from the CD / Editors / emacs / Emacs-1.14b1-sources / sources / mac-emacs-src / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-16  |  3.3 KB  |  115 lines  |  [TEXT/EMAC]

  1. /*
  2.  * config.h for the Macintosh
  3.  *
  4.  * Copyright (C) 1993, 1994 Marc Parmet.
  5.  * This file is part of the Macintosh port of GNU Emacs.
  6.  *
  7.  * GNU Emacs is distributed in the hope that it will be useful,
  8.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  10.  * GNU General Public License for more details.
  11.  */
  12.  
  13. #include "s-mac.h"
  14. #include "m-mac.h"
  15.  
  16. /* Load in the conversion definitions if this system
  17.    needs them and the source file being compiled has not
  18.    said to inhibit this.  There should be no need for you
  19.    to alter these lines.  */
  20.  
  21. #ifdef SHORTNAMES
  22. #ifndef NO_SHORTNAMES
  23. #include "../shortnames/remap.h"
  24. #endif /* not NO_SHORTNAMES */
  25. #endif /* SHORTNAMES */
  26.  
  27. /* Define HAVE_X_WINDOWS if you want to use the X window system.  */
  28.  
  29. /* #define HAVE_X_WINDOWS */
  30.  
  31. /* Define X11 if you want to use version 11 of X windows.
  32.    Otherwise, Emacs expects to use version 10.  */
  33.  
  34. #ifdef HAVE_X_WINDOWS
  35. #define X11
  36. #endif
  37.  
  38. /* Define HAVE_X_MENU if you want to use the X window menu system.
  39.    This appears to work on some machines that support X
  40.    and not on others.  */
  41.  
  42. /* #define HAVE_X_MENU */
  43.  
  44. /* Define `subprocesses' should be defined if you want to
  45.    have code for asynchronous subprocesses
  46.    (as used in M-x compile and M-x shell).
  47.    These do not work for some USG systems yet;
  48.    for the ones where they work, the s-*.h file defines this flag.  */
  49.  
  50. #ifndef VMS
  51. #ifndef USG
  52. #define subprocesses
  53. #endif
  54. #endif
  55.  
  56. /* Define USER_FULL_NAME to return a string
  57.    that is the user's full name.
  58.    It can assume that the variable `pw'
  59.    points to the password file entry for this user.
  60.  
  61.    At some sites, the pw_gecos field contains
  62.    the user's full name.  If neither this nor any other
  63.    field contains the right thing, use pw_name,
  64.    giving the user's login name, since that is better than nothing.  */
  65.  
  66. #define USER_FULL_NAME pw->pw_name
  67.  
  68. /* Define AMPERSAND_FULL_NAME if you use the convention
  69.    that & in the full name stands for the login id.  */
  70.  
  71. /* #define AMPERSAND_FULL_NAME */
  72.  
  73. /* # bytes of pure Lisp code to leave space for. */
  74.  
  75. #define PURESIZE 230000
  76.  
  77. /* Define HIGHPRI as a negative number
  78.    if you want Emacs to run at a higher than normal priority.
  79.    For this to take effect, you must install Emacs with setuid root.
  80.    Emacs will change back to the users's own uid after setting
  81.    its priority.  */
  82.  
  83. /* #define HIGHPRI */
  84.  
  85. /*********************
  86.  * Added for the Mac *
  87.  *********************/
  88.  
  89. #define SYSTEM_MALLOC                /* Use our own malloc */
  90. #define MIN_STACK_SIZE 64            /* Need more stack than default */
  91. #define VALBITS 26                    /* Make address space as large as possible */
  92. #define GCTYPEBITS (32-1-VALBITS)    /* Minus one for the mark bit */
  93. #define SYMS_SYSTEM syms_of_apple()
  94.  
  95. #if 0
  96.  
  97. /* Some uses of bit field instructions.  I wonder if they really speed things up. */
  98.  
  99. #define XINT(X) _xint(X)
  100. #pragma parameter __D0 _xint(__D0)
  101. /* bfexts d0{6:26},d0 */
  102. int _xint(int x) = { 0xEBC0, ((INTBITS-VALBITS)<<6) + VALBITS };
  103.  
  104. #define XSET(var,type,val) ((var) = _xset((int)type,(int)val))
  105. #pragma parameter __D0 _xset(__D1,__D0)
  106. /* bfins d1,d0{0:6} */
  107. int _xset(int type,int val) = { 0xEFC0, 0x1000 + (INTBITS-VALBITS) };
  108.  
  109. #define XGCTYPE(X) _xgctype(X)
  110. #pragma parameter __D0 _xgctype(__D0)
  111. /* bfextu d0{1:5},d0 */
  112. int _xgctype(int x) = { 0xE9C0, (1<<6) + GCTYPEBITS };
  113.  
  114. #endif
  115.