[BACK]Return to search.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/search.c between version 1.24 and 1.25

version 1.24, 2005/11/18 17:35:17 version 1.25, 2005/11/18 20:56:53
Line 25 
Line 25 
 #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);
Line 42 
Line 42 
 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.    */
Line 154 
Line 154 
 static int  static int
 isearch(int dir)  isearch(int dir)
 {  {
         LINE    *clp;          struct line     *clp;
   
         int      c;          int      c;
         int      cbo;          int      cbo;
Line 446 
Line 446 
 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;
Line 643 
Line 643 
 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;
   
Line 695 
Line 695 
 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;
   

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25