home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Distributions / ucb / spencer_2bsd.tar.gz / 2bsd.tar / src / ex / ex_tune.h < prev    next >
C/C++ Source or Header  |  1980-02-17  |  3KB  |  86 lines

  1. /* Copyright (c) 1979 Regents of the University of California */
  2. /*
  3.  * Definitions of editor parameters and limits
  4.  */
  5.  
  6. /*
  7.  * Pathnames.
  8.  *
  9.  * Only exstrings is looked at "+4", i.e. if you give
  10.  * "/usr/lib/..." here, "/lib" will be tried only for strings.
  11.  */
  12. #define    EXRECOVER    "/usr/lib/ex2.0recover"
  13. #define    EXPRESERVE    "/usr/lib/ex2.0preserve"
  14. #define    EXSTRINGS    "/usr/lib/ex2.0strings"
  15. #define    EXHELPDIR    "/usr/lib/how_ex"
  16. #define    MASTERTAGS    "/usr/lib/tags"
  17.  
  18. /*
  19.  * If your system believes that tabs expand to a width other than
  20.  * 8 then your makefile should cc with -DTABS=whatever, otherwise we use 8.
  21.  */
  22. #ifndef TABS
  23. #define    TABS    8
  24. #endif
  25.  
  26. /*
  27.  * Maximums
  28.  *
  29.  * The definition of LBSIZE should be the same as BUFSIZ (512 usually).
  30.  * Most other defitions are quite generous.
  31.  */
  32. /* FNSIZE is also defined in expreserve.c */
  33. #define    FNSIZE        128        /* File name size */
  34. #define    LBSIZE        512        /* Line length */
  35. #define    ESIZE        128        /* Size of compiled re */
  36. #define    RHSSIZE        256        /* Size of rhs of substitute */
  37. #define    NBRA        9        /* Number of re \( \) pairs */
  38. #define    TAGSIZE        32        /* Tag length */
  39. #define    ONMSZ        32        /* Option name size */
  40. #define    GBSIZE        256        /* Buffer size */
  41. #define    UXBSIZE        128        /* Unix command buffer size */
  42. #define    VBSIZE        128        /* Partial line max size in visual */
  43. /* LBLKS is also defined in expreserve.c */
  44. #define    LBLKS        125        /* Line pointer blocks in temp file */
  45. #define    MAXDIRT        12        /* Max dirtcnt before sync tfile */
  46.  
  47. /*
  48.  * These are a ridiculously small due to the
  49.  * lousy arglist processing implementation which fixes core
  50.  * proportional to them.  Argv (and hence NARGS) is really unnecessary,
  51.  * and argument character space not needed except when
  52.  * arguments exist.  Argument lists should be saved before the "zero"
  53.  * of the incore line information and could then
  54.  * be reasonably large.
  55.  */
  56. #define    NARGS    100        /* Maximum number of names in "next" */
  57. #define    NCARGS    512        /* Maximum arglist chars in "next" */
  58.  
  59. /*
  60.  * Note: because the routine "alloca" is not portable, TUBESIZE
  61.  * bytes are allocated on the stack each time you go into visual
  62.  * and then never freed by the system.  Thus if you have not terminals
  63.  * which are larger than 24 * 80 you may well want to make TUBESIZE
  64.  * smaller.  TUBECOLS should stay at 160 since this defines the maximum
  65.  * length of opening on hardcopies and allows two lines of open on
  66.  * terminals like adm3's (glass tty's) where it switches to pseudo
  67.  * hardcopy mode when a line gets longer than 80 characters.
  68.  */
  69. #define    TUBELINES    36    /* Number of screen lines for visual */
  70. #define    TUBECOLS    160    /* Number of screen columns for visual */
  71. #define    TUBESIZE    2880    /* Maximum screen size for visual */
  72.  
  73. /*
  74.  * Output column (and line) are set to this value on cursor addressible
  75.  * terminals when we lose track of the cursor to force cursor
  76.  * addressing to occur.
  77.  */
  78. #define    UKCOL        -20    /* Prototype unknown column */
  79.  
  80. /*
  81.  * Attention is the interrupt character (normally 0177 -- delete).
  82.  * Quit is the quit signal (normally FS -- control-\) and quits open/visual.
  83.  */
  84. #define    ATTN    0177
  85. #define    QUIT    ('\\' & 037)
  86.