mirror of
https://github.com/rfivet/uemacs.git
synced 2024-11-18 02:26:06 -05:00
Move global search pattern variables to public search scope.
This commit is contained in:
parent
e2035f0d92
commit
62e887547b
5
edef.h
5
edef.h
@ -112,11 +112,6 @@ 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 unsigned int matchlen;
|
|
||||||
extern unsigned int mlenold;
|
|
||||||
extern char *patmatch;
|
|
||||||
extern struct line *matchline;
|
|
||||||
extern int matchoff;
|
|
||||||
|
|
||||||
#if DEBUGM
|
#if DEBUGM
|
||||||
/* Vars needed for macro debugging output. */
|
/* Vars needed for macro debugging output. */
|
||||||
|
12
globals.c
12
globals.c
@ -113,18 +113,6 @@ char pat[NPAT]; /* Search pattern */
|
|||||||
char tap[NPAT]; /* Reversed pattern array. */
|
char tap[NPAT]; /* Reversed pattern array. */
|
||||||
char rpat[NPAT]; /* replacement pattern */
|
char rpat[NPAT]; /* replacement pattern */
|
||||||
|
|
||||||
/* The variable matchlen holds the length of the matched
|
|
||||||
* string - used by the replace functions.
|
|
||||||
* The variable patmatch holds the string that satisfies
|
|
||||||
* the search command.
|
|
||||||
* The variables matchline and matchoff hold the line and
|
|
||||||
* offset position of the *start* of match.
|
|
||||||
*/
|
|
||||||
unsigned int matchlen = 0;
|
|
||||||
unsigned int mlenold = 0;
|
|
||||||
char *patmatch = NULL;
|
|
||||||
struct line *matchline = NULL;
|
|
||||||
int matchoff = 0;
|
|
||||||
|
|
||||||
#if DEBUGM
|
#if DEBUGM
|
||||||
/* vars needed for macro debugging output */
|
/* vars needed for macro debugging output */
|
||||||
|
14
search.c
14
search.c
@ -72,6 +72,20 @@
|
|||||||
#include "terminal.h"
|
#include "terminal.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
|
|
||||||
|
/* The variable matchlen holds the length of the matched
|
||||||
|
* string - used by the replace functions.
|
||||||
|
* The variable patmatch holds the string that satisfies
|
||||||
|
* the search command.
|
||||||
|
* The variables matchline and matchoff hold the line and
|
||||||
|
* offset position of the *start* of match.
|
||||||
|
*/
|
||||||
|
unsigned int matchlen = 0 ;
|
||||||
|
static unsigned int mlenold = 0 ;
|
||||||
|
char *patmatch = NULL ;
|
||||||
|
static struct line *matchline = NULL;
|
||||||
|
static int matchoff = 0;
|
||||||
|
|
||||||
|
|
||||||
#if defined(MAGIC)
|
#if defined(MAGIC)
|
||||||
/*
|
/*
|
||||||
* Defines for the metacharacters in the regular expression
|
* Defines for the metacharacters in the regular expression
|
||||||
|
3
search.h
3
search.h
@ -5,6 +5,9 @@
|
|||||||
|
|
||||||
#include "line.h"
|
#include "line.h"
|
||||||
|
|
||||||
|
extern unsigned int matchlen ;
|
||||||
|
extern char *patmatch ;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PTBEG, PTEND, FORWARD, and REVERSE are all toggle-able values for
|
* PTBEG, PTEND, FORWARD, and REVERSE are all toggle-able values for
|
||||||
* the scan routines.
|
* the scan routines.
|
||||||
|
Loading…
Reference in New Issue
Block a user