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