Move macbug, cmdstatus and saveflag to eval.

This commit is contained in:
Renaud 2013-10-08 16:24:11 +08:00
parent 31b1cc84fb
commit a027973156
4 changed files with 7 additions and 6 deletions

3
edef.h
View File

@ -60,9 +60,6 @@ extern int kbdrep; /* number of repetitions */
extern int restflag; /* restricted use? */
extern int lastkey; /* last keystoke */
extern long envram; /* # of bytes current in use by malloc */
extern int macbug; /* macro debuging flag */
extern int cmdstatus; /* last command status */
extern int saveflag; /* Flags, saved with the $target var */
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 */

5
eval.c
View File

@ -38,6 +38,11 @@ char outline[ NSTRING] ; /* global string to hold debug line text */
#endif
int gflags = GFREAD ; /* global control flag */
int macbug = FALSE ; /* macro debuging flag */
int cmdstatus = TRUE ; /* last command status */
static int saveflag = 0 ; /* Flags, saved with the $target var */
/* Max #chars in a var name. */
#define NVSIZE 10

2
eval.h
View File

@ -16,6 +16,8 @@ extern char outline[] ; /* Global string to hold debug line text. */
#define GFREAD 1
extern int gflags ; /* global control flag */
extern int macbug ; /* macro debuging flag */
extern int cmdstatus ; /* last command status */
/* Macro argument token types */

View File

@ -34,9 +34,6 @@ int kbdrep = 0; /* number of repetitions */
int restflag = FALSE; /* restricted use? */
int lastkey = 0; /* last keystoke */
long envram = 0l; /* # of bytes current in use by malloc */
int macbug = FALSE; /* macro debuging flag */
int cmdstatus = TRUE; /* last command status */
int saveflag = 0; /* Flags, saved with the $target var */
int rval = 0; /* return value of a subprocess */
int overlap = 0; /* line overlap in forw/back page */
int scrollcount = 1; /* number of lines to scroll */