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
ATTN
defined in line
123; used 13 times
B_CSH
defined in line
17;
never used
ESIZE
defined in line
51; used 3 times
HBLKS
defined in line
68; used 6 times
LBLKS
defined in line
67;
never used
LBSIZE
defined in line
50; used 41 times
- in line 86
- in /usr/src/ucb/ex/ex.h line
202
- in /usr/src/ucb/ex/ex_addr.c line
245
- in /usr/src/ucb/ex/ex_cmdsub.c line
228,
456,
543-547(2)
- in /usr/src/ucb/ex/ex_get.c line
199
- in /usr/src/ucb/ex/ex_io.c line
161,
179,
426-430(2),
658,
697-701(2)
- in /usr/src/ucb/ex/ex_re.c line
453,
463,
482,
489,
517
- in /usr/src/ucb/ex/ex_subr.c line
64
- in /usr/src/ucb/ex/ex_temp.c line
545
- in /usr/src/ucb/ex/ex_unix.c line
279-283(2)
- in /usr/src/ucb/ex/ex_v.c line
64,
70,
181
- in /usr/src/ucb/ex/ex_vadj.c line
611,
826
- in /usr/src/ucb/ex/ex_vmain.c line
1181
- in /usr/src/ucb/ex/ex_vops.c line
72,
184,
448
- in /usr/src/ucb/ex/ex_vops2.c line
334,
825,
885-886(2),
896-898(2)
- in /usr/src/ucb/ex/ex_vops3.c line
54,
359
NARGS
defined in line
89; used 1 times
NBRA
defined in line
56; used 2 times
ONMSZ
defined in line
58; used 12 times
QUIT
defined in line
124; used 1 times
TABS
defined in line
29; used 7 times
Usage of this include