| /netbsd/src/external/bsd/mdocml/dist/ |
| D | term.c | 56 p->tcol = p->tcols; in term_setcol() 62 for (p->tcol = p->tcols; p->tcol < p->tcols + p->maxtcol; p->tcol++) in term_free() 63 free(p->tcol->buf); in term_free() 109 vbl = (p->flags & TERMP_NOPAD) || p->tcol->offset < p->viscol ? in term_flushln() 110 0 : p->tcol->offset - p->viscol; in term_flushln() 115 p->tcol->col = 0; in term_flushln() 120 vfield = p->tcol->rmargin > p->viscol + vbl ? in term_flushln() 121 p->tcol->rmargin - p->viscol - vbl : 0; in term_flushln() 168 for (ic = p->tcol->col; ic < p->tcol->lastcol; ic++) { in term_flushln() 169 switch (p->tcol->buf[ic]) { in term_flushln() [all …]
|
| D | man_term.c | 156 p->tcol->rmargin = p->maxrmargin = p->defrmargin; in terminal_man() 247 if (n->parent->tok == MAN_HP && p->tcol->rmargin < p->maxrmargin) { in pre_literal() 248 p->tcol->offset = p->tcol->rmargin; in pre_literal() 249 p->tcol->rmargin = p->maxrmargin; in pre_literal() 359 p->tcol->offset = mt->offset; in pre_in() 379 p->tcol->offset -= p->tcol->offset > v ? v : p->tcol->offset; in pre_in() 381 p->tcol->offset += v; in pre_in() 383 p->tcol->offset = v; in pre_in() 384 if (p->tcol->offset > SHRT_MAX) in pre_in() 385 p->tcol->offset = term_len(p, p->defindent); in pre_in() [all …]
|
| D | mdoc_term.c | 261 p->tcol->rmargin = p->maxrmargin = p->defrmargin; in terminal_mdoc() 332 offset = p->tcol->offset; in print_mdoc_node() 333 rmargin = p->tcol->rmargin; in print_mdoc_node() 436 p->tcol->offset = offset; in print_mdoc_node() 437 p->tcol->rmargin = rmargin; in print_mdoc_node() 457 p->tcol->offset = 0; in print_mdoc_foot() 459 p->tcol->rmargin = p->maxrmargin > sz ? in print_mdoc_foot() 467 p->tcol->offset = p->tcol->rmargin; in print_mdoc_foot() 469 p->tcol->rmargin = p->maxrmargin > sz ? p->maxrmargin - sz : 0; in print_mdoc_foot() 475 p->tcol->offset = p->tcol->rmargin; in print_mdoc_foot() [all …]
|
| D | tbl_term.c | 174 save_offset = tp->tcol->offset; in term_tbl() 190 tblcalc(&tp->tbl, sp, tp->tcol->offset, tp->tcol->rmargin); in term_tbl() 205 offset = tp->tcol->offset; in term_tbl() 214 if (offset + tsz > tp->tcol->rmargin) in term_tbl() 216 offset = offset + tp->tcol->rmargin > tsz ? in term_tbl() 217 (offset + tp->tcol->rmargin - tsz) / 2 : 0; in term_tbl() 218 tp->tcol->offset = offset; in term_tbl() 233 tp->tcol->offset = offset; in term_tbl() 243 coloff = tp->tcol->offset; in term_tbl() 250 tp->tcol->rmargin = coloff; in term_tbl() [all …]
|
| D | roff_term.c | 70 p->tcol->offset = p->tcol->rmargin; in roff_term_pre_br() 71 p->tcol->rmargin = p->maxrmargin; in roff_term_pre_br() 172 ponew = po - polast + (int)p->tcol->offset; in roff_term_pre_po() 173 p->tcol->offset = ponew > 0 ? ponew : 0; in roff_term_pre_po() 232 p->ti = len - p->tcol->offset; in roff_term_pre_ti() 233 p->tcol->offset = len; in roff_term_pre_ti() 236 p->tcol->offset += len; in roff_term_pre_ti() 237 } else if ((size_t)len < p->tcol->offset) { in roff_term_pre_ti() 239 p->tcol->offset -= len; in roff_term_pre_ti() 241 p->ti = -p->tcol->offset; in roff_term_pre_ti() [all …]
|
| D | term_ascii.c | 71 p->tcol = p->tcols = mandoc_calloc(1, sizeof(*p->tcol)); in ascii_init() 167 p->tcol->rmargin = p->defrmargin; in ascii_setwidth() 178 p->lastrmargin = p->tcol->rmargin; in ascii_setwidth() 179 p->tcol->rmargin = p->maxrmargin = p->defrmargin; in ascii_setwidth() 235 p->tcol->offset -= p->ti; in ascii_endline() 393 p->tcol->offset -= p->ti; in locale_endline()
|
| D | term.h | 64 struct termp_col *tcol; /* Current table column. */ member
|
| D | term_ps.c | 535 p->tcol = p->tcols = mandoc_calloc(1, sizeof(*p->tcol)); in pspdf_alloc() 1255 p->tcol->offset -= p->ti; in ps_endline()
|
| /netbsd/src/usr.bin/sort/ |
| D | init.c | 115 if (field->tcol.num && field->tcol.num != field->icol.num) { in insertcol() 117 if (field->tcol.num <= clist[i].num) in insertcol() 119 if (field->tcol.num != clist[i].num) { in insertcol() 121 clist[i].num = field->tcol.num; in insertcol() 135 fldtab[0].tcol.p = clist + ncols - 1; in fldreset() 140 if (!fldtab->tcol.num) in fldreset() 142 for (i = 0; fldtab->tcol.num != clist[i].num; i++) in fldreset() 144 fldtab->tcol.p = clist + i; in fldreset() 157 col = cur_fld->icol.num ? (&cur_fld->tcol) : (&cur_fld->icol); in setcolumn() 160 if (col->num <= 0 && !(col->num == 0 && col == &(cur_fld->tcol))) in setcolumn() [all …]
|
| D | fields.c | 178 struct column icol, tcol; in enterfield() local 182 tcol = cur_fld->tcol; in enterfield() 191 if (!tcol.num) in enterfield() 194 if (tcol.indent) { in enterfield() 195 end = tcol.p->start; in enterfield() 198 end += tcol.indent; in enterfield() 201 end = tcol.p->end; in enterfield()
|
| D | sort.h | 152 struct column tcol; member
|
| /netbsd/src/games/rogue/ |
| D | room.c | 447 monster->tcol = rooms[rr].doors[k].oth_col; in dr_course() 449 (monster->tcol == col)) { in dr_course() 464 monster->tcol = j; in dr_course() 476 … monster->tcol = rooms[rn].doors[k].oth_col; in dr_course() 490 monster->tcol = col; in dr_course()
|
| D | monster.c | 368 (monster->tcol == monster->col)) { in mv_1_monster() 372 col = monster->tcol; in mv_1_monster() 444 monster->tcol = get_rand(0, (DCOLS - 1)); in mv_1_monster() 585 monster->tcol = col; in wake_room() 743 monster->tcol = rooms[rn].doors[d].door_col; in aim_monster()
|
| D | rogue.h | 235 short trow, tcol; /* target row, col */ member
|
| /netbsd/src/sys/dev/raidframe/ |
| D | rf_map.c | 600 RF_RowCol_t tcol, pcol, *diskids, i; in rf_CheckStripeForFailures() local 632 &tcol, &diskOffset, 0); in rf_CheckStripeForFailures() 633 RF_ASSERT(tcol == diskids[i]); in rf_CheckStripeForFailures() 653 RF_RowCol_t tcol, i; in rf_NumFailedDataUnitsInStripe() local 670 &tcol, &diskOffset, 0); in rf_NumFailedDataUnitsInStripe() 671 if (RF_DEAD_DISK(raidPtr->Disks[tcol].status)) in rf_NumFailedDataUnitsInStripe()
|
| /netbsd/src/bin/ksh/ |
| D | vi.c | 1787 int tcur, tcol; in rewindow() local 1792 holdcol1 = holdcol2 = tcol = 0; in rewindow() 1794 if (tcol - holdcol2 > winwidth / 2) { in rewindow() 1798 holdcol2 = tcol; in rewindow() 1800 tcol = newcol((unsigned char) es->cbuf[tcur++], tcol); in rewindow() 1802 while (tcol - holdcol1 > winwidth / 2) in rewindow()
|
| /netbsd/src/external/bsd/nvi/dist/vi/ |
| D | v_txt.c | 273 size_t tcol; /* Temporary column. */ in v_txt() local 1346 if (vs_column(sp, &tcol)) in v_txt() 1348 if (tcol >= margin) { in v_txt()
|