Lines Matching refs:comp

257 	char	**comp = 0, **new, *str;  in makeFilterComp()  local
266 comp = am(myself, 2 * sizeof (comp[0])); in makeFilterComp()
267 if (comp == 0) in makeFilterComp()
269 comp[0] = sdup(myself, T, filter); in makeFilterComp()
270 if (comp[0] == 0) { in makeFilterComp()
271 sfree(comp); in makeFilterComp()
276 return (comp); in makeFilterComp()
293 new = realloc(comp, (nc+1) * sizeof (comp[nc])); in makeFilterComp()
295 if (comp != 0) { in makeFilterComp()
297 sfree(comp[i]); in makeFilterComp()
298 free(comp); in makeFilterComp()
299 comp = 0; in makeFilterComp()
304 comp = new; in makeFilterComp()
305 comp[nc] = sdup(myself, T, &str[s]); in makeFilterComp()
306 if (comp[nc] == 0) { in makeFilterComp()
308 sfree(comp[i]); in makeFilterComp()
309 sfree(comp); in makeFilterComp()
310 comp = 0; in makeFilterComp()
322 return (comp); in makeFilterComp()
326 freeFilterComp(char **comp, int numComps) { in freeFilterComp() argument
329 if (comp == 0) in freeFilterComp()
333 sfree(comp[i]); in freeFilterComp()
335 free(comp); in freeFilterComp()
339 addFilterComp(char *new, char **comp, int *numComps) { in addFilterComp() argument
344 return (comp); in addFilterComp()
349 tmp = realloc(comp, ((*numComps)+1) * sizeof (comp[0])); in addFilterComp()
355 comp = tmp; in addFilterComp()
356 comp[*numComps] = str; in addFilterComp()
359 return (comp); in addFilterComp()
363 concatenateFilterComps(int numComps, char **comp) { in concatenateFilterComps() argument
368 if (numComps == 0 || comp == 0) in concatenateFilterComps()
373 if (comp[i] == 0) in concatenateFilterComps()
375 bp2buf(myself, &b, "(%s)", comp[i]); in concatenateFilterComps()