363 |
|
while (*s++); |
364 |
|
return(0); |
365 |
|
case '[': /* character set */ |
366 |
< |
setmatch = *s == *++p; |
366 |
> |
setmatch = (*s == *++p); |
367 |
|
if (!*p) |
368 |
|
return(0); |
369 |
|
while (*++p != ']') { |
370 |
|
if (!*p) |
371 |
|
return(0); |
372 |
|
if (*p == '-') { |
373 |
< |
setmatch += (p[-1] <= *s && *s <= p[1]); |
373 |
> |
setmatch += (p[-1] <= *s) & (*s <= p[1]); |
374 |
|
if (!*++p) |
375 |
|
break; |
376 |
|
} else |
384 |
|
p++; |
385 |
|
/* fall through */ |
386 |
|
default: /* normal character */ |
387 |
< |
if (*p != *s) |
387 |
> |
if (!*s | (*p != *s)) |
388 |
|
return(0); |
389 |
|
s++; |
390 |
|
break; |