Lines Matching defs:tqp

131 	TAGQ *rtqp, *tqp;
166 if ((tqp = gtag_slist(sp, exp->tag_last, F_ISSET(cmdp, E_REFERENCE))) == NULL)
170 if ((tqp = ctag_slist(sp, exp->tag_last)) == NULL)
204 if (ex_tag_Nswitch(sp, tqp->tagq.cqh_first, force))
211 if (ex_tag_nswitch(sp, tqp->tagq.cqh_first, force))
225 CIRCLEQ_INSERT_HEAD(&exp->tq, tqp, q);
228 tqp->current->search, tqp->current->slen, tqp->tag);
256 tagq_free(sp, tqp);
273 TAGQ *tqp;
276 if ((tqp = exp->tq.cqh_first) == (void *)&exp->tq) {
280 if ((tp = tqp->current->q.cqe_next) == (void *)&tqp->tagq) {
286 tqp->current = tp;
288 if (F_ISSET(tqp, TAG_CSCOPE))
289 (void)cscope_search(sp, tqp, tp);
291 (void)ctag_search(sp, tp->search, tp->slen, tqp->tag);
308 TAGQ *tqp;
311 if ((tqp = exp->tq.cqh_first) == (void *)&exp->tq) {
315 if ((tp = tqp->current->q.cqe_prev) == (void *)&tqp->tagq) {
321 tqp->current = tp;
323 if (F_ISSET(tqp, TAG_CSCOPE))
324 (void)cscope_search(sp, tqp, tp);
326 (void)ctag_search(sp, tp->search, tp->slen, tqp->tag);
436 TAGQ *tqp, *dtqp;
462 for (tqp = exp->tq.cqh_first;
463 tqp != (void *)&exp->tq && --off > 1;
464 tqp = tqp->q.cqe_next);
465 if (tqp == (void *)&exp->tq) {
471 dtqp = tqp;
476 for (tqp = exp->tq.cqh_first;
477 tqp != (void *)&exp->tq;
478 dtqp = tqp, tqp = tqp->q.cqe_next) {
480 if (tqp == exp->tq.cqh_first)
482 p = tqp->current->frp->name;
490 if (tqp == (void *)&exp->tq) {
495 if (tqp == exp->tq.cqh_first)
543 TAGQ *tqp;
570 tqp = exp->tq.cqh_first;
571 if (tagq_free(sp, tqp))
573 } while (tqp != dtqp);
597 TAGQ *tqp;
603 if ((tqp = exp->tq.cqh_first) == (void *)&exp->tq) {
631 for (cnt = 1, tqp = exp->tq.cqh_first; !INTERRUPTED(sp) &&
632 tqp != (void *)&exp->tq; ++cnt, tqp = tqp->q.cqe_next)
633 for (tp = tqp->tagq.cqh_first;
634 tp != (void *)&tqp->tagq; tp = tp->q.cqe_next) {
635 if (tp == tqp->tagq.cqh_first)
647 if (tqp->current == tp)
650 if (tp == tqp->tagq.cqh_first && tqp->tag != NULL &&
652 len = strlen(tqp->tag);
656 tqp->current == tp ? " " : " ",
657 (int)len, tqp->tag);
675 TAGQ *aqp, *tqp;
685 if (tagq_copy(sp, aqp, &tqp))
693 tqp->current = tp;
694 CIRCLEQ_INSERT_TAIL(&tqp->tagq, tp, q);
696 CIRCLEQ_INSERT_TAIL(&nexp->tq, tqp, q);
747 TAGQ *tqp;
753 MALLOC_RET(sp, tqp, TAGQ *, len);
754 memcpy(tqp, otqp, len);
756 CIRCLEQ_INIT(&tqp->tagq);
757 tqp->current = NULL;
759 tqp->tag = tqp->buf;
761 *tqpp = tqp;
819 tagq_free(sp, tqp)
821 TAGQ *tqp;
827 while ((tp = tqp->tagq.cqh_first) != (void *)&tqp->tagq) {
828 CIRCLEQ_REMOVE(&tqp->tagq, tp, q);
836 if (tqp->q.cqe_next != NULL)
837 CIRCLEQ_REMOVE(&exp->tq, tqp, q);
838 free(tqp);
926 TAGQ *tqp;
930 while ((tqp = exp->tq.cqh_first) != (void *)&exp->tq)
931 tagq_free(sp, tqp);
1065 TAGQ *tqp;
1076 CALLOC_GOTO(sp, tqp, TAGQ *, 1, sizeof(TAGQ) + len + 1);
1077 CIRCLEQ_INIT(&tqp->tagq);
1078 tqp->tag = tqp->buf;
1079 memcpy(tqp->tag, tag, (tqp->tlen = len) + 1);
1105 CIRCLEQ_INSERT_TAIL(&tqp->tagq, tp, q);
1111 if (tqp->tagq.cqh_first == (void *)&tqp->tagq) {
1113 free(tqp);
1117 tqp->current = tqp->tagq.cqh_first;
1118 return (tqp);
1135 TAGQ *tqp;
1143 CALLOC_GOTO(sp, tqp, TAGQ *, 1, sizeof(TAGQ) + len + 1);
1144 CIRCLEQ_INIT(&tqp->tagq);
1145 tqp->tag = tqp->buf;
1146 memcpy(tqp->tag, tag, (tqp->tlen = len) + 1);
1154 if (ctag_sfile(sp, tfp, tqp, tag)) {
1161 if (tqp->tagq.cqh_first == (void *)&tqp->tagq) {
1172 free(tqp);
1176 tqp->current = tqp->tagq.cqh_first;
1177 return (tqp);
1188 ctag_sfile(sp, tfp, tqp, tname)
1191 TAGQ *tqp;
1313 CIRCLEQ_INSERT_TAIL(&tqp->tagq, tp, q);