99 |
7u83 |
1 |
/*
|
|
|
2 |
* This code contains changes by
|
|
|
3 |
* Gunnar Ritter, Freiburg i. Br., Germany, 2002. All rights reserved.
|
|
|
4 |
*
|
|
|
5 |
* Conditions 1, 2, and 4 and the no-warranty notice below apply
|
|
|
6 |
* to these changes.
|
|
|
7 |
*
|
|
|
8 |
*
|
|
|
9 |
* Copyright (c) 1980, 1993
|
|
|
10 |
* The Regents of the University of California. All rights reserved.
|
|
|
11 |
*
|
|
|
12 |
* Redistribution and use in source and binary forms, with or without
|
|
|
13 |
* modification, are permitted provided that the following conditions
|
|
|
14 |
* are met:
|
|
|
15 |
* 1. Redistributions of source code must retain the above copyright
|
|
|
16 |
* notice, this list of conditions and the following disclaimer.
|
|
|
17 |
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
18 |
* notice, this list of conditions and the following disclaimer in the
|
|
|
19 |
* documentation and/or other materials provided with the distribution.
|
|
|
20 |
* 3. All advertising materials mentioning features or use of this software
|
|
|
21 |
* must display the following acknowledgement:
|
|
|
22 |
* This product includes software developed by the University of
|
|
|
23 |
* California, Berkeley and its contributors.
|
|
|
24 |
* 4. Neither the name of the University nor the names of its contributors
|
|
|
25 |
* may be used to endorse or promote products derived from this software
|
|
|
26 |
* without specific prior written permission.
|
|
|
27 |
*
|
|
|
28 |
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
29 |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
30 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
31 |
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
32 |
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
33 |
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
34 |
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
35 |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
36 |
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
37 |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
38 |
* SUCH DAMAGE.
|
|
|
39 |
*
|
|
|
40 |
*
|
|
|
41 |
* Copyright(C) Caldera International Inc. 2001-2002. All rights reserved.
|
|
|
42 |
*
|
|
|
43 |
* Redistribution and use in source and binary forms, with or without
|
|
|
44 |
* modification, are permitted provided that the following conditions
|
|
|
45 |
* are met:
|
|
|
46 |
* Redistributions of source code and documentation must retain the
|
|
|
47 |
* above copyright notice, this list of conditions and the following
|
|
|
48 |
* disclaimer.
|
|
|
49 |
* Redistributions in binary form must reproduce the above copyright
|
|
|
50 |
* notice, this list of conditions and the following disclaimer in the
|
|
|
51 |
* documentation and/or other materials provided with the distribution.
|
|
|
52 |
* All advertising materials mentioning features or use of this software
|
|
|
53 |
* must display the following acknowledgement:
|
|
|
54 |
* This product includes software developed or owned by Caldera
|
|
|
55 |
* International, Inc.
|
|
|
56 |
* Neither the name of Caldera International, Inc. nor the names of
|
|
|
57 |
* other contributors may be used to endorse or promote products
|
|
|
58 |
* derived from this software without specific prior written permission.
|
|
|
59 |
*
|
|
|
60 |
* USE OF THE SOFTWARE PROVIDED FOR UNDER THIS LICENSE BY CALDERA
|
|
|
61 |
* INTERNATIONAL, INC. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR
|
|
|
62 |
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
63 |
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
64 |
* ARE DISCLAIMED. IN NO EVENT SHALL CALDERA INTERNATIONAL, INC. BE
|
|
|
65 |
* LIABLE FOR ANY DIRECT, INDIRECT INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
66 |
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
67 |
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
|
|
68 |
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
69 |
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
|
70 |
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
|
71 |
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
72 |
*
|
|
|
73 |
* @(#)config.h 1.12 (gritter) 2/19/05
|
|
|
74 |
*/
|
|
|
75 |
|
|
|
76 |
/*
|
|
|
77 |
* Configurable settings for the ex editor.
|
|
|
78 |
*/
|
|
|
79 |
|
|
|
80 |
/*
|
|
|
81 |
* Maximum screen size in visual mode.
|
|
|
82 |
*
|
|
|
83 |
* Because the routine "alloca" is not portable, TUBESIZE
|
|
|
84 |
* bytes are allocated on the stack each time you go into visual
|
|
|
85 |
* and then never freed by the system. Thus if you have no terminals
|
|
|
86 |
* which are larger than 24 * 80 you may well want to make TUBESIZE
|
|
|
87 |
* smaller. TUBECOLS should stay at 160 at least since this defines
|
|
|
88 |
* the maximum length of opening on hardcopies and allows two lines
|
|
|
89 |
* of open on terminals like adm3's (glass tty's) where it switches
|
|
|
90 |
* to pseudo hardcopy mode when a line gets longer than 80 characters.
|
|
|
91 |
*/
|
|
|
92 |
#ifndef VMUNIX
|
|
|
93 |
#define TUBELINES 70 /* Number of screen lines for visual */
|
|
|
94 |
#define TUBECOLS 160 /* Number of screen columns for visual */
|
|
|
95 |
#define TUBESIZE 6000 /* Maximum screen size for visual */
|
|
|
96 |
#else /* VMUNIX */
|
|
|
97 |
#define TUBELINES 100
|
|
|
98 |
#define TUBECOLS 160
|
|
|
99 |
#define TUBESIZE 16000
|
|
|
100 |
#endif /* VMUNIX */
|
|
|
101 |
|
|
|
102 |
/*
|
|
|
103 |
* Various buffer sizes.
|
|
|
104 |
*/
|
|
|
105 |
#ifndef VMUNIX
|
|
|
106 |
#define ESIZE 128 /* Regular expression buffer size */
|
|
|
107 |
#define RHSSIZE 256 /* Size of rhs of substitute */
|
|
|
108 |
#define TAGSIZE 128 /* Tag length */
|
|
|
109 |
#define ONMSZ 64 /* Option name size */
|
|
|
110 |
#else /* VMUNIX */
|
|
|
111 |
#define ESIZE 1024
|
|
|
112 |
#define RHSSIZE 512
|
|
|
113 |
#define TAGSIZE 256
|
|
|
114 |
#define ONMSZ 256
|
|
|
115 |
#endif /* VMUNIX */
|
|
|
116 |
|
|
|
117 |
/*
|
|
|
118 |
* The following types are usually predefined on modern platforms; it
|
|
|
119 |
* is only necessary to define them manually if compilation errors occur.
|
|
|
120 |
*/
|
|
|
121 |
|
|
|
122 |
/*
|
|
|
123 |
* The intptr_t type was introduced by SUSv2 and C99. It is a signed
|
|
|
124 |
* integer type capable of holding pointers:
|
|
|
125 |
*
|
|
|
126 |
* sizeof(intptr_t) == sizeof(void *).
|
|
|
127 |
*
|
|
|
128 |
* Type Environment Typical systems
|
|
|
129 |
* int IP16 PDP11, 80286
|
|
|
130 |
* int ILP32 Most VAX, M68k, IA32, SPARC
|
|
|
131 |
* long LP32 Some IA32 and M68k
|
|
|
132 |
* long LP64 64 bit mode of IA64, SPARC v9, and Alpha
|
|
|
133 |
*
|
|
|
134 |
* The argument to the sbrk() system call has this type.
|
|
|
135 |
*/
|
|
|
136 |
#ifdef notdef
|
|
|
137 |
typedef int intptr_t;
|
|
|
138 |
#endif
|
|
|
139 |
|
|
|
140 |
/*
|
|
|
141 |
* The ssize_t type should be the same as the return type of read()
|
|
|
142 |
* and write().
|
|
|
143 |
*/
|
|
|
144 |
#ifdef notdef
|
|
|
145 |
typedef int ssize_t;
|
|
|
146 |
#endif
|