Subversion Repositories planix.SVN

Rev

Rev 115 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 115 Rev 116
Line 75... Line 75...
75
#else
75
#else
76
#include <sgtty.h>
76
#include <sgtty.h>
77
#endif
77
#endif
78
 
78
 
79
extern	int errno;
79
extern	int errno;
-
 
80
 
-
 
81
 
-
 
82
 
-
 
83
/* defined in ex_put.c */
-
 
84
void flush(void);
-
 
85
void noonl(void);
-
 
86
void putNFL(void);
-
 
87
 
-
 
88
 
-
 
89
 
-
 
90
 
-
 
91
 
-
 
92
 
-
 
93
 
-
 
94
 
80
 
95
 
81
#ifdef	NCURSES
96
#ifdef	NCURSES
82
/*
97
/*
83
 * Some of the symbols collide.
98
 * Some of the symbols collide.
84
 */
99
 */
85
#define	LINES		LI_NES
100
#define	LINES		LI_NES
86
#define	cleanup		clean_up
101
#define	cleanup		clean_up
87
#define	filter		fil_ter
102
#define	filter		fil_ter
88
#define	getch		get_ch
103
#define	getch		get_ch
89
#define	longname	long_name
104
#define	longname	long_name
90
#define	ttytype		tty_type
105
//#define	ttytype		tty_type
91
#define	winch		win_ch
106
#define	winch		win_ch
92
#endif
107
#endif
93
 
108
 
94
#ifndef	VMUNIX
109
#ifndef	VMUNIX
95
typedef	short	line;
110
typedef	short	line;
96
#else
111
#else
97
typedef	int	line;
112
typedef	int	line;
98
#endif
113
#endif
Line 122... Line 137...
122
#define	STRING	2		/* SHELL or DIRECTORY */
137
#define	STRING	2		/* SHELL or DIRECTORY */
123
#define	OTERM	3
138
#define	OTERM	3
124
 
139
 
125
#define	value(a)	options[a].ovalue
140
#define	value(a)	options[a].ovalue
126
#define	svalue(a)	options[a].osvalue
141
#define	svalue(a)	options[a].osvalue
127
 
142
 
128
extern	 struct	option options[NOPTS + 1];
143
extern	 struct	option options[NOPTS + 1];
129
 
144
 
130
 
145
 
131
/*
146
/*
132
 * The editor does not normally use the standard i/o library.  Because
147
 * The editor does not normally use the standard i/o library.  Because
Line 168... Line 183...
168
#	define	EOF	-1
183
#	define	EOF	-1
169
#endif
184
#endif
170
 
185
 
171
#ifndef	MAXBSIZE	/* GR */
186
#ifndef	MAXBSIZE	/* GR */
172
#define	MAXBSIZE	BUFSIZ
187
#define	MAXBSIZE	BUFSIZ
173
#endif
188
#endif
174
 
189
 
175
/*
190
/*
176
 * Character constants and bits
191
 * Character constants and bits
177
 *
192
 *
178
 * The editor uses the QUOTE bit as a flag to pass on with characters
193
 * The editor uses the QUOTE bit as a flag to pass on with characters
Line 306... Line 321...
306
#define	ONERR		} else { vcatch = 0;
321
#define	ONERR		} else { vcatch = 0;
307
#define	ENDCATCH	} vcatch = 0;
322
#define	ENDCATCH	} vcatch = 0;
308
 
323
 
309
/*
324
/*
310
 * Environment like memory
325
 * Environment like memory
311
 */
326
 */
312
var	char	altfile[FNSIZE];	/* Alternate file name */
327
var	char	altfile[FNSIZE];	/* Alternate file name */
313
extern	 char	direct[ONMSZ];		/* Temp file goes here */
328
extern	 char	direct[ONMSZ];		/* Temp file goes here */
314
extern	 char	shell[ONMSZ];		/* Copied to be settable */
329
extern	 char	shell[ONMSZ];		/* Copied to be settable */
315
extern	 char	ttytype[ONMSZ];		/* A long and pretty name */
330
extern	 char	ex_ttytype[ONMSZ];		/* A long and pretty name */
316
var	char	uxb[UXBSIZE + 2];	/* Last !command for !! */
331
var	char	uxb[UXBSIZE + 2];	/* Last !command for !! */
317
 
332
 
318
/*
333
/*
319
 * The editor data structure for accessing the current file consists
334
 * The editor data structure for accessing the current file consists
320
 * of an incore array of pointers into the temporary file tfile.
335
 * of an incore array of pointers into the temporary file tfile.
Line 445... Line 460...
445
#	define	ignorf(a)	Ignorf((int (*) ()) (a))
460
#	define	ignorf(a)	Ignorf((int (*) ()) (a))
446
#else
461
#else
447
#	define	ignore(a)	a
462
#	define	ignore(a)	a
448
#	define	ignorf(a)	a
463
#	define	ignorf(a)	a
449
#endif
464
#endif
-
 
465
 
-
 
466
 
-
 
467
 
-
 
468