home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 313_01 / env.h < prev    next >
C/C++ Source or Header  |  1990-04-22  |  3KB  |  92 lines

  1. /*
  2.  * The defines in this file establish the environment we're compiling
  3.  * in. Set these appropriately before compiling the editor.
  4.  */
  5.  
  6. /*
  7.  * One (and only 1) of the following defines should be uncommented.
  8.  * Most of the code is pretty machine-independent. Machine dependent
  9.  * code goes in a file like tos.c or unix.c. The only other place
  10.  * where machine dependent code goes is term.h for escape sequences.
  11.  */
  12.  
  13. /* #define    ATARI            /* For the Atari ST */
  14. #define    UNIX            /* System V or BSD */
  15. /* #define    OS2            /* Microsoft OS/2 1.1 */
  16. /* #define    DOS            /* MSDOS 3.3 (on AT) */
  17.  
  18. /*
  19.  * If UNIX is defined above, then BSD may be defined.
  20.  */
  21. #ifdef    UNIX
  22. /* #define    BSD            /* Berkeley UNIX */
  23. #endif
  24.  
  25. /*
  26.  * If ATARI is defined, MINIX may be defined. Otherwise, the editor
  27.  * is set up to compile using the Sozobon C compiler under TOS.
  28.  */
  29. #ifdef    ATARI
  30. #define    MINIX            /* Minix for the Atari ST */
  31. #endif
  32.  
  33. /*
  34.  * The yank buffer is still static, but its size can be specified
  35.  * here to override the default of 4K.
  36.  */
  37. #define    YBSIZE    32768        /* yank buffer size */
  38.  
  39. /*
  40.  * STRCSPN should be defined if the target system doesn't have the
  41.  * routine strcspn() available. See regexp.c for details.
  42.  */
  43.  
  44. #ifdef    ATARI
  45.  
  46. #ifdef    MINIX
  47. #define    STRCSPN
  48. #endif
  49.  
  50. #endif
  51.  
  52. /*
  53.  * The following defines control the inclusion of "optional" features. As
  54.  * the code size of the editor grows, it will probably be useful to be able
  55.  * to tailor the editor to get the features you most want in environments
  56.  * with code size limits.
  57.  *
  58.  * TILDEOP
  59.  *    Normally the '~' command works on a single character. This define
  60.  *    turns on code that allows it to work like an operator. This is
  61.  *    then enabled at runtime with the "tildeop" parameter.
  62.  *
  63.  * HELP
  64.  *    If defined, a series of help screens may be views with the ":help"
  65.  *    command. This eats a fair amount of data space.
  66.  *
  67.  * TERMCAP
  68.  *    Where termcap support is provided, it is generally optional. If
  69.  *    not enabled, you generally get hard-coded escape sequences for
  70.  *    some "reasonable" terminal. In Minix, this means the console. For
  71.  *    UNIX, this means an ANSI standard terminal. See the file "term.h"
  72.  *    for details about specific environments.
  73.  *
  74.  */
  75. #define    TILDEOP        /* enable tilde to be an operator */
  76. #define    HELP        /* enable help command */
  77. #define    TERMCAP        /* enable termcap support */
  78.  
  79.  
  80. /*
  81.  * Other stuff that depends on the options selected.
  82.  */
  83.  
  84. /*
  85.  * If termcap is enabled, the function outcstr() is used to properly handle
  86.  * termcap commands with padding. Otherwise we can just use the same function
  87.  * for everything.
  88.  */
  89. #ifndef    TERMCAP
  90. #define    outcstr    outstr
  91. #endif
  92.