Lines Matching defs:pattern
33 #define ROUND 64 /* pattern buffer size round */
39 char* pattern;
75 * return regcomp() compiled re for pattern and reflags
79 regcache(const char* pattern, regflags_t reflags, int* status)
90 * 0 pattern flushes the cache and reflags>0 extends cache
93 if (!pattern)
131 * check if the pattern is in the cache
134 for (i = 0; i < sizeof(key) && pattern[i]; i++)
135 ((char*)&key)[i] = pattern[i];
145 else if (*(Key_t*)matchstate.cache[i]->pattern == key && !strcmp(matchstate.cache[i]->pattern, pattern) && matchstate.cache[i]->reflags == reflags)
169 if ((i = strlen(pattern) + 1) > cp->size)
172 if (!(cp->pattern = newof(cp->pattern, char, cp->size, 0)))
179 strcpy(cp->pattern, pattern);
181 cp->pattern[i] = 0;
182 pattern = (const char*)cp->pattern;
183 if (i = regcomp(&cp->re, pattern, reflags))