Lines Matching defs:type

111 search(register struct ppfile* fp, register struct ppdirs* dp, int type, int flags)
132 message((-3, "search: %s %s%s%s%s%s%s type=%s prefix=%s flags=|%s%s%s%s%s%s start=%s=\"%s\" pre=%s lcl=%s vnd=%s std=%s cur=%s",
140 type == T_HEADER ? "<*>" : "\"*\"", prefix,
162 if (dp->type & need)
164 message((-3, "search: fp=%s need=%02x index=%d dp=%s type=%02x index=%d", fp->name, need, index, dp->name, dp->type, dp->index));
166 if (!(dp->type & (TYPE_ARCHIVE|TYPE_DIRECTORY)))
173 dp->type = 0;
194 dp->type = 0;
202 dp->type = 0;
210 dp->type |= TYPE_ARCHIVE;
229 dp->type |= TYPE_CHECKPOINT;
260 dp->type = 0;
308 (pp.pool.input || !(dp->type & TYPE_CHECKPOINT))
310 !(dp->type & TYPE_CHECKPOINT)
313 dp->type |= TYPE_BUFFER;
324 dp->type |= TYPE_DIRECTORY;
331 if (dp->type & TYPE_DIRECTORY)
341 up->type = dp->type;
353 up->type |= TYPE_HOSTED;
355 else if (!(up->type & TYPE_HOSTED))
377 if (dp->type & TYPE_HOSTED)
433 if (in->type == IN_FILE && in->file && streq(in->file, pp.path))
468 if (pp.test & 0x0040) error(1, "SEARCH#%d dir=%s%s%s%s%s file=%s%s path=%s index=%d", __LINE__, dp->name, (dp->type & TYPE_ARCHIVE) ? " ARCHIVE" : "", (dp->type & TYPE_BUFFER) ? " BUFFER" : "", (dp->type & TYPE_CHECKPOINT) ? " CHECKPOINT" : "", (dp->type & TYPE_DIRECTORY) ? " DIRECTORY" : "", fp->name, (fp->flags & INC_MEMBER(index)) ? " MEMBER" : "", pp.path, index);
475 else if (!(dp->type & TYPE_DIRECTORY))
495 else if (!(markhosted = (dp->type & TYPE_HOSTED)) && dp->index == INC_PREFIX && (pp.mode & (FILEDEPS|HEADERDEPS|INIT)) == FILEDEPS)
499 if (up && (up->type & TYPE_HOSTED))
516 if ((index == INC_STANDARD || index == INC_VENDOR) && type != T_HEADER && !(fp->flags & INC_BOUND(INC_LOCAL)))
595 ppsearch(char* file, int type, int flags)
643 if (!(xp = fp->bound[type == T_HEADER ? INC_STANDARD : INC_LOCAL]) || xp == fp)
653 if (type == T_HEADER && strneq(fp->name, "...", 3) && (!fp->name[3] || fp->name[3] == '/'))
664 if ((fd = ppsearch(fp->name + 4, type, flags|SEARCH_TEST)) < 0)
670 fd = ppsearch(fp->name + 4, type, flags|SEARCH_NEXT);
686 if ((fd = ppsearch(fp->name, type, flags)) >= 0)
691 return ppsearch(fp->name, type, flags);
702 if (type == T_HEADER)
746 if ((fd = search(xp, dp, type, flags)) >= 0)
753 if ((fd = search(fp, dp, type, flags)) < 0)
792 type = T_STRING;