Lines Matching defs:tsp

300 	SCR *tsp;
305 TAILQ_FOREACH(tsp, gp->dq, q)
306 if (tsp->roff >= sp->roff)
312 for (; tsp != NULL; tsp = TAILQ_NEXT(tsp, q))
313 if (tsp->roff != sp->roff || tsp->coff > sp->coff)
320 if (tsp == NULL) {
322 } else if (tsp->roff < sp->roff ||
323 (tsp->roff == sp->roff && tsp->coff < sp->coff)) {
324 TAILQ_INSERT_AFTER(gp->dq, tsp, sp, q);
326 TAILQ_INSERT_BEFORE(tsp, sp, q);
340 SCR *tsp, **lp, *list[100];
391 for (lp = &list[0]; (tsp = *lp) != NULL; ++lp) {
400 tsp->rows += sp->rows;
401 if (!IS_SMALL(tsp))
402 tsp->t_rows = tsp->t_minrows = tsp->rows - 1;
403 tsp->t_maxrows = tsp->rows - 1;
405 tsp->defscroll = tsp->t_maxrows / 2;
407 *(_HMAP(tsp) + (tsp->t_rows - 1)) = *_TMAP(tsp);
408 _TMAP(tsp) = _HMAP(tsp) + (tsp->t_rows - 1);
412 tsp->roff = sp->roff;
413 vs_sm_fill(tsp, OOBLNO, P_TOP);
416 vs_sm_fill(tsp, OOBLNO, P_BOTTOM);
421 F_SET(tsp, SC_STATUS);
426 for (lp = &list[0]; (tsp = *lp) != NULL; ++lp) {
428 tsp->coff = sp->coff;
429 tsp->cols += sp->cols + 1; /* XXX: DIVIDER */
430 vs_sm_fill(tsp, OOBLNO, P_TOP);
431 F_SET(tsp, SC_STATUS);
439 tsp = list[0];
441 *spp = tsp;
457 SCR **lp, *tsp;
465 tsp = TAILQ_FIRST(gp->dq);
466 tsp != NULL; tsp = TAILQ_NEXT(tsp, q)) {
467 if (sp == tsp)
470 if (tsp->coff + tsp->cols + 1 != sp->coff)
476 if (tsp->roff > sp->roff + sp->rows)
478 if (tsp->roff < sp->roff) {
479 if (tsp->roff + tsp->rows >= sp->roff)
483 if (tsp->roff + tsp->rows > sp->roff + sp->rows)
486 if (tlen < tsp->rows)
489 tlen -= tsp->rows;
490 *lp++ = tsp;
500 tsp = TAILQ_FIRST(gp->dq);
501 tsp != NULL; tsp = TAILQ_NEXT(tsp, q)) {
502 if (sp == tsp)
505 if (tsp->coff != sp->coff + sp->cols + 1)
511 if (tsp->roff > sp->roff + sp->rows)
513 if (tsp->roff < sp->roff) {
514 if (tsp->roff + tsp->rows >= sp->roff)
518 if (tsp->roff + tsp->rows > sp->roff + sp->rows)
521 if (tlen < tsp->rows)
524 tlen -= tsp->rows;
525 *lp++ = tsp;
535 tsp = TAILQ_FIRST(gp->dq);
536 tsp != NULL; tsp = TAILQ_NEXT(tsp, q)) {
537 if (sp == tsp)
540 if (tsp->roff + tsp->rows != sp->roff)
546 if (tsp->coff > sp->coff + sp->cols)
548 if (tsp->coff < sp->coff) {
549 if (tsp->coff + tsp->cols >= sp->coff)
553 if (tsp->coff + tsp->cols > sp->coff + sp->cols)
556 if (tlen < tsp->cols)
559 tlen -= tsp->cols + first;
561 *lp++ = tsp;
571 tsp = TAILQ_FIRST(gp->dq);
572 tsp != NULL; tsp = TAILQ_NEXT(tsp, q)) {
573 if (sp == tsp)
576 if (tsp->roff != sp->roff + sp->rows)
582 if (tsp->coff > sp->coff + sp->cols)
584 if (tsp->coff < sp->coff) {
585 if (tsp->coff + tsp->cols >= sp->coff)
589 if (tsp->coff + tsp->cols > sp->coff + sp->cols)
592 if (tlen < tsp->cols)
595 tlen -= tsp->cols + first;
597 *lp++ = tsp;