File: defines.h

package info (click to toggle)
the 3.1-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 4,500 kB
  • ctags: 5,421
  • sloc: ansic: 66,327; sh: 2,745; makefile: 526
file content (244 lines) | stat: -rw-r--r-- 7,500 bytes parent folder | download | duplicates (2)
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
/*
 * THE - The Hessling Editor. A text editor similar to VM/CMS xedit.
 * Copyright (C) 1991-2001 Mark Hessling
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to:
 *
 *    The Free Software Foundation, Inc.
 *    675 Mass Ave,
 *    Cambridge, MA 02139 USA.
 *
 *
 * If you make modifications to this software that you feel increases
 * it usefulness for the rest of the community, please email the
 * changes, enhancements, bug fixes as well as any and all ideas to me.
 * This software is going to be maintained and enhanced as deemed
 * necessary by the community.
 *
 * Mark Hessling,  M.Hessling@qut.edu.au  http://www.lightlink.com/hessling/
 */

/*
$Id: defines.h,v 1.5 2001/12/18 08:23:27 mark Exp $
*/

/*---------------------------------------------------------------------*/
/* Include config.h generated by configure.                            */
/*---------------------------------------------------------------------*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#else
# define BUILD3001 1
# if defined(__OS2__) || defined(__EMX__)
#  define HAVE_BEEP 1
#  define HAVE_BOX 1
#  define HAVE_CBREAK 1
#  define HAVE_CURS_SET 1
#  define HAVE_DOUPDATE 1
#  define HAVE_KEYPAD 1
#  define HAVE_NOCBREAK 1
#  define HAVE_NOTIMEOUT 1
#  ifndef HAVE_PROTO
#    define HAVE_PROTO 1
#  endif
#  define HAVE_RAW 1
#  define HAVE_RESET_PROG_MODE 1
#  define HAVE_RESET_SHELL_MODE 1
#  define HAVE_SLK_INIT 1
#  define HAVE_SLK_ATTRSET 1
#  define HAVE_TOUCHLINE 1
#  define HAVE_TYPEAHEAD 1
#  define HAVE_WATTRSET 1
#  define HAVE_WADDCHNSTR 1
#  define HAVE_WNOUTREFRESH 1
#  define HAVE_WHLINE 1
#  define HAVE_WVLINE 1
#  define HAVE_WBKGD 1
#  define RETSIGTYPE void
#  define TIME_WITH_SYS_TIME 1
#  define HAVE_RENAME 1
#  define HAVE_CTYPE_H 1
#  define HAVE_FCNTL_H 1
#  ifndef HAVE_MEMORY_H
#    define HAVE_MEMORY_H 1
#  endif
#  define HAVE_STDLIB_H 1
#  define HAVE_STRING_H 1
#  define HAVE_SYS_STAT_H 1
#  define HAVE_SYS_TYPES_H 1
#  ifdef __EMX__
#   define HAVE_UNISTD_H 1
#   define HAVE_SYS_FILE_H 1
#   define HAVE_STRICMP 1
#  endif
# endif
# if defined(__MSDOS__) || defined(MSDOS)
#  define HAVE_BEEP 1
#  define HAVE_BOX 1
#  define HAVE_CBREAK 1
#  define HAVE_CURS_SET 1
#  define HAVE_DOUPDATE 1
#  define HAVE_KEYPAD 1
#  define HAVE_NOCBREAK 1
#  define HAVE_NOTIMEOUT 1
#  ifndef HAVE_PROTO
#    define HAVE_PROTO 1
#  endif
#  define HAVE_RAW 1
#  define HAVE_RESET_PROG_MODE 1
#  define HAVE_RESET_SHELL_MODE 1
#  ifndef MSWIN
#    define HAVE_SLK_INIT 1
#    define HAVE_SLK_ATTRSET 1
#  endif
#  define HAVE_TOUCHLINE 1
#  define HAVE_TYPEAHEAD 1
#  define HAVE_WATTRSET 1
#  define HAVE_WADDCHNSTR 1
#  define HAVE_WNOUTREFRESH 1
#  define HAVE_WVLINE 1
#  define HAVE_WHLINE 1
#  define HAVE_WBKGD 1
#  define RETSIGTYPE void
#  define HAVE_RENAME 1
#  define HAVE_CTYPE_H 1
#  define HAVE_FCNTL_H 1
#  ifndef HAVE_MEMORY_H
#    define HAVE_MEMORY_H 1
#  endif
#  define HAVE_STDLIB_H 1
#  define HAVE_STRING_H 1
#  define HAVE_SYS_STAT_H 1
#  define HAVE_SYS_TYPES_H 1
# endif
# if defined(__NT__) || defined(WIN32)
#  define HAVE_BEEP 1
#  define HAVE_BOX 1
#  define HAVE_CBREAK 1
#  define HAVE_CURS_SET 1
#  define HAVE_DOUPDATE 1
#  define HAVE_KEYPAD 1
#  define HAVE_NOCBREAK 1
#  define HAVE_NOTIMEOUT 1
#  ifndef HAVE_PROTO
#    define HAVE_PROTO 1
#  endif
#  define HAVE_RAW 1
#  define HAVE_RESET_PROG_MODE 1
#  define HAVE_RESET_SHELL_MODE 1
#  define HAVE_RESIZE_TERM 1
#  define HAVE_SLK_INIT 1
#  define HAVE_SLK_ATTRSET 1
#  define HAVE_TOUCHLINE 1
#  define HAVE_TYPEAHEAD 1
#  define HAVE_WATTRSET 1
#  define HAVE_WADDCHNSTR 1
#  define HAVE_WNOUTREFRESH 1
#  define HAVE_WVLINE 1
#  define HAVE_WHLINE 1
#  define HAVE_WBKGD 1
#  define RETSIGTYPE void
#  define TIME_WITH_SYS_TIME 1
#  define HAVE_RENAME 1
#  define HAVE_STRCMPI 1
#  define HAVE_CTYPE_H 1
#  define HAVE_FCNTL_H 1
#  ifndef HAVE_MEMORY_H
#    define HAVE_MEMORY_H 1
#  endif
#  define HAVE_STDLIB_H 1
#  define HAVE_STRING_H 1
#  define HAVE_SYS_STAT_H 1
#  define HAVE_SYS_TYPES_H 1
# endif
# if defined(AMIGA) && defined(GCC)
#  define HAVE_BEEP 1
#  define HAVE_BOX 1
#  define HAVE_WHLINE 1
#  define HAVE_CBREAK 1
#  define HAVE_CURS_SET 1
#  define HAVE_DOUPDATE 1
#  define HAVE_KEYPAD 1
#  define HAVE_NOCBREAK 1
#  define HAVE_NODELAY 1
#  define HAVE_NOTIMEOUT 1
#  define HAVE_UNGETCH 1
#  ifndef HAVE_PROTO
#    define HAVE_PROTO 1
#  endif
#  define HAVE_RAW 1
#  define HAVE_RESET_PROG_MODE 1
#  define HAVE_RESET_SHELL_MODE 1
#  define HAVE_SLK_INIT 1
#  define HAVE_SLK_ATTRSET 1
#  define HAVE_TOUCHLINE 1
#  define HAVE_TYPEAHEAD 1
#  define HAVE_WATTRSET 1
#  define HAVE_WADDCHNSTR 1
#  define HAVE_WBKGD 1
#  define HAVE_WNOUTREFRESH 1
#  define HAVE_WVLINE 1
#  define HAVE_WHLINE 1
#  define RETSIGTYPE void
#  define STDC_HEADERS 1
#  define TIME_WITH_SYS_TIME 1
#  define USE_NCURSES 1
#  define USE_REGINA 1
#  define HAVE_STRCASECMP 1
#  define HAVE_READLINK 1
#  define HAVE_RENAME 1
#  define HAVE_LSTAT 1
#  define HAVE_CHOWN 1
#  define HAVE_CTYPE_H 1
#  define HAVE_ALLOCA_H 1
#  define HAVE_DIRENT_H 1
#  define HAVE_FCNTL_H 1
#  define HAVE_MEMORY_H 1
#  define HAVE_STDARG_H 1
#  define HAVE_STDLIB_H 1
#  define HAVE_STRING_H 1
#  define HAVE_TIME_H 1
#  define HAVE_SYS_FILE_H 1
#  define HAVE_SYS_STAT_H 1
#  define HAVE_SYS_TYPES_H 1
#  define HAVE_SYS_WAIT_H 1
#  define HAVE_UNISTD_H 1
# endif
#endif

/*---------------------------------------------------------------------*/
/* The following values can be changed to suit your needs.             */
/*---------------------------------------------------------------------*/
#define MAX_FILE_NAME              255  /* maximum length of fully qualified file */
#define MAX_COMMAND_LENGTH         150  /* maximum length of a command */
#define MAX_LENGTH_OF_LINE         512  /* default maximum length of a line */
#define MAX_COMMANDS                10  /* default maximum number of commands allowed on command line */
#define MAX_RECV                    20  /* number of lines that can be recovered */
#define MAX_SAVED_COMMANDS          20  /* number of commands that can be retrieved */
#define MAX_NUMTABS                 32  /* number of tab stops that can be defined */

/*---------------------------------------------------------------------*/
/* The following values should not be changed unless you know what you */
/* are doing !                                                         */
/*---------------------------------------------------------------------*/
typedef unsigned char  ROWTYPE;
typedef unsigned char  COLTYPE;
typedef unsigned char  CHARTYPE;
typedef unsigned short LENGTHTYPE;
typedef long           LINETYPE;
typedef unsigned char  SELECTTYPE;
/*---------------------------------------------------------------------*/
/* A default char type to avoid compiler warnings.                     */
/*---------------------------------------------------------------------*/
typedef char           DEFCHAR;