version 1.24, 2005/11/18 17:35:17 |
version 1.25, 2005/11/18 20:56:53 |
|
|
#define SRCH_ACCM (-4) |
#define SRCH_ACCM (-4) |
#define SRCH_MARK (-5) |
#define SRCH_MARK (-5) |
|
|
typedef struct { |
struct srchcom { |
int s_code; |
int s_code; |
LINE *s_dotp; |
struct line *s_dotp; |
int s_doto; |
int s_doto; |
} SRCHCOM; |
}; |
|
|
static int isearch(int); |
static int isearch(int); |
static void is_cpush(int); |
static void is_cpush(int); |
|
|
static void is_dspl(char *, int); |
static void is_dspl(char *, int); |
static int eq(int, int, int); |
static int eq(int, int, int); |
|
|
static SRCHCOM cmds[NSRCH]; |
static struct srchcom cmds[NSRCH]; |
static int cip; |
static int cip; |
|
|
int srch_lastdir = SRCH_NOPR; /* Last search flags. */ |
int srch_lastdir = SRCH_NOPR; /* Last search flags. */ |
|
|
static int |
static int |
isearch(int dir) |
isearch(int dir) |
{ |
{ |
LINE *clp; |
struct line *clp; |
|
|
int c; |
int c; |
int cbo; |
int cbo; |
|
|
is_find(int dir) |
is_find(int dir) |
{ |
{ |
int plen, odoto; |
int plen, odoto; |
LINE *odotp; |
struct line *odotp; |
|
|
odoto = curwp->w_doto; |
odoto = curwp->w_doto; |
odotp = curwp->w_dotp; |
odotp = curwp->w_dotp; |
|
|
int |
int |
forwsrch(void) |
forwsrch(void) |
{ |
{ |
LINE *clp, *tlp; |
struct line *clp, *tlp; |
int cbo, tbo, c, i, xcase = 0; |
int cbo, tbo, c, i, xcase = 0; |
char *pp; |
char *pp; |
|
|
|
|
int |
int |
backsrch(void) |
backsrch(void) |
{ |
{ |
LINE *clp, *tlp; |
struct line *clp, *tlp; |
int cbo, tbo, c, i, xcase = 0; |
int cbo, tbo, c, i, xcase = 0; |
char *epp, *pp; |
char *epp, *pp; |
|
|