Lines Matching defs:tqp
461 TAGQ *rtqp, *tqp;
498 if ((tqp = create_cs_cmd(sp, np, &search)) == NULL)
522 (void)fprintf(csc->to_fp, "%lu%s\n", search, tqp->tag + 2);
526 if (parse(sp, csc, tqp, &matches))
536 tagq_free(sp, tqp);
543 if (ex_tag_Nswitch(sp, tqp->current, force))
550 if (ex_tag_nswitch(sp, tqp->current, force))
564 TAILQ_INSERT_HEAD(exp->tq, tqp, q);
566 (void)cscope_search(sp, tqp, tqp->current);
608 TAGQ *tqp;
655 CALLOC(sp, tqp, TAGQ *, 1, sizeof(TAGQ) + tlen + 3);
656 if (tqp == NULL)
658 TAILQ_INIT(tqp->tagq);
659 tqp->tag = tqp->buf;
660 tqp->tag[0] = pattern[0];
661 tqp->tag[1] = ' ';
662 tqp->tlen = tlen + 2;
663 memcpy(tqp->tag + 2, p, tlen);
664 tqp->tag[tlen + 2] = '\0';
665 F_SET(tqp, TAG_CSCOPE);
667 return (tqp);
675 parse(SCR *sp, CSC *csc, TAGQ *tqp, int *matchesp)
776 TAILQ_INSERT_TAIL(tqp->tagq, tp, q);
780 tqp->current == NULL && !strcmp(tp->fname, sp->frp->name))
781 tqp->current = tp;
786 if (tqp->current == NULL)
787 tqp->current = TAILQ_FIRST(tqp->tagq);
1012 cscope_search(SCR *sp, TAGQ *tqp, TAG *tp)
1019 tag_msg(sp, TAG_BADLNO, tqp->tag);
1032 tag_msg(sp, TAG_SEARCH, tqp->tag);