Lines Matching defs:cbp
75 CB *cbp;
115 namecb: CBNAME(sp, cbp, name);
122 cbp = &sp->wp->dcb_store;
129 if (cbp == NULL) {
130 CALLOC_RET(sp, cbp, CB *, 1, sizeof(CB));
131 cbp->name = name;
132 TAILQ_INIT(&cbp->textq);
133 LIST_INSERT_HEAD(&sp->wp->cutq, cbp, q);
135 text_lfree(&cbp->textq);
136 cbp->len = 0;
137 cbp->flags = 0;
143 cbp->flags |= CB_LMODE;
145 if (cut_line(sp, lno, 0, ENTIRE_LINE, cbp))
153 ENTIRE_LINE : (tm->cno - fm->cno) + 1, cbp))
158 if (cut_line(sp, lno, 0, ENTIRE_LINE, cbp))
163 cut_line(sp, lno, 0, tm->cno + 1, cbp))
168 sp->wp->dcbp = cbp; /* Repoint the default buffer on each pass. */
172 CBNAME(sp, cbp, name);
177 cbp = &sp->wp->dcb_store;
184 text_lfree(&cbp->textq);
185 cbp->len = 0;
186 cbp->flags = 0;
197 CB *cbp, *del_cbp;
200 LIST_FOREACH(cbp, &sp->wp->cutq, q)
201 switch(cbp->name) {
203 cbp->name = L('2');
206 cbp->name = L('3');
209 cbp->name = L('4');
212 cbp->name = L('5');
215 cbp->name = L('6');
218 cbp->name = L('7');
221 cbp->name = L('8');
224 cbp->name = L('9');
227 del_cbp = cbp;
244 cut_line(SCR *sp, db_recno_t lno, size_t fcno, size_t clen, CB *cbp)
270 TAILQ_INSERT_TAIL(&cbp->textq, tp, q);
271 cbp->len += tp->len;
285 CB *cbp;
288 while ((cbp = LIST_FIRST(&wp->cutq)) != NULL) {
289 if (!TAILQ_EMPTY(&cbp->textq))
290 text_lfree(&cbp->textq);
291 LIST_REMOVE(cbp, q);
292 free(cbp);
296 cbp = &wp->dcb_store;
297 if (!TAILQ_EMPTY(&cbp->textq))
298 text_lfree(&cbp->textq);