Return to regcomp.c CVS log | Up to [cvs.NetBSD.org] / src / lib / libc / regex |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.31, 2011/10/09 22:14:17 | version 1.32, 2011/11/08 19:25:45 | ||
---|---|---|---|
|
|
||
{ | { | ||
cset *cs; | cset *cs; | ||
int invert = 0; | int invert = 0; | ||
_DIAGASSERT(p != NULL); | _DIAGASSERT(p != NULL); | ||
cs = allocset(p); | cs = allocset(p); | ||
|
|
||
_DIAGASSERT(g != NULL); | _DIAGASSERT(g != NULL); | ||
if (g->setbits == NULL) | |||
return 0; | |||
ncols = (g->ncsets+(CHAR_BIT-1)) / CHAR_BIT; | ncols = (g->ncsets+(CHAR_BIT-1)) / CHAR_BIT; | ||
for (i = 0, col = g->setbits; i < ncols; i++, col += g->csetsize) | for (i = 0, col = g->setbits; i < ncols; i++, col += g->csetsize) |