mirror of
https://github.com/rfivet/uemacs.git
synced 2024-11-19 19:15:55 -05:00
Review scope of some global variables.
This commit is contained in:
parent
015771e7a5
commit
4e7a07405d
10
edef.h
10
edef.h
@ -25,9 +25,10 @@ extern int fillcol; /* Fill column */
|
|||||||
extern int kbdm[]; /* Holds kayboard macro data */
|
extern int kbdm[]; /* Holds kayboard macro data */
|
||||||
extern char pat[]; /* Search pattern */
|
extern char pat[]; /* Search pattern */
|
||||||
extern char rpat[]; /* Replacement pattern */
|
extern char rpat[]; /* Replacement pattern */
|
||||||
|
extern char tap[]; /* Reversed pattern array. */
|
||||||
extern char *execstr; /* pointer to string to execute */
|
extern char *execstr; /* pointer to string to execute */
|
||||||
extern char golabel[]; /* current line to go to */
|
|
||||||
extern int execlevel; /* execution IF level */
|
|
||||||
extern int eolexist; /* does clear to EOL exist? */
|
extern int eolexist; /* does clear to EOL exist? */
|
||||||
extern int revexist; /* does reverse video exist? */
|
extern int revexist; /* does reverse video exist? */
|
||||||
extern int flickcode; /* do flicker supression? */
|
extern int flickcode; /* do flicker supression? */
|
||||||
@ -46,7 +47,7 @@ extern int clexec; /* command line execution flag */
|
|||||||
extern int mstore; /* storing text to macro flag */
|
extern int mstore; /* storing text to macro flag */
|
||||||
extern int discmd; /* display command flag */
|
extern int discmd; /* display command flag */
|
||||||
extern int disinp; /* display input characters */
|
extern int disinp; /* display input characters */
|
||||||
extern struct buffer *bstore; /* buffer to store macro text to */
|
|
||||||
extern int vtrow; /* Row location of SW cursor */
|
extern int vtrow; /* Row location of SW cursor */
|
||||||
extern int vtcol; /* Column location of SW cursor */
|
extern int vtcol; /* Column location of SW cursor */
|
||||||
extern int lbound; /* leftmost column of current line
|
extern int lbound; /* leftmost column of current line
|
||||||
@ -114,9 +115,6 @@ extern struct buffer *bheadp; /* Head of list of buffers */
|
|||||||
extern struct buffer *blistp; /* Buffer for C-X C-B */
|
extern struct buffer *blistp; /* Buffer for C-X C-B */
|
||||||
|
|
||||||
extern char sres[NBUFN]; /* Current screen resolution. */
|
extern char sres[NBUFN]; /* Current screen resolution. */
|
||||||
extern char pat[]; /* Search pattern. */
|
|
||||||
extern char tap[]; /* Reversed pattern array. */
|
|
||||||
extern char rpat[]; /* Replacement pattern. */
|
|
||||||
|
|
||||||
extern unsigned int matchlen;
|
extern unsigned int matchlen;
|
||||||
extern unsigned int mlenold;
|
extern unsigned int mlenold;
|
||||||
|
4
exec.c
4
exec.c
@ -64,6 +64,10 @@ static const char *dname[] = {
|
|||||||
"force"
|
"force"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static char golabel[ NPAT] = "" ; /* current line to go to */
|
||||||
|
static int execlevel = 0 ; /* execution IF level */
|
||||||
|
static struct buffer *bstore = NULL ; /* buffer to store macro text to */
|
||||||
|
|
||||||
static int dobuf( struct buffer *bp) ;
|
static int dobuf( struct buffer *bp) ;
|
||||||
static void freewhile( struct while_block *wp) ;
|
static void freewhile( struct while_block *wp) ;
|
||||||
|
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
int fillcol = 72; /* Current fill column */
|
int fillcol = 72; /* Current fill column */
|
||||||
int kbdm[NKBDM]; /* Macro */
|
int kbdm[NKBDM]; /* Macro */
|
||||||
char *execstr = NULL; /* pointer to string to execute */
|
char *execstr = NULL; /* pointer to string to execute */
|
||||||
char golabel[NPAT] = ""; /* current line to go to */
|
|
||||||
int execlevel = 0; /* execution IF level */
|
|
||||||
int eolexist = TRUE; /* does clear to EOL exist */
|
int eolexist = TRUE; /* does clear to EOL exist */
|
||||||
int revexist = FALSE; /* does reverse video exist? */
|
int revexist = FALSE; /* does reverse video exist? */
|
||||||
int flickcode = FALSE; /* do flicker supression? */
|
int flickcode = FALSE; /* do flicker supression? */
|
||||||
@ -54,7 +54,7 @@ int clexec = FALSE; /* command line execution flag */
|
|||||||
int mstore = FALSE; /* storing text to macro flag */
|
int mstore = FALSE; /* storing text to macro flag */
|
||||||
int discmd = TRUE; /* display command flag */
|
int discmd = TRUE; /* display command flag */
|
||||||
int disinp = TRUE; /* display input characters */
|
int disinp = TRUE; /* display input characters */
|
||||||
struct buffer *bstore = NULL; /* buffer to store macro text to */
|
|
||||||
int vtrow = 0; /* Row location of SW cursor */
|
int vtrow = 0; /* Row location of SW cursor */
|
||||||
int vtcol = 0; /* Column location of SW cursor */
|
int vtcol = 0; /* Column location of SW cursor */
|
||||||
int lbound = 0; /* leftmost column of current line
|
int lbound = 0; /* leftmost column of current line
|
||||||
|
Loading…
Reference in New Issue
Block a user