home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / STVI369G.ZIP / ENV.H < prev    next >
C/C++ Source or Header  |  1991-10-08  |  3KB  |  100 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 DOS is defined, then a number of other defines are possible:
  20.  */
  21. #ifdef    DOS
  22. /* #define    TURBOC    /* Use Borland Turbo C.  Otherwise, the code
  23.              * uses Microsoft C.
  24.              */
  25. /* #define    BIOS    /* Display uses the BIOS routines, rather than
  26.              * depending on an ANSI driver.  More
  27.              * self-contained, and supports colors and
  28.              * the following param (only legal if BIOS defined).
  29.              */
  30. #endif
  31.  
  32. /*
  33.  * If UNIX is defined above, then BSD may be defined.
  34.  */
  35. #ifdef    UNIX
  36. /* #define    BSD            /* Berkeley UNIX */
  37. #endif
  38.  
  39. /*
  40.  * If ATARI is defined, MINIX may be defined. Otherwise, the editor
  41.  * is set up to compile using the Sozobon C compiler under TOS.
  42.  */
  43. #ifdef    ATARI
  44. #define    MINIX            /* Minix for the Atari ST */
  45. #endif
  46.  
  47. /*
  48.  * The yank buffer is still static, but its size can be specified
  49.  * here to override the default of 4K.
  50.  */
  51. #define    YBSIZE    8192        /* yank buffer size */
  52.  
  53. /*
  54.  * STRCSPN should be defined if the target system doesn't have the
  55.  * routine strcspn() available. See regexp.c for details.
  56.  */
  57.  
  58. #ifdef ATARI
  59. #  ifdef MINIX
  60. #    define STRCSPN
  61. #  endif
  62. #endif
  63.  
  64. /*
  65.  * The following defines control the inclusion of "optional" features. As
  66.  * the code size of the editor grows, it will probably be useful to be able
  67.  * to tailor the editor to get the features you most want in environments
  68.  * with code size limits.
  69.  *
  70.  * TILDEOP
  71.  *    Normally the '~' command works on a single character. This define
  72.  *    turns on code that allows it to work like an operator. This is
  73.  *    then enabled at runtime with the "tildeop" parameter.
  74.  *
  75.  * HELP
  76.  *    If defined, a series of help screens may be viewed with the ":help"
  77.  *    command. This eats a fair amount of data space.
  78.  *
  79.  * TERMCAP
  80.  *    If defined, STEVIE uses TERMCAP to determine the escape sequences
  81.  *    to control the screen; if so, TERMCAP support had better be there.
  82.  *    If not defined, you generally get hard-coded escape sequences for
  83.  *    some "reasonable" terminal. In Minix, this means the console. For
  84.  *    UNIX, this means an ANSI standard terminal. For MSDOS, this means
  85.  *    a good ANSI driver (like NANSI.SYS, not ANSI.SYS).
  86.  *    See the file "term.h" for details about specific environments.
  87.  *
  88.  * TAGSTACK
  89.  *    If defined, this includes code that stacks calls to ':ta'.  The
  90.  *    additional command ':untag' pops the stack back to the point at
  91.  *    which the call to ':ta' was made.  In this mode, if the tag stack
  92.  *    is not empty, Ctrl-^ will be interpreted as ':untag' rather than
  93.  *    ':e #'.
  94.  *
  95.  */
  96. #define    TILDEOP        /* enable tilde to be an operator */
  97. #define    HELP        /* enable help command */
  98. /* #define    TERMCAP        /* enable termcap support */
  99. #define    TAGSTACK    /* enable stacking calls to tags */
  100.