1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-06-03 02:50:42 +00:00

Make kbd macro save area use 'int' instead of short

I'm starting to expand the input value from 'short' (with flags in the
upper eight bytes) to 'int' (with negative values having flags).

Small baby steps.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2012-07-10 17:42:19 -07:00
parent ec6f4f36ec
commit 3c7bd9a7d2
2 changed files with 6 additions and 6 deletions

6
edef.h
View File

@ -19,7 +19,7 @@ typedef int (*fn_t)(int, int);
/* Initialized global external declarations. */ /* Initialized global external declarations. */
extern int fillcol; /* Fill column */ extern int fillcol; /* Fill column */
extern short 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 *execstr; /* pointer to string to execute */ extern char *execstr; /* pointer to string to execute */
@ -66,8 +66,8 @@ extern struct kill *kbufh; /* kill buffer header pointer */
extern int kused; /* # of bytes used in KB */ extern int kused; /* # of bytes used in KB */
extern struct window *swindow; /* saved window pointer */ extern struct window *swindow; /* saved window pointer */
extern int cryptflag; /* currently encrypting? */ extern int cryptflag; /* currently encrypting? */
extern short *kbdptr; /* current position in keyboard buf */ extern int *kbdptr; /* current position in keyboard buf */
extern short *kbdend; /* ptr to end of the keyboard */ extern int *kbdend; /* ptr to end of the keyboard */
extern int kbdmode; /* current keyboard macro mode */ extern int kbdmode; /* current keyboard macro mode */
extern int kbdrep; /* number of repetitions */ extern int kbdrep; /* number of repetitions */
extern int restflag; /* restricted use? */ extern int restflag; /* restricted use? */

View File

@ -4,7 +4,7 @@
/* initialized global definitions */ /* initialized global definitions */
int fillcol = 72; /* Current fill column */ int fillcol = 72; /* Current fill column */
short 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 */ char golabel[NPAT] = ""; /* current line to go to */
int execlevel = 0; /* execution IF level */ int execlevel = 0; /* execution IF level */
@ -63,8 +63,8 @@ struct kill *kbufh = NULL; /* kill buffer header pointer */
int kused = KBLOCK; /* # of bytes used in kill buffer */ int kused = KBLOCK; /* # of bytes used in kill buffer */
struct window *swindow = NULL; /* saved window pointer */ struct window *swindow = NULL; /* saved window pointer */
int cryptflag = FALSE; /* currently encrypting? */ int cryptflag = FALSE; /* currently encrypting? */
short *kbdptr; /* current position in keyboard buf */ int *kbdptr; /* current position in keyboard buf */
short *kbdend = &kbdm[0]; /* ptr to end of the keyboard */ int *kbdend = &kbdm[0]; /* ptr to end of the keyboard */
int kbdmode = STOP; /* current keyboard macro mode */ int kbdmode = STOP; /* current keyboard macro mode */
int kbdrep = 0; /* number of repetitions */ int kbdrep = 0; /* number of repetitions */
int restflag = FALSE; /* restricted use? */ int restflag = FALSE; /* restricted use? */