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+2836,20 @@ re_compile_fastmap(bufp)
case casefold_on:
bufp->options |= RE_MAY_IGNORECASE;
options |= RE_OPTION_IGNORECASE;
-
{
-
static found_casefold = 0;
-
if (!found_casefold) {
-
unsigned char *p = (unsigned char*)fastmap;
-
int i;
-
for (i=0; i<=(1<<BYTEWIDTH); i++) {
-
if (p[i]) {
-
/* p[i] = 0; Do we need this line?*/
-
p[translate[i]] = 1;
-
}
-
}
-
found_casefold = 1;
-
}
-
} continue; case casefold_off: