Lines Matching defs:tfp

547 	TAGF *atfp, *tfp;
569 if (tagf_copy(sp, atfp, &tfp))
571 TAILQ_INSERT_TAIL(nexp->tagfq, tfp, q);
591 TAGF *tfp;
593 MALLOC_RET(sp, tfp, TAGF *, sizeof(TAGF));
594 *tfp = *otfp;
597 if ((tfp->name = strdup(otfp->name)) == NULL)
600 *tfpp = tfp;
665 tagf_free(SCR *sp, TAGF *tfp)
670 TAILQ_REMOVE(exp->tagfq, tfp, q);
671 free(tfp->name);
672 free(tfp);
848 TAGF *tfp;
854 while ((tfp = TAILQ_FIRST(exp->tagfq)) != NULL)
855 tagf_free(sp, tfp);
861 MALLOC_RET(sp, tfp, TAGF *, sizeof(TAGF));
862 MALLOC(sp, tfp->name, char *, len + 1);
863 if (tfp->name == NULL) {
864 free(tfp);
867 memcpy(tfp->name, t, len);
868 tfp->name[len] = '\0';
869 tfp->flags = 0;
870 TAILQ_INSERT_TAIL(exp->tagfq, tfp, q);
890 TAGF *tfp;
897 while ((tfp = TAILQ_FIRST(exp->tagfq)) != NULL)
898 tagf_free(sp, tfp);
976 TAGF *tfp;
997 TAILQ_FOREACH(tfp, exp->tagfq, q)
998 if (ctag_sfile(sp, tfp, tqp, tqp->tag)) {
1000 F_SET(tfp, TAGF_ERR);
1002 F_CLR(tfp, TAGF_ERR | TAGF_ERR_WARN);
1008 TAILQ_FOREACH(tfp, exp->tagfq, q)
1009 if (F_ISSET(tfp, TAGF_ERR) &&
1010 !F_ISSET(tfp, TAGF_ERR_WARN)) {
1011 errno = tfp->errnum;
1012 msgq_str(sp, M_SYSERR, tfp->name, "%s");
1013 F_SET(tfp, TAGF_ERR_WARN);
1030 ctag_sfile(SCR *sp, TAGF *tfp, TAGQ *tqp, char *tname)
1042 if ((fd = open(tfp->name, O_RDONLY, 0)) < 0) {
1043 tfp->errnum = errno;
1050 tfp->errnum = errno;
1112 t = msg_print(sp, tfp->name, &nf2);
1126 ctag_file(sp, tfp, name, &dname, &dlen);
1168 ctag_file(SCR *sp, TAGF *tfp, char *name, char **dirp, size_t *dlenp)
1183 stat(name, &sb) && (p = strrchr(tfp->name, '/')) != NULL) {
1185 if ((buf = join(tfp->name, name)) == NULL) {
1190 *dirp = tfp->name;