1
0
mirror of https://github.com/rfivet/uemacs.git synced 2024-06-20 09:15:22 +00:00

Move global variables to public input scope.

This commit is contained in:
Renaud 2013-09-27 14:29:26 +08:00
parent 6f81579213
commit e2035f0d92
5 changed files with 9 additions and 8 deletions

4
edef.h
View File

@ -22,7 +22,6 @@ typedef int (*fn_t)(int, int);
/* Initialized global external declarations. */
extern int fillcol; /* Fill column */
extern int kbdm[]; /* Holds kayboard macro data */
extern char pat[]; /* Search pattern */
extern char rpat[]; /* Replacement pattern */
extern char tap[]; /* Reversed pattern array. */
@ -63,9 +62,6 @@ extern int tabmask;
extern char *cname[]; /* names of colors */
extern int *kbdptr; /* current position in keyboard buf */
extern int *kbdend; /* ptr to end of the keyboard */
#if 0
#define STOP 0 /* keyboard macro not in use */
#define PLAY 1 /* playing */

View File

@ -236,7 +236,6 @@
#define NBUFN 16 /* # of bytes, buffer name */
#define NLINE 256 /* # of bytes, input line */
#define NSTRING 128 /* # of bytes, string buffers */
#define NKBDM 256 /* # of strokes, keyboard macro */
#define NPAT 128 /* # of bytes, pattern */
#define HUGE 1000 /* Huge number */
#define NLOCKS 100 /* max # of file locks active */

View File

@ -7,7 +7,6 @@
/* initialized global definitions */
int fillcol = 72; /* Current fill column */
int kbdm[NKBDM]; /* Macro */
char *execstr = NULL; /* pointer to string to execute */
@ -76,8 +75,6 @@ char *cname[] = { /* names of colors */
};
int *kbdptr; /* current position in keyboard buf */
int *kbdend = &kbdm[0]; /* ptr to end of the keyboard */
kbdstate kbdmode = STOP; /* current keyboard macro mode */
int kbdrep = 0; /* number of repetitions */
int restflag = FALSE; /* restricted use? */

View File

@ -33,6 +33,11 @@
#define COMPLC 0
#endif
#define NKBDM 256 /* # of strokes, keyboard macro */
int kbdm[ NKBDM] ; /* Macro */
int *kbdptr ; /* current position in keyboard buf */
int *kbdend = &kbdm[0] ; /* ptr to end of the keyboard */
/*
* Ask a yes or no question in the message line. Return either TRUE, FALSE, or
* ABORT. The ABORT status is returned if the user bumps out of the question

View File

@ -3,6 +3,10 @@
#include "edef.h"
extern int kbdm[] ; /* Holds kayboard macro data */
extern int *kbdptr ; /* current position in keyboard buf */
extern int *kbdend ; /* ptr to end of the keyboard */
int mlyesno( const char *prompt) ;
int mlreply( const char *prompt, char *buf, int nbuf) ;
int mlreplyt( const char *prompt, char *buf, int nbuf, int eolchar) ;