pat_next
switch ((c = pat_next(pat, m, &pinc, flags))) {
switch (pat_next(p, endpat-p, &pinc, flags)) {
c = pat_next(p, endpat-p, &pinc, flags);
c = pat_next(p, endpat-p, &pinc, flags);
for (p=pat; (c=pat_next(p, -1, &inc, flags))!=END && c!='/'; p+=inc);