Lines Matching defs:cbp
74 CB *cbp;
114 namecb: CBNAME(sp, cbp, name);
121 cbp = &sp->gp->dcb_store;
128 if (cbp == NULL) {
129 CALLOC_RET(sp, cbp, CB *, 1, sizeof(CB));
130 cbp->name = name;
131 TAILQ_INIT(cbp->textq);
132 SLIST_INSERT_HEAD(sp->gp->cutq, cbp, q);
134 text_lfree(cbp->textq);
135 cbp->len = 0;
136 cbp->flags = 0;
142 cbp->flags |= CB_LMODE;
144 if (cut_line(sp, lno, 0, ENTIRE_LINE, cbp))
152 ENTIRE_LINE : (tm->cno - fm->cno) + 1, cbp))
157 if (cut_line(sp, lno, 0, ENTIRE_LINE, cbp))
162 cut_line(sp, lno, 0, tm->cno + 1, cbp))
167 sp->gp->dcbp = cbp; /* Repoint the default buffer on each pass. */
171 CBNAME(sp, cbp, name);
176 cbp = &sp->gp->dcb_store;
183 text_lfree(cbp->textq);
184 cbp->len = 0;
185 cbp->flags = 0;
196 CB *cbp, *del_cbp = NULL, *pre_cbp = NULL;
198 SLIST_FOREACH(cbp, sp->gp->cutq, q) {
199 switch(cbp->name) {
203 cbp->name += 1;
206 if (cbp == SLIST_FIRST(sp->gp->cutq))
210 del_cbp = cbp;
213 pre_cbp = cbp;
233 CB *cbp)
259 TAILQ_INSERT_TAIL(cbp->textq, tp, q);
260 cbp->len += tp->len;
274 CB *cbp;
277 while ((cbp = SLIST_FIRST(gp->cutq)) != NULL) {
278 if (!TAILQ_EMPTY(cbp->textq))
279 text_lfree(cbp->textq);
281 free(cbp);
285 cbp = &gp->dcb_store;
286 if (!TAILQ_EMPTY(cbp->textq))
287 text_lfree(cbp->textq);