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

Diff for /src/usr.bin/vgrind/Attic/regexp.c between version 1.2 and 1.3

version 1.2, 1996/06/26 05:42:29 version 1.3, 2001/11/19 19:02:17
Line 72 
Line 72 
   
 int  int
 STRNCMP(s1, s2, len)  STRNCMP(s1, s2, len)
         register char *s1,*s2;          char *s1,*s2;
         register int len;          int len;
 {  {
         if (l_onecase) {          if (l_onecase) {
             do              do
Line 156 
Line 156 
 convexp(re)  convexp(re)
     char *re;           /* unconverted irregular expression */      char *re;           /* unconverted irregular expression */
 {  {
     register char *cre;         /* pointer to converted regular expression */      char *cre;          /* pointer to converted regular expression */
   
     /* allocate room for the converted expression */      /* allocate room for the converted expression */
     if (re == NIL)      if (re == NIL)
Line 181 
Line 181 
 static void  static void
 expconv()  expconv()
 {  {
     register char *cs;          /* pointer to current symbol in converted exp */      char *cs;           /* pointer to current symbol in converted exp */
     register char c;            /* character being processed */      char c;             /* character being processed */
     register char *acs;         /* pinter to last alternate */      char *acs;          /* pinter to last alternate */
     register int temp;      int temp;
   
     /* let the conversion begin */      /* let the conversion begin */
     acs = NIL;      acs = NIL;
Line 351 
Line 351 
   
 char *  char *
 expmatch (s, re, mstring)  expmatch (s, re, mstring)
     register char *s;           /* string to check for a match in */      char *s;                    /* string to check for a match in */
     register char *re;          /* a converted irregular expression */      char *re;                   /* a converted irregular expression */
     register char *mstring;     /* where to put whatever matches a \p */      char *mstring;              /* where to put whatever matches a \p */
 {  {
     register char *cs;          /* the current symbol */      char *cs;                   /* the current symbol */
     register char *ptr,*s1;     /* temporary pointer */      char *ptr,*s1;              /* temporary pointer */
     boolean matched;            /* a temporary boolean */      boolean matched;            /* a temporary boolean */
   
     /* initial conditions */      /* initial conditions */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3