Lines Matching refs:tqp
462 TAGQ *rtqp, *tqp; in cscope_find() local
499 if ((tqp = create_cs_cmd(sp, np, &search)) == NULL) in cscope_find()
523 (void)fprintf(csc->to_fp, "%lu%s\n", search, tqp->tag + 2); in cscope_find()
527 if (parse(sp, csc, tqp, &matches)) in cscope_find()
535 tagq_free(sp, tqp); in cscope_find()
542 if (ex_tag_Nswitch(sp, tqp->current, force)) in cscope_find()
549 if (ex_tag_nswitch(sp, tqp->current, force)) in cscope_find()
563 TAILQ_INSERT_HEAD(exp->tq, tqp, q); in cscope_find()
565 (void)cscope_search(sp, tqp, tqp->current); in cscope_find()
604 TAGQ *tqp; in create_cs_cmd() local
651 CALLOC(sp, tqp, 1, sizeof(TAGQ) + tlen + 3); in create_cs_cmd()
652 if (tqp == NULL) in create_cs_cmd()
654 TAILQ_INIT(tqp->tagq); in create_cs_cmd()
655 tqp->tag = tqp->buf; in create_cs_cmd()
656 tqp->tag[0] = pattern[0]; in create_cs_cmd()
657 tqp->tag[1] = ' '; in create_cs_cmd()
658 tqp->tlen = tlen + 2; in create_cs_cmd()
659 memcpy(tqp->tag + 2, p, tlen); in create_cs_cmd()
660 tqp->tag[tlen + 2] = '\0'; in create_cs_cmd()
661 F_SET(tqp, TAG_CSCOPE); in create_cs_cmd()
663 return (tqp); in create_cs_cmd()
671 parse(SCR *sp, CSC *csc, TAGQ *tqp, int *matchesp) in parse() argument
773 TAILQ_INSERT_TAIL(tqp->tagq, tp, q); in parse()
777 tqp->current == NULL && !strcmp(tp->fname, sp->frp->name)) in parse()
778 tqp->current = tp; in parse()
783 if (tqp->current == NULL) in parse()
784 tqp->current = TAILQ_FIRST(tqp->tagq); in parse()
1015 cscope_search(SCR *sp, TAGQ *tqp, TAG *tp) in cscope_search() argument
1022 tag_msg(sp, TAG_BADLNO, tqp->tag); in cscope_search()
1035 tag_msg(sp, TAG_SEARCH, tqp->tag); in cscope_search()