1: /*
   2:  * Copyright (c) 1980 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)ex_tune.h	7.8.1 (2.11BSD) 1996/10/23
   7:  */
   8: 
   9: /*
  10:  * Definitions of editor parameters and limits
  11:  */
  12: 
  13: /*
  14:  * Pathnames.
  15:  */
  16: #define E_TERMCAP   "/etc/termcap"
  17: #define B_CSH       "/bin/csh"
  18: #define EXRECOVER   "/usr/sbin/exrecover"
  19: #define EXPRESERVE  "/usr/sbin/expreserve"
  20: #ifndef VMUNIX
  21: #define EXSTRINGS   "/usr/share/misc/exstrings"
  22: #endif
  23: 
  24: /*
  25:  * If your system believes that tabs expand to a width other than
  26:  * 8 then your makefile should cc with -DTABS=whatever, otherwise we use 8.
  27:  */
  28: #ifndef TABS
  29: #define TABS    8
  30: #endif
  31: 
  32: /*
  33:  * Maximums
  34:  *
  35:  * The definition of LBSIZE should be the same as BUFSIZ (512 usually).
  36:  * Most other definitions are quite generous.
  37:  */
  38: /* FNSIZE is also defined in expreserve.c */
  39: #define FNSIZE      128     /* File name size */
  40: #ifdef VMUNIX
  41: #define LBSIZE      1024
  42: #define ESIZE       512
  43: #define CRSIZE      1024
  44: #else
  45: #ifdef u370
  46: #define LBSIZE      4096
  47: #define ESIZE       512
  48: #define CRSIZE      4096
  49: #else
  50: #define LBSIZE      512     /* Line length */
  51: #define ESIZE       128     /* Size of compiled re */
  52: #define CRSIZE      512
  53: #endif
  54: #endif
  55: #define RHSSIZE     256     /* Size of rhs of substitute */
  56: #define NBRA        9       /* Number of re \( \) pairs */
  57: #define TAGSIZE     128     /* Tag length */
  58: #define ONMSZ       64      /* Option name size */
  59: #define GBSIZE      256     /* Buffer size */
  60: #define UXBSIZE     128     /* Unix command buffer size */
  61: #define VBSIZE      128     /* Partial line max size in visual */
  62: /* LBLKS is also defined in expreserve.c */
  63: #ifndef VMUNIX
  64: #define LBLKS       125     /* Line pointer blocks in temp file */
  65: #define HBLKS       1       /* struct header fits in BUFSIZ*HBLKS */
  66: #else
  67: #define LBLKS       900
  68: #define HBLKS       2
  69: #endif
  70: #define MAXDIRT     12      /* Max dirtcnt before sync tfile */
  71: #define TCBUFSIZE   1024        /* Max entry size in termcap, see
  72: 					   also termlib and termcap */
  73: 
  74: /*
  75:  * Except on VMUNIX, these are a ridiculously small due to the
  76:  * lousy arglist processing implementation which fixes core
  77:  * proportional to them.  Argv (and hence NARGS) is really unnecessary,
  78:  * and argument character space not needed except when
  79:  * arguments exist.  Argument lists should be saved before the "zero"
  80:  * of the incore line information and could then
  81:  * be reasonably large.
  82:  */
  83: #undef NCARGS
  84: #ifndef VMUNIX
  85: #define NARGS   100     /* Maximum number of names in "next" */
  86: #define NCARGS  LBSIZE      /* Maximum arglist chars in "next" */
  87: #else
  88: #define NCARGS  5120
  89: #define NARGS   (NCARGS/6)
  90: #endif
  91: 
  92: /*
  93:  * Note: because the routine "alloca" is not portable, TUBESIZE
  94:  * bytes are allocated on the stack each time you go into visual
  95:  * and then never freed by the system.  Thus if you have no terminals
  96:  * which are larger than 24 * 80 you may well want to make TUBESIZE
  97:  * smaller.  TUBECOLS should stay at 160 since this defines the maximum
  98:  * length of opening on hardcopies and allows two lines of open on
  99:  * terminals like adm3's (glass tty's) where it switches to pseudo
 100:  * hardcopy mode when a line gets longer than 80 characters.
 101:  */
 102: #ifndef VMUNIX
 103: #define TUBELINES   70  /* Number of screen lines for visual */
 104: #define TUBECOLS    160 /* Number of screen columns for visual */
 105: #define TUBESIZE    6000    /* Maximum screen size for visual */
 106: #else
 107: #define TUBELINES   70
 108: #define TUBECOLS    160
 109: #define TUBESIZE    7000    /* 70 * 100 */
 110: #endif
 111: 
 112: /*
 113:  * Output column (and line) are set to this value on cursor addressible
 114:  * terminals when we lose track of the cursor to force cursor
 115:  * addressing to occur.
 116:  */
 117: #define UKCOL       -20 /* Prototype unknown column */
 118: 
 119: /*
 120:  * Attention is the interrupt character (normally 0177 -- delete).
 121:  * Quit is the quit signal (normally FS -- control-\) and quits open/visual.
 122:  */
 123: #define ATTN    (-2)    /* mjm: (char) ??  */
 124: #define QUIT    ('\\' & 037)

Defined macros

B_CSH defined in line 17; never used
CRSIZE defined in line 52; never used
ESIZE defined in line 51; used 3 times
EXPRESERVE defined in line 19; used 1 times
EXRECOVER defined in line 18; used 3 times
EXSTRINGS defined in line 21; used 1 times
E_TERMCAP defined in line 16; never used
GBSIZE defined in line 59; used 2 times
HBLKS defined in line 68; used 6 times
LBLKS defined in line 67; never used
MAXDIRT defined in line 70; used 1 times
NARGS defined in line 89; used 1 times
NBRA defined in line 56; used 2 times
NCARGS defined in line 88; used 3 times
ONMSZ defined in line 58; used 12 times
QUIT defined in line 124; used 1 times
RHSSIZE defined in line 55; used 3 times
TABS defined in line 29; used 7 times
TAGSIZE defined in line 57; used 1 times
TCBUFSIZE defined in line 71; used 1 times
TUBESIZE defined in line 109; used 5 times
UKCOL defined in line 117; used 3 times
UXBSIZE defined in line 60; used 5 times
VBSIZE defined in line 61; used 1 times

Usage of this include

Last modified: 1996-10-24
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 3064
Valid CSS Valid XHTML 1.0 Strict