Lines Matching refs:ip
55 register struct inclist *ip; local
63 for (ip = inclist; ip->i_file; ip++)
64 if ((strcmp(ip->i_incstring, include) == 0) && !ip->i_included_sym)
104 ip = newinclude(path, include);
120 ip = newinclude(path, include);
129 ip = NULL;
130 return(ip);
259 register struct inclist *ip; local
264 ip = inclistp++;
267 ip->i_file = copy(newfile);
268 ip->i_included_sym = FALSE;
270 ip->i_incstring = ip->i_file;
272 ip->i_incstring = copy(incstring);
274 return(ip);
277 void included_by(ip, newfile) in included_by() argument
278 register struct inclist *ip, *newfile; in included_by()
282 if (ip == NULL)
290 if (ip->i_list == NULL)
291 ip->i_list = (struct inclist **)
292 malloc(sizeof(struct inclist *) * ++ip->i_listlen);
294 for (i=0; i<ip->i_listlen; i++)
295 if (ip->i_list[ i ] == newfile) {
297 if (!ip->i_included_sym &&
308 ip->i_file, newfile->i_file);
310 for (i=0; i<ip->i_listlen; i++)
311 warning1("\t%s\n", ip->i_list[i]->i_file);
316 ip->i_list = (struct inclist **) realloc(ip->i_list,
317 sizeof(struct inclist *) * ++ip->i_listlen);
319 ip->i_list[ ip->i_listlen-1 ] = newfile;
324 register struct inclist *ip; in inc_clean() local
326 for (ip = inclist; ip < inclistp; ip++) { in inc_clean()
327 ip->i_marked = FALSE; in inc_clean()