1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-10-01 09:45:58 -04:00

Move global variable to private scope.

This commit is contained in:
Renaud 2013-09-27 14:16:29 +08:00
parent 4e7a07405d
commit 6f81579213
3 changed files with 6 additions and 2 deletions

2
edef.h
View File

@ -62,7 +62,7 @@ extern int quotec; /* quote char during mlreply() */
extern int tabmask;
extern char *cname[]; /* names of colors */
extern struct window *swindow; /* saved window pointer */
extern int *kbdptr; /* current position in keyboard buf */
extern int *kbdend; /* ptr to end of the keyboard */

View File

@ -75,7 +75,7 @@ char *cname[] = { /* names of colors */
#endif
};
struct window *swindow = NULL; /* saved window pointer */
int *kbdptr; /* current position in keyboard buf */
int *kbdend = &kbdm[0]; /* ptr to end of the keyboard */
kbdstate kbdmode = STOP; /* current keyboard macro mode */

View File

@ -21,6 +21,10 @@
#include "terminal.h"
#include "wrapper.h"
static struct window *swindow = NULL ; /* saved window pointer */
/*
* Reposition dot in the current window to line "n". If the argument is
* positive, it is that line. If it is negative it is that line from the