mirror of
https://github.com/rfivet/uemacs.git
synced 2025-02-20 23:17:13 -05:00
Move global variables to public input scope.
This commit is contained in:
parent
6f81579213
commit
e2035f0d92
4
edef.h
4
edef.h
@ -22,7 +22,6 @@ 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 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 tap[]; /* Reversed pattern array. */
|
||||||
@ -63,9 +62,6 @@ extern int tabmask;
|
|||||||
extern char *cname[]; /* names of colors */
|
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
|
#if 0
|
||||||
#define STOP 0 /* keyboard macro not in use */
|
#define STOP 0 /* keyboard macro not in use */
|
||||||
#define PLAY 1 /* playing */
|
#define PLAY 1 /* playing */
|
||||||
|
@ -236,7 +236,6 @@
|
|||||||
#define NBUFN 16 /* # of bytes, buffer name */
|
#define NBUFN 16 /* # of bytes, buffer name */
|
||||||
#define NLINE 256 /* # of bytes, input line */
|
#define NLINE 256 /* # of bytes, input line */
|
||||||
#define NSTRING 128 /* # of bytes, string buffers */
|
#define NSTRING 128 /* # of bytes, string buffers */
|
||||||
#define NKBDM 256 /* # of strokes, keyboard macro */
|
|
||||||
#define NPAT 128 /* # of bytes, pattern */
|
#define NPAT 128 /* # of bytes, pattern */
|
||||||
#define HUGE 1000 /* Huge number */
|
#define HUGE 1000 /* Huge number */
|
||||||
#define NLOCKS 100 /* max # of file locks active */
|
#define NLOCKS 100 /* max # of file locks active */
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
/* initialized global definitions */
|
/* initialized global definitions */
|
||||||
|
|
||||||
int fillcol = 72; /* Current fill column */
|
int fillcol = 72; /* Current fill column */
|
||||||
int kbdm[NKBDM]; /* Macro */
|
|
||||||
char *execstr = NULL; /* pointer to string to execute */
|
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 */
|
kbdstate 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? */
|
||||||
|
5
input.c
5
input.c
@ -33,6 +33,11 @@
|
|||||||
#define COMPLC 0
|
#define COMPLC 0
|
||||||
#endif
|
#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
|
* 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
|
* ABORT. The ABORT status is returned if the user bumps out of the question
|
||||||
|
4
input.h
4
input.h
@ -3,6 +3,10 @@
|
|||||||
|
|
||||||
#include "edef.h"
|
#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 mlyesno( const char *prompt) ;
|
||||||
int mlreply( const char *prompt, char *buf, int nbuf) ;
|
int mlreply( const char *prompt, char *buf, int nbuf) ;
|
||||||
int mlreplyt( const char *prompt, char *buf, int nbuf, int eolchar) ;
|
int mlreplyt( const char *prompt, char *buf, int nbuf, int eolchar) ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user