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: #include <local/uparm.h>
10: #define EXRECOVER libpath(ex2.13recover)
11: #define EXPRESERVE libpath(ex2.13preserve)
12: #define EXSTRINGS libpath(ex2.13strings)
13:
14: /*
15: * If your system believes that tabs expand to a width other than
16: * 8 then your makefile should cc with -DTABS=whatever, otherwise we use 8.
17: */
18: #ifndef TABS
19: #define TABS 8
20: #endif
21:
22: /*
23: * Maximums
24: *
25: * The definition of LBSIZE should be the same as BUFSIZ (512 usually).
26: * Most other defitions are quite generous.
27: */
28: /* FNSIZE is also defined in expreserve.c */
29: #define FNSIZE 128 /* File name size */
30:
31: #define LBSIZE 512 /* Line length */
32: #define ESIZE 128 /* Size of compiled re */
33:
34: #define RHSSIZE 256 /* Size of rhs of substitute */
35: #define NBRA 9 /* Number of re \( \) pairs */
36: #define TAGSIZE 32 /* Tag length */
37: #define ONMSZ 32 /* Option name size */
38: #define GBSIZE 256 /* Buffer size */
39: #define UXBSIZE 128 /* Unix command buffer size */
40: #define VBSIZE 128 /* Partial line max size in visual */
41: /* LBLKS is also defined in expreserve.c */
42: #define LBLKS 125 /* Line pointer blocks in temp file */
43: #define HBLKS 1 /* struct header fits in BUFSIZ*HBLKS */
44: #define MAXDIRT 12 /* Max dirtcnt before sync tfile */
45: #define TCBUFSIZE 1024 /* Max entry size in termcap, see
46: also termlib and termcap */
47:
48: /*
49: * These are a ridiculously small due to the
50: * lousy arglist processing implementation which fixes core
51: * proportional to them. Argv (and hence NARGS) is really unnecessary,
52: * and argument character space not needed except when
53: * arguments exist. Argument lists should be saved before the "zero"
54: * of the incore line information and could then
55: * be reasonably large.
56: */
57: #define NARGS 100 /* Maximum number of names in "next" */
58: #define NCARGS 512 /* Maximum arglist chars in "next" */
59:
60: /*
61: * Note: because the routine "alloca" is not portable, TUBESIZE
62: * bytes are allocated on the stack each time you go into visual
63: * and then never freed by the system. Thus if you have not terminals
64: * which are larger than 24 * 80 you may well want to make TUBESIZE
65: * smaller. TUBECOLS should stay at 160 since this defines the maximum
66: * length of opening on hardcopies and allows two lines of open on
67: * terminals like adm3's (glass tty's) where it switches to pseudo
68: * hardcopy mode when a line gets longer than 80 characters.
69: */
70: #define TUBELINES 44 /* Number of screen lines for visual */
71: #define TUBECOLS 160 /* Number of screen columns for visual */
72: #define TUBESIZE 3400 /* Maximum screen size for visual */
73:
74: /*
75: * Output column (and line) are set to this value on cursor addressible
76: * terminals when we lose track of the cursor to force cursor
77: * addressing to occur.
78: */
79: #define UKCOL -20 /* Prototype unknown column */
80:
81: /*
82: * Attention is the interrupt character (normally 0177 -- delete).
83: * Quit is the quit signal (normally FS -- control-\) and quits open/visual.
84: */
85: #define ATTN (-2)
86: #define QUIT ('\\' & 037)
Defined macros
ATTN
defined in line
85; used 13 times
ESIZE
defined in line
32; used 3 times
HBLKS
defined in line
43; used 4 times
LBLKS
defined in line
42;
never used
LBSIZE
defined in line
31; used 34 times
- in /usr/src/ucb/ex/ex2/ex.h line
159,
173
- in /usr/src/ucb/ex/ex2/ex_addr.c line
231
- in /usr/src/ucb/ex/ex2/ex_cmdsub.c line
214,
438
- in /usr/src/ucb/ex/ex2/ex_get.c line
191
- in /usr/src/ucb/ex/ex2/ex_io.c line
146,
164,
560,
570
- in /usr/src/ucb/ex/ex2/ex_re.c line
211,
239,
259,
372,
382,
401,
408,
436
- in /usr/src/ucb/ex/ex2/ex_subr.c line
55
- in /usr/src/ucb/ex/ex2/ex_v.c line
55,
159
- in /usr/src/ucb/ex/ex2/ex_vadj.c line
610,
818
- in /usr/src/ucb/ex/ex2/ex_vmain.c line
997
- in /usr/src/ucb/ex/ex2/ex_vops.c line
64,
355
- in /usr/src/ucb/ex/ex2/ex_vops2.c line
325,
742,
801-802(2),
812-814(2)
- in /usr/src/ucb/ex/ex2/ex_vops3.c line
45,
350
NARGS
defined in line
57; used 1 times
NBRA
defined in line
35; used 2 times
ONMSZ
defined in line
37; used 3 times
QUIT
defined in line
86; used 1 times
TABS
defined in line
19; used 6 times
UKCOL
defined in line
79; used 3 times
Usage of this include