2010-07-11 13:54:48 -04:00
|
|
|
/* edef.h
|
2005-05-31 11:50:56 -04:00
|
|
|
*
|
|
|
|
* Global variable definitions
|
|
|
|
*
|
|
|
|
* written by Dave G. Conroy
|
|
|
|
* modified by Steve Wilhite, George Jones
|
|
|
|
* greatly modified by Daniel Lawrence
|
|
|
|
* modified by Petri Kutvonen
|
|
|
|
*/
|
2010-07-11 13:54:48 -04:00
|
|
|
#ifndef EDEF_H_
|
|
|
|
#define EDEF_H_
|
2005-05-31 11:50:56 -04:00
|
|
|
|
2013-09-20 06:10:30 -04:00
|
|
|
#include "buffer.h"
|
2013-05-18 02:21:28 -04:00
|
|
|
#include "estruct.h"
|
|
|
|
|
2005-09-30 18:33:51 -04:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
2010-07-11 13:54:48 -04:00
|
|
|
/* Some global fuction declarations. */
|
2005-09-30 20:52:20 -04:00
|
|
|
typedef int (*fn_t)(int, int);
|
|
|
|
|
2010-07-11 13:54:48 -04:00
|
|
|
/* Initialized global external declarations. */
|
2005-05-31 11:50:56 -04:00
|
|
|
|
2005-09-30 18:26:09 -04:00
|
|
|
extern int fillcol; /* Fill column */
|
2013-09-26 08:06:36 -04:00
|
|
|
|
|
|
|
|
2005-09-30 18:26:09 -04:00
|
|
|
extern int eolexist; /* does clear to EOL exist? */
|
|
|
|
extern int revexist; /* does reverse video exist? */
|
|
|
|
extern int flickcode; /* do flicker supression? */
|
|
|
|
extern int gfcolor; /* global forgrnd color (white) */
|
|
|
|
extern int gbcolor; /* global backgrnd color (black) */
|
|
|
|
extern int sgarbf; /* State of screen unknown */
|
|
|
|
extern int clexec; /* command line execution flag */
|
|
|
|
extern int discmd; /* display command flag */
|
|
|
|
extern int disinp; /* display input characters */
|
2013-09-26 08:06:36 -04:00
|
|
|
|
2005-09-30 18:26:09 -04:00
|
|
|
extern int metac; /* current meta character */
|
|
|
|
extern int ctlxc; /* current control X prefix char */
|
|
|
|
extern int reptc; /* current universal repeat char */
|
|
|
|
extern int abortc; /* current abort command char */
|
|
|
|
|
|
|
|
extern int tabmask;
|
2013-09-25 01:23:52 -04:00
|
|
|
|
2013-09-27 02:16:29 -04:00
|
|
|
|
2005-09-30 18:26:09 -04:00
|
|
|
extern int restflag; /* restricted use? */
|
|
|
|
extern long envram; /* # of bytes current in use by malloc */
|
|
|
|
extern int rval; /* return value of a subprocess */
|
|
|
|
extern int overlap; /* line overlap in forw/back page */
|
|
|
|
extern int scrollcount; /* number of lines to scroll */
|
2005-05-31 11:50:56 -04:00
|
|
|
|
2010-07-11 13:54:48 -04:00
|
|
|
/* Uninitialized global external declarations. */
|
2005-05-31 11:50:56 -04:00
|
|
|
|
2013-09-26 07:16:28 -04:00
|
|
|
#define CFCPCN 0x0001 /* Last command was C-P, C-N */
|
|
|
|
#define CFKILL 0x0002 /* Last command was a kill */
|
|
|
|
|
2005-09-30 18:26:09 -04:00
|
|
|
extern int thisflag; /* Flags, this command */
|
|
|
|
extern int lastflag; /* Flags, last command */
|
2013-09-26 07:16:28 -04:00
|
|
|
|
2005-09-30 18:26:09 -04:00
|
|
|
extern int curgoal; /* Goal for C-P, C-N */
|
|
|
|
|
2010-07-11 13:54:48 -04:00
|
|
|
extern char sres[NBUFN]; /* Current screen resolution. */
|
2005-05-31 11:50:56 -04:00
|
|
|
|
|
|
|
|
2010-07-11 13:54:48 -04:00
|
|
|
#endif /* EDEF_H_ */
|