Lines Matching defs:tqp
442 TAGQ *rtqp, *tqp;
475 if ((tqp = create_cs_cmd(sp, pattern, &search)) == NULL)
499 (void)fprintf(csc->to_fp, "%d%s\n", search, tqp->tag + 2);
503 if (parse(sp, csc, tqp, &matches)) {
506 tagq_free(sp, tqp);
516 tqp->current = tqp->tagq.cqh_first;
521 if (ex_tag_Nswitch(sp, tqp->current, force))
528 if (ex_tag_nswitch(sp, tqp->current, force))
542 CIRCLEQ_INSERT_HEAD(&exp->tq, tqp, q);
544 (void)cscope_search(sp, tqp, tqp->current);
587 TAGQ *tqp;
634 CALLOC(sp, tqp, TAGQ *, 1, sizeof(TAGQ) + tlen + 3);
635 if (tqp == NULL)
637 CIRCLEQ_INIT(&tqp->tagq);
638 tqp->tag = tqp->buf;
639 tqp->tag[0] = pattern[0];
640 tqp->tag[1] = ' ';
641 tqp->tlen = tlen + 2;
642 memcpy(tqp->tag + 2, p, tlen);
643 tqp->tag[tlen + 2] = '\0';
644 F_SET(tqp, TAG_CSCOPE);
646 return (tqp);
654 parse(sp, csc, tqp, matchesp)
657 TAGQ *tqp;
755 CIRCLEQ_INSERT_TAIL(&tqp->tagq, tp, q);
966 cscope_search(sp, tqp, tp)
968 TAGQ *tqp;
976 tag_msg(sp, TAG_BADLNO, tqp->tag);
989 tag_msg(sp, TAG_SEARCH, tqp->tag);