• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/nvi/ex/

Lines Matching refs:tfp

542 	TAGF *atfp, *tfp;
564 if (tagf_copy(sp, atfp, &tfp))
566 TAILQ_INSERT_TAIL(nexp->tagfq, tfp, q);
586 TAGF *tfp;
588 MALLOC_RET(sp, tfp, sizeof(TAGF));
589 *tfp = *otfp;
592 if ((tfp->name = strdup(otfp->name)) == NULL) {
593 free(tfp);
597 *tfpp = tfp;
662 tagf_free(SCR *sp, TAGF *tfp)
667 TAILQ_REMOVE(exp->tagfq, tfp, q);
668 free(tfp->name);
669 free(tfp);
843 TAGF *tfp;
849 while ((tfp = TAILQ_FIRST(exp->tagfq)) != NULL)
850 tagf_free(sp, tfp);
856 MALLOC_RET(sp, tfp, sizeof(TAGF));
857 MALLOC(sp, tfp->name, len + 1);
858 if (tfp->name == NULL) {
859 free(tfp);
862 memcpy(tfp->name, t, len);
863 tfp->name[len] = '\0';
864 tfp->flags = 0;
865 TAILQ_INSERT_TAIL(exp->tagfq, tfp, q);
885 TAGF *tfp;
892 while ((tfp = TAILQ_FIRST(exp->tagfq)) != NULL)
893 tagf_free(sp, tfp);
970 TAGF *tfp;
991 TAILQ_FOREACH(tfp, exp->tagfq, q)
992 if (ctag_sfile(sp, tfp, tqp, tqp->tag)) {
994 F_SET(tfp, TAGF_ERR);
996 F_CLR(tfp, TAGF_ERR | TAGF_ERR_WARN);
1002 TAILQ_FOREACH(tfp, exp->tagfq, q)
1003 if (F_ISSET(tfp, TAGF_ERR) &&
1004 !F_ISSET(tfp, TAGF_ERR_WARN)) {
1005 errno = tfp->errnum;
1006 msgq_str(sp, M_SYSERR, tfp->name, "%s");
1007 F_SET(tfp, TAGF_ERR_WARN);
1024 ctag_sfile(SCR *sp, TAGF *tfp, TAGQ *tqp, char *tname)
1036 if ((fd = open(tfp->name, O_RDONLY, 0)) < 0) {
1037 tfp->errnum = errno;
1044 tfp->errnum = errno;
1106 t = msg_print(sp, tfp->name, &nf2);
1120 ctag_file(sp, tfp, name, &dname, &dlen);
1161 ctag_file(SCR *sp, TAGF *tfp, char *name, char **dirp, size_t *dlenp)
1176 stat(name, &sb) && (p = strrchr(tfp->name, '/')) != NULL) {
1178 if ((buf = join(tfp->name, name)) == NULL) {
1183 *dirp = tfp->name;