/dragonfly/contrib/nvi2/vi/ |
H A D | vs_split.c | 83 new->cols = sp->cols; in vs_split() 207 size_t cols; in vs_vsplit() local 243 cols = sp->cols / 2; in vs_vsplit() 244 new->cols = sp->cols - cols - 1; in vs_vsplit() 245 sp->cols = cols; in vs_vsplit() 425 tsp->cols += sp->cols + 1; /* XXX: DIVIDER */ in vs_discard() 549 if (tsp->coff + tsp->cols > sp->coff + sp->cols) in vs_join() 585 if (tsp->coff + tsp->cols > sp->coff + sp->cols) in vs_join() 733 nsp->cols = sp->cols; in vs_swap() 829 (sp->coff != next->coff || sp->cols != next->cols)) in vs_resize() [all …]
|
H A D | vs_relative.c | 38 vip->sc_smap->coff : (vip->sc_smap->soff - 1) * sp->cols) + in vs_column() 54 size_t cols, screens; in vs_screens() local 73 cols = vs_columns(sp, NULL, lno, cnop, NULL); in vs_screens() 75 screens = (cols / sp->cols + (cols % sp->cols ? 1 : 0)); in vs_screens() 147 if (!leftright && curoff >= sp->cols) \ in vs_columns() 150 scno -= scno % sp->cols; \ in vs_columns() 152 curoff -= sp->cols; \ in vs_columns() 238 off = cno / sp->cols; in vs_colpos() 239 cno %= sp->cols; in vs_colpos() 241 for (; len && scno < sp->cols; --len) in vs_colpos() [all …]
|
H A D | vs_refresh.c | 612 (off != 0 && off + sp->cols < cnt)) { in vs_paint() 615 } while (off + sp->cols < cnt); in vs_paint() 771 size_t cols, curcol, curlen, endpoint, len, midpoint; in vs_modeline() local 801 for (ellipsis = 0, cols = sp->cols / 2; --p > wp;) { in vs_modeline() 806 if ((curlen += KEY_COL(sp, *p)) > cols) { in vs_modeline() 810 while (curlen > cols) { in vs_modeline() 843 cols = sp->cols - 1; in vs_modeline() 849 midpoint = (cols - ((len + 1) / 2)) / 2; in vs_modeline() 853 } else if (curlen + 2 + len < cols) { in vs_modeline() 866 endpoint = cols; in vs_modeline()
|
H A D | vs_line.c | 104 cols_per_screen = sp->cols; in vs_line() 153 *xp = sp->cols - cols_per_screen; in vs_line() 229 cols_per_screen = sp->cols; in vs_line() 251 cols_per_screen = sp->cols; in vs_line() 269 cols_per_screen = sp->cols; in vs_line() 296 cols_per_screen = sp->cols; in vs_line()
|
H A D | vs_msg.c | 198 if (len > sp->cols - 2) in vs_update() 199 mlen = len = sp->cols - 2; in vs_update() 205 if (len + mlen > sp->cols - 2) in vs_update() 206 mlen = (sp->cols - 2) - len; in vs_update() 341 maxcols = sp->cols - 1; in vs_msg() 411 if (len + vip->lcontinue > sp->cols) in vs_output() 412 len = sp->cols - vip->lcontinue; in vs_output() 850 sizeof(DIVIDESTR) - 1 > sp->cols ? sp->cols : sizeof(DIVIDESTR) - 1; in vs_divider()
|
/dragonfly/contrib/mdocml/ |
H A D | out.c | 135 assert(tbl->cols == NULL); in tblcalc() 136 tbl->cols = mandoc_calloc((size_t)sp_first->opts->cols, in tblcalc() 156 col = tbl->cols + icol; in tblcalc() 187 / (sp->opts->cols + 1) : 0); in tblcalc() 221 col = tbl->cols + icol; in tblcalc() 243 width = tbl->cols[icol].width; in tblcalc() 268 width = tbl->cols[icol].width; in tblcalc() 310 tbl->cols[icol].width = wanted; in tblcalc() 331 col = tbl->cols + icol; in tblcalc() 352 col = tbl->cols + icol; in tblcalc() [all …]
|
H A D | tbl_term.c | 182 if (tp->tbl.cols == NULL) { in term_tbl() 201 tp->tbl.cols[ic].spacing; in term_tbl() 202 if (sp->opts->cols) in term_tbl() 203 tsz += tp->tbl.cols[sp->opts->cols - 1].width; in term_tbl() 253 if (ic + 1 < sp->opts->cols) in term_tbl() 557 assert(tp->tbl.cols); in term_tbl() 558 free(tp->tbl.cols); in term_tbl() 559 tp->tbl.cols = NULL; in term_tbl() 613 col = tp->tbl.cols; in tbl_hrule() 618 col = tp->tbl.cols + cp->col; in tbl_hrule() [all …]
|
H A D | tbl_html.c | 85 if (h->tbl.cols == NULL) { in html_tblopen() 259 col = h->tbl.cols + dp->layout->col; in print_tbl() 288 assert(h->tbl.cols); in print_tbl() 289 free(h->tbl.cols); in print_tbl() 290 h->tbl.cols = NULL; in print_tbl()
|
/dragonfly/sys/dev/video/bktr/ |
H A D | bktr_core.c | 3128 *dma_prog++ = cols/2 | cols/2 << 16; in yuv422_prog() 3131 *dma_prog++ = t1 + (cols*rows) + (cols*rows/2) + i*cols/2 * interlace; in yuv422_prog() 3172 *dma_prog++ = cols/2 | cols/2 << 16; in yuv422_prog() 3175 *dma_prog++ = t1 + (cols*rows) + (cols*rows/2) + i*cols/2 * interlace; in yuv422_prog() 3227 *dma_prog++ = cols/2 | (cols/2 << 16); in yuv12_prog() 3230 *dma_prog++ = t1 + (cols*rows) + (cols*rows/4) + i*cols/2 * interlace; in yuv12_prog() 3233 *dma_prog++ = cols/2 | (cols/2 << 16); in yuv12_prog() 3275 *dma_prog++ = cols/2 | (cols/2 << 16); in yuv12_prog() 3278 *dma_prog++ = t1 + (cols*rows) + (cols*rows/4) + i*cols/2 * interlace; in yuv12_prog() 3281 *dma_prog++ = cols/2 | (cols/2 << 16); in yuv12_prog() [all …]
|
/dragonfly/lib/libutil/ |
H A D | hexdump.c | 46 int cols; in hexdump() local 56 cols = flags & HD_COLUMN_MASK; in hexdump() 58 cols = 16; in hexdump() 61 for (i = 0; i < length; i+= cols) { in hexdump() 69 for (j = 0; j < cols; j++) { in hexdump() 80 for (j = 0; j < cols; j++) { in hexdump()
|
/dragonfly/usr.sbin/mpsutil/ |
H A D | mpsutil.c | 155 int cols; in hexdump() local 165 cols = flags & HD_COLUMN_MASK; in hexdump() 167 cols = 16; in hexdump() 170 for (i = 0; i < length; i+= cols) { in hexdump() 178 for (j = 0; j < cols; j++) { in hexdump() 180 k = i + (cols - 1 - j); in hexdump() 192 for (j = 0; j < cols; j++) { in hexdump() 194 k = i + (cols - 1 - j); in hexdump()
|
/dragonfly/usr.bin/column/ |
H A D | column.c | 210 int cols, *len; member 222 wchar_t **cols; in maketbl() local 227 if ((cols = calloc((maxcols = DEFCOLS), sizeof(*cols))) == NULL) in maketbl() 233 (cols[coloff] = wcstok(p, separator, &last)); in maketbl() 236 if (!(cols = realloc(cols, ((u_int)maxcols + in maketbl() 249 for (t->cols = coloff; --coloff >= 0;) { in maketbl() 250 t->list[coloff] = cols[coloff]; in maketbl() 251 t->len[coloff] = width(cols[coloff]); in maketbl() 257 for (coloff = 0; coloff < t->cols - 1; ++coloff) in maketbl()
|
/dragonfly/contrib/xz/src/xz/ |
H A D | message.c | 576 const char *cols[5] = { in message_progress_update() local 584 tuklib_mbstr_fw(cols[0], 6), cols[0], in message_progress_update() 585 tuklib_mbstr_fw(cols[1], 35), cols[1], in message_progress_update() 586 tuklib_mbstr_fw(cols[2], 9), cols[2], in message_progress_update() 587 cols[3], in message_progress_update() 588 cols[4]); in message_progress_update() 666 tuklib_mbstr_fw(cols[0], 6), cols[0], in progress_flush() 667 tuklib_mbstr_fw(cols[1], 35), cols[1], in progress_flush() 668 tuklib_mbstr_fw(cols[2], 9), cols[2], in progress_flush() 669 cols[3], in progress_flush() [all …]
|
H A D | list.c | 684 const char *cols[7] = { in print_info_basic() local 697 tuklib_mbstr_fw(cols[0], 5), cols[0], in print_info_basic() 698 tuklib_mbstr_fw(cols[1], 7), cols[1], in print_info_basic() 699 tuklib_mbstr_fw(cols[2], 11), cols[2], in print_info_basic() 700 tuklib_mbstr_fw(cols[3], 11), cols[3], in print_info_basic() 701 tuklib_mbstr_fw(cols[4], 5), cols[4], in print_info_basic() 702 tuklib_mbstr_fw(cols[5], 7), cols[5], in print_info_basic() 703 cols[6]); in print_info_basic()
|
/dragonfly/games/boggle/boggle/ |
H A D | prtable.c | 66 int a, b, cols, loc, maxlen, nrows, z; in prtable() local 73 cols = d_cols; in prtable() 75 cols = width / maxlen; in prtable() 76 if (cols == 0) in prtable() 77 cols = NCOLS; in prtable() 78 nrows = (num - 1) / cols + 1; in prtable()
|
/dragonfly/contrib/dialog/ |
H A D | inputstr.c | 476 const int *cols = dlg_index_columns(string); in dlg_count_columns() local 477 result = cols[limit]; in dlg_count_columns() 493 const int *cols = dlg_index_columns(string); in dlg_limit_columns() local 496 while (result > 0 && (cols[result] - cols[offset]) > limit) in dlg_limit_columns() 635 const int *cols = dlg_index_columns(string); in compute_edit_offset() local 644 if ((cols[offset] - cols[n]) < x_last in compute_edit_offset() 645 && (offset == limit || (cols[offset + 1] - cols[n]) < x_last)) { in compute_edit_offset() 651 dpy_column = cols[offset] - cols[offset2]; in compute_edit_offset() 696 const int *cols = dlg_index_columns(string); in dlg_show_string() local 709 int check = cols[i + 1] - cols[scrollamt]; in dlg_show_string() [all …]
|
H A D | columns.c | 124 unsigned cols = split_row(*value, offsets, widths); in dlg_align_columns() local 125 if (numcols < cols) in dlg_align_columns() 126 numcols = cols; in dlg_align_columns() 127 for (n = 0; n < cols; ++n) { in dlg_align_columns() 139 unsigned cols = split_row(*value, offsets, widths); in dlg_align_columns() local 146 for (n = 0; n < cols; ++n) { in dlg_align_columns()
|
/dragonfly/contrib/gdb-7/readline/ |
H A D | terminal.c | 320 _rl_set_screen_size (rows, cols) in _rl_set_screen_size() argument 321 int rows, cols; in _rl_set_screen_size() 328 if (cols > 0) 330 _rl_screenwidth = cols; 335 if (rows > 0 || cols > 0) 340 rl_set_screen_size (rows, cols) in rl_set_screen_size() argument 341 int rows, cols; in rl_set_screen_size() 347 rl_get_screen_size (rows, cols) in rl_get_screen_size() argument 348 int *rows, *cols; in rl_get_screen_size() 352 if (cols) [all …]
|
H A D | shell.c | 124 sh_set_lines_and_columns (lines, cols) in sh_set_lines_and_columns() argument 125 int lines, cols; in sh_set_lines_and_columns() 136 sprintf (b, "%d", cols); 146 sprintf (b, "COLUMNS=%d", cols);
|
/dragonfly/contrib/ncurses/ncurses/base/ |
H A D | lib_slk.c | 80 _nc_format_slks(NCURSES_SP_DCLx int cols) in _nc_format_slks() argument 90 gap = (cols - 3 * (3 + 4 * max_length)) / 2; in _nc_format_slks() 102 gap = cols - (int) (SP_PARM->_slk->maxlab * max_length) - 6; in _nc_format_slks() 113 gap = (cols - (SP_PARM->_slk->maxlab * max_length) - 5) in _nc_format_slks() 138 _nc_slk_initialize(WINDOW *stwin, int cols) in _nc_slk_initialize() argument 214 res = _nc_format_slks(NCURSES_SP_ARGx cols); in _nc_slk_initialize()
|
/dragonfly/games/rain/ |
H A D | rain.c | 55 long cols, lines; in main() local 76 cols = COLS - 4; in main() 87 xpos[j] = random() % cols + 2; in main() 95 x = random() % cols + 2; in main()
|
/dragonfly/sys/dev/misc/syscons/ |
H A D | scvtb.c | 79 sc_vtb_init(sc_vtb_t *vtb, int type, int cols, int rows, void *buf, int wait) in sc_vtb_init() argument 83 vtb->vtb_cols = cols; in sc_vtb_init() 85 vtb->vtb_size = cols*rows; in sc_vtb_init() 92 if ((buf == NULL) && (cols*rows != 0)) { in sc_vtb_init() 93 vtb->vtb_buffer = kmalloc(cols*rows*sizeof(uint16_t), in sc_vtb_init() 140 sc_vtb_size(int cols, int rows) in sc_vtb_size() argument 142 return (size_t)(cols*rows*sizeof(uint16_t)); in sc_vtb_size()
|
H A D | schistory.c | 167 int cols; in copy_history() local 176 cols = imin(cols1, cols2); in copy_history() 179 sc_vtb_append(from, pos, to, cols); in copy_history() 180 if (cols < cols2) in copy_history() 183 cols2 - cols)); in copy_history()
|
/dragonfly/contrib/nvi2/cl/ |
H A D | cl_funcs.c | 267 for (spcnt = (sp->coff + sp->cols) - x; spcnt > 0; --spcnt) in cl_clrtoeol() 371 tsp->cl_private = subwin(stdscr, tsp->rows, tsp->cols, in cl_discard() 552 if (psp->coff + psp->cols + 1 == tsp->coff) in cl_refresh() 555 if (tsp->coff + tsp->cols + 1 == psp->coff) in cl_refresh() 588 mvvline(sp->roff, sp->cols + sp->coff, '|', sp->rows); in cl_rdiv() 590 mvvline(sp->roff, sp->cols + sp->coff, ACS_VLINE, sp->rows); in cl_rdiv() 683 origp->cl_private = subwin(stdscr, origp->rows, origp->cols, in cl_split() 685 newp->cl_private = subwin(stdscr, newp->rows, newp->cols, in cl_split()
|
/dragonfly/usr.sbin/mptutil/ |
H A D | mpt_cmd.c | 580 int cols; in hexdump() local 590 cols = flags & HD_COLUMN_MASK; in hexdump() 592 cols = 16; in hexdump() 595 for (i = 0; i < length; i+= cols) { in hexdump() 603 for (j = 0; j < cols; j++) { in hexdump() 614 for (j = 0; j < cols; j++) { in hexdump()
|