version 1.8, 1999/12/08 23:09:45 |
version 1.9, 2001/07/12 05:16:53 |
|
|
s = ns; |
s = ns; |
else |
else |
s = cgoto(f, s, *q); |
s = cgoto(f, s, *q); |
if (s == 1) /* no transition */ |
if (s == 1) { /* no transition */ |
if (patlen >= 0) { |
if (patlen >= 0) { |
patbeg = (char *) p; |
patbeg = (char *) p; |
return(1); |
return(1); |
} |
} |
else |
else |
goto nextin; /* no match */ |
goto nextin; /* no match */ |
|
} |
} while (*q++ != 0); |
} while (*q++ != 0); |
if (f->out[s]) |
if (f->out[s]) |
patlen = q-p-1; /* don't count $ */ |
patlen = q-p-1; /* don't count $ */ |
|
|
s = ns; |
s = ns; |
else |
else |
s = cgoto(f, s, *q); |
s = cgoto(f, s, *q); |
if (s == 1) /* no transition */ |
if (s == 1) { /* no transition */ |
if (patlen > 0) { |
if (patlen > 0) { |
patbeg = (char *) p; |
patbeg = (char *) p; |
return(1); |
return(1); |
} else |
} else |
goto nnextin; /* no nonempty match */ |
goto nnextin; /* no nonempty match */ |
|
} |
} while (*q++ != 0); |
} while (*q++ != 0); |
if (f->out[s]) |
if (f->out[s]) |
patlen = q-p-1; /* don't count $ */ |
patlen = q-p-1; /* don't count $ */ |