Lines Matching defs:comp
194 char **comp = 0, **new, *str;
203 comp = am(myself, 2 * sizeof (comp[0]));
204 if (comp == 0)
206 comp[0] = sdup(myself, T, filter);
207 if (comp[0] == 0) {
208 sfree(comp);
213 return (comp);
230 new = realloc(comp, (nc+1) * sizeof (comp[nc]));
232 if (comp != 0) {
234 sfree(comp[i]);
235 free(comp);
236 comp = 0;
241 comp = new;
242 comp[nc] = sdup(myself, T, &str[s]);
243 if (comp[nc] == 0) {
245 sfree(comp[i]);
246 sfree(comp);
247 comp = 0;
259 return (comp);
263 freeFilterComp(char **comp, int numComps) {
266 if (comp == 0)
270 sfree(comp[i]);
272 free(comp);
276 addFilterComp(char *new, char **comp, int *numComps) {
281 return (comp);
286 tmp = realloc(comp, ((*numComps)+1) * sizeof (comp[0]));
292 comp = tmp;
293 comp[*numComps] = str;
296 return (comp);
300 concatenateFilterComps(int numComps, char **comp) {
305 if (numComps == 0 || comp == 0)
310 if (comp[i] == 0)
312 bp2buf(myself, &b, "(%s)", comp[i]);