• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/nvi/vi/

Lines Matching defs:tsp

296 	SCR *tsp;
301 TAILQ_FOREACH(tsp, gp->dq, q)
302 if (tsp->roff >= sp->roff)
308 for (; tsp != NULL; tsp = TAILQ_NEXT(tsp, q))
309 if (tsp->roff != sp->roff || tsp->coff > sp->coff)
316 if (tsp == NULL) {
318 } else if (tsp->roff < sp->roff ||
319 (tsp->roff == sp->roff && tsp->coff < sp->coff)) {
320 TAILQ_INSERT_AFTER(gp->dq, tsp, sp, q);
322 TAILQ_INSERT_BEFORE(tsp, sp, q);
336 SCR *tsp, **lp, *list[100];
387 for (lp = &list[0]; (tsp = *lp) != NULL; ++lp) {
396 tsp->rows += sp->rows;
397 if (!IS_SMALL(tsp))
398 tsp->t_rows = tsp->t_minrows = tsp->rows - 1;
399 tsp->t_maxrows = tsp->rows - 1;
401 tsp->defscroll = tsp->t_maxrows / 2;
403 *(_HMAP(tsp) + (tsp->t_rows - 1)) = *_TMAP(tsp);
404 _TMAP(tsp) = _HMAP(tsp) + (tsp->t_rows - 1);
408 tsp->roff = sp->roff;
409 vs_sm_fill(tsp, OOBLNO, P_TOP);
412 vs_sm_fill(tsp, OOBLNO, P_BOTTOM);
417 F_SET(tsp, SC_STATUS);
422 for (lp = &list[0]; (tsp = *lp) != NULL; ++lp) {
424 tsp->coff = sp->coff;
425 tsp->cols += sp->cols + 1; /* XXX: DIVIDER */
426 vs_sm_fill(tsp, OOBLNO, P_TOP);
427 F_SET(tsp, SC_STATUS);
435 tsp = list[0];
437 *spp = tsp;
453 SCR **lp, *tsp;
461 tsp = TAILQ_FIRST(gp->dq);
462 tsp != NULL; tsp = TAILQ_NEXT(tsp, q)) {
463 if (sp == tsp)
466 if (tsp->coff + tsp->cols + 1 != sp->coff)
472 if (tsp->roff > sp->roff + sp->rows)
474 if (tsp->roff < sp->roff) {
475 if (tsp->roff + tsp->rows >= sp->roff)
479 if (tsp->roff + tsp->rows > sp->roff + sp->rows)
482 if (tlen < tsp->rows)
485 tlen -= tsp->rows;
486 *lp++ = tsp;
496 tsp = TAILQ_FIRST(gp->dq);
497 tsp != NULL; tsp = TAILQ_NEXT(tsp, q)) {
498 if (sp == tsp)
501 if (tsp->coff != sp->coff + sp->cols + 1)
507 if (tsp->roff > sp->roff + sp->rows)
509 if (tsp->roff < sp->roff) {
510 if (tsp->roff + tsp->rows >= sp->roff)
514 if (tsp->roff + tsp->rows > sp->roff + sp->rows)
517 if (tlen < tsp->rows)
520 tlen -= tsp->rows;
521 *lp++ = tsp;
531 tsp = TAILQ_FIRST(gp->dq);
532 tsp != NULL; tsp = TAILQ_NEXT(tsp, q)) {
533 if (sp == tsp)
536 if (tsp->roff + tsp->rows != sp->roff)
542 if (tsp->coff > sp->coff + sp->cols)
544 if (tsp->coff < sp->coff) {
545 if (tsp->coff + tsp->cols >= sp->coff)
549 if (tsp->coff + tsp->cols > sp->coff + sp->cols)
552 if (tlen < tsp->cols)
555 tlen -= tsp->cols + first;
557 *lp++ = tsp;
567 tsp = TAILQ_FIRST(gp->dq);
568 tsp != NULL; tsp = TAILQ_NEXT(tsp, q)) {
569 if (sp == tsp)
572 if (tsp->roff != sp->roff + sp->rows)
578 if (tsp->coff > sp->coff + sp->cols)
580 if (tsp->coff < sp->coff) {
581 if (tsp->coff + tsp->cols >= sp->coff)
585 if (tsp->coff + tsp->cols > sp->coff + sp->cols)
588 if (tlen < tsp->cols)
591 tlen -= tsp->cols + first;
593 *lp++ = tsp;