Home
last modified time | relevance | path

Searched refs:cols (Results 1 – 25 of 114) sorted by relevance

12345

/openbsd/lib/libmenu/
H A Dm_format.c67 if (rows < 0 || cols < 0) in MENU_EXPORT()
82 if (cols == 0) in MENU_EXPORT()
83 cols = menu->fcols; in MENU_EXPORT()
89 menu->fcols = (short)cols; in MENU_EXPORT()
91 assert(rows > 0 && cols > 0); in MENU_EXPORT()
94 minimum(menu->nitems, cols) : in MENU_EXPORT()
98 menu->cols = (short)total_cols; in MENU_EXPORT()
110 if (cols > 0) in MENU_EXPORT()
111 _nc_Default_Menu.fcols = (short)cols; in MENU_EXPORT()
131 if (cols) in menu_format()
[all …]
H A Dm_scale.c57 scale_menu(const MENU *menu, int *rows, int *cols) in MENU_EXPORT()
62 (void *)cols)); in MENU_EXPORT()
71 if (cols) in MENU_EXPORT()
72 *cols = menu->width; in MENU_EXPORT()
/openbsd/usr.bin/vi/vi/
H A Dvs_relative.c40 vip->sc_smap->coff : (vip->sc_smap->soff - 1) * sp->cols) + in vs_column()
56 size_t cols, screens; in vs_screens() local
75 cols = vs_columns(sp, NULL, lno, cnop, NULL); in vs_screens()
77 screens = (cols / sp->cols + (cols % sp->cols ? 1 : 0)); in vs_screens()
151 if (!leftright && curoff >= sp->cols) { \ in vs_columns()
154 scno -= scno % sp->cols; \ in vs_columns()
156 curoff -= sp->cols; \ in vs_columns()
243 off = cno / sp->cols; in vs_colpos()
244 cno %= sp->cols; in vs_colpos()
246 for (; len && scno < sp->cols; --len) in vs_colpos()
[all …]
H A Dvs_refresh.c620 (off != 0 && off + sp->cols < cnt)) { in vs_paint()
623 } while (off + sp->cols < cnt); in vs_paint()
781 size_t cols, curcol, curlen, endpoint, len, midpoint; in vs_modeline() local
816 for (ellipsis = 0, cols = sp->cols / 2; --p > sp->frp->name;) { in vs_modeline()
821 if ((curlen += KEY_LEN(sp, *p)) > cols) { in vs_modeline()
825 while (curlen > cols) { in vs_modeline()
858 cols = sp->cols - 1; in vs_modeline()
870 midpoint = (cols - ((len + 1) / 2)) / 2; in vs_modeline()
874 } else if (curlen + 2 + len < cols) { in vs_modeline()
887 endpoint = cols; in vs_modeline()
/openbsd/gnu/llvm/lldb/third_party/Python/module/pexpect-4.6/pexpect/
H A Dscreen.py89 self.cols = c
143 top_bot = u'+' + u'-'*self.cols + u'+\n'
151 self.fill_region (1,1,self.rows,self.cols, ch)
160 cs = constrain (cs, 1, self.cols)
161 ce = constrain (ce, 1, self.cols)
204 c = constrain (c, 1, self.cols)
230 c = constrain (c, 1, self.cols)
231 for ci in range (self.cols, c, -1):
245 c = constrain (c, 1, self.cols)
258 cs = constrain (cs, 1, self.cols)
[all …]
/openbsd/lib/libform/
H A Dfrm_scale.c50 scale_form(const FORM *form, int *rows, int *cols) in FORM_EXPORT()
55 (void *)cols)); in FORM_EXPORT()
65 if (cols) in FORM_EXPORT()
66 *cols = form->cols; in FORM_EXPORT()
H A Dfld_info.c53 int *rows, int *cols, in FORM_EXPORT()
59 (void *)rows, (void *)cols, in FORM_EXPORT()
68 if (cols) in FORM_EXPORT()
69 *cols = field->cols; in FORM_EXPORT()
H A Dfrm_data.c154 pos = form->begincol + field->cols; in data_ahead()
159 if (check_len >= field->cols) in data_ahead()
160 check_len = field->cols; in data_ahead()
164 pos += field->cols; in data_ahead()
180 if (!Only_Padding(form->w, field->cols, field->pad)) in data_ahead()
H A Dfld_def.c277 new_field(int rows, int cols, int frow, int fcol, int nrow, int nbuf) in new_field() argument
285 T((T_CALLED("new_field(%d,%d,%d,%d,%d,%d)"), rows, cols, frow, fcol, nrow, nbuf)); in new_field()
287 cols > 0 && in new_field()
298 New_Field->cols = (short)cols; in new_field()
300 New_Field->dcols = cols; in new_field()
/openbsd/usr.bin/mandoc/
H A Dtbl_term.c180 if (tp->tbl.cols == NULL) { in term_tbl()
199 tp->tbl.cols[ic].spacing; in term_tbl()
200 if (sp->opts->cols) in term_tbl()
201 tsz += tp->tbl.cols[sp->opts->cols - 1].width; in term_tbl()
251 if (ic + 1 < sp->opts->cols) in term_tbl()
552 assert(tp->tbl.cols); in term_tbl()
553 free(tp->tbl.cols); in term_tbl()
554 tp->tbl.cols = NULL; in term_tbl()
608 col = tp->tbl.cols; in tbl_hrule()
613 col = tp->tbl.cols + cp->col; in tbl_hrule()
[all …]
H A Dout.c134 assert(tbl->cols == NULL); in tblcalc()
135 tbl->cols = mandoc_calloc((size_t)sp_first->opts->cols, in tblcalc()
154 col = tbl->cols + icol; in tblcalc()
185 / (sp->opts->cols + 1) : 0); in tblcalc()
217 maxcol = sp_first->opts->cols - 1; in tblcalc()
219 col = tbl->cols + icol; in tblcalc()
241 width = tbl->cols[icol].width; in tblcalc()
320 tbl->cols[icol].width = wanted; in tblcalc()
342 col = tbl->cols + icol; in tblcalc()
363 col = tbl->cols + icol; in tblcalc()
[all …]
H A Dtbl_html.c84 if (h->tbl.cols == NULL) { in html_tblopen()
260 col = h->tbl.cols + dp->layout->col; in print_tbl()
290 assert(h->tbl.cols); in print_tbl()
291 free(h->tbl.cols); in print_tbl()
292 h->tbl.cols = NULL; in print_tbl()
/openbsd/sys/dev/pci/bktr/
H A Dbktr_core.c2751 width = cols; in rgb_prog()
2890 b = cols; in yuvpack_prog()
3010 *dma_prog++ = htole32(cols/2 | cols/2 << 16); in yuv422_prog()
3055 *dma_prog++ = htole32(cols/2 | cols/2 << 16); in yuv422_prog()
3060 (cols*rows/2) + i*cols/2 * interlace); in yuv422_prog()
3113 *dma_prog++ = htole32(cols/2 | (cols/2 << 16)); in yuv12_prog()
3120 *dma_prog++ = htole32(cols/2 | (cols/2 << 16)); in yuv12_prog()
3162 *dma_prog++ = htole32(cols/2 | (cols/2 << 16)); in yuv12_prog()
3167 (cols*rows/4) + i*cols/2 * interlace); in yuv12_prog()
3170 *dma_prog++ = htole32(cols/2 | (cols/2 << 16)); in yuv12_prog()
[all …]
/openbsd/games/boggle/boggle/
H A Dprtable.c68 int a, b, cols, loc, maxlen, nrows, z; in prtable() local
75 cols = d_cols; in prtable()
77 cols = width / maxlen; in prtable()
78 if (cols == 0) in prtable()
79 cols = NCOLS; in prtable()
80 nrows = (num - 1) / cols + 1; in prtable()
/openbsd/gnu/lib/libreadline/
H A Dterminal.c250 _rl_set_screen_size (rows, cols) in _rl_set_screen_size() argument
251 int rows, cols; in _rl_set_screen_size()
253 if (rows == 0 || cols == 0)
257 _rl_screenwidth = cols;
266 rl_set_screen_size (rows, cols) in rl_set_screen_size() argument
267 int rows, cols; in rl_set_screen_size()
269 _rl_set_screen_size (rows, cols);
273 rl_get_screen_size (rows, cols) in rl_get_screen_size() argument
274 int *rows, *cols; in rl_get_screen_size()
278 if (cols)
[all …]
H A Dshell.c120 sh_set_lines_and_columns (lines, cols) in sh_set_lines_and_columns() argument
121 int lines, cols; in sh_set_lines_and_columns()
129 if (asprintf (&b, "COLUMNS=%d", cols) == -1)
137 if (asprintf (&b, "%d", cols) == -1)
/openbsd/usr.bin/ssh/
H A Dprogressmeter.c132 int file_len, cols; in refresh_progress_meter() local
177 file_len = cols = win_size - 36; in refresh_progress_meter()
179 asmprintf(&buf, INT_MAX, &cols, "%-*s", file_len, file); in refresh_progress_meter()
181 if (cols < file_len) in refresh_progress_meter()
182 xextendf(&buf, NULL, "%*s", file_len - cols, ""); in refresh_progress_meter()
228 cols = win_size - 1; in refresh_progress_meter()
229 asmprintf(&obuf, INT_MAX, &cols, " %s", buf); in refresh_progress_meter()
/openbsd/gnu/usr.bin/perl/Porting/
H A Dcheck-cpan-pollution188 my @cols = split /\0/, $line;
189 @cols == @ColumnSpec && !grep {!defined($_)} @cols
193 map {$ColumnSpec[$_] => $cols[$_]} (0..$#cols)
/openbsd/usr.bin/column/
H A Dcolumn.c233 static struct field *cols = NULL; in input() local
293 cols = ereallocarray(cols, maxcols, in input()
294 sizeof(*cols)); in input()
307 cols[col].width = width; in input()
314 if ((cols[col].content = strdup(s)) == NULL) in input()
332 table[entries][col] = cols[col]; in input()
/openbsd/sys/arch/armv7/exynos/
H A Dcrosec_kbd.c131 sc->keyboard.cols = info.cols; in cros_ec_init_keyboard()
133 sc->keyboard.state = (uint8_t *)malloc(info.rows*info.cols, in cros_ec_init_keyboard()
178 uint8_t state[sc->keyboard.cols]; in cros_ec_get_keystate()
179 cros_ec_scan_keyboard(sc, state, sc->keyboard.cols); in cros_ec_get_keystate()
180 for (col = 0; col < sc->keyboard.cols; col++) { in cros_ec_get_keystate()
182 int off = row*sc->keyboard.cols; in cros_ec_get_keystate()
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/scripts/
H A Dgen_dynamic_list.py77 cols = line.split(' ')
78 if len(cols) == 3 and cols[1] in func_symbols :
79 functions.append(cols[2])
/openbsd/lib/libcurses/base/
H A Dlib_slk.c82 _nc_format_slks(NCURSES_SP_DCLx int cols) in _nc_format_slks() argument
92 gap = (cols - 3 * (3 + 4 * max_length)) / 2; in _nc_format_slks()
104 gap = cols - (int) (SP_PARM->_slk->maxlab * max_length) - 6; in _nc_format_slks()
115 gap = (cols - (SP_PARM->_slk->maxlab * max_length) - 5) in _nc_format_slks()
140 _nc_slk_initialize(WINDOW *stwin, int cols) in _nc_slk_initialize() argument
218 res = _nc_format_slks(NCURSES_SP_ARGx cols); in _nc_slk_initialize()
/openbsd/sys/dev/rasops/
H A Drasops.c1600 int cols = ri->ri_cols; in rasops_vcons_copyrows() local
1624 srcofs = (src - dst) * cols; in rasops_vcons_copyrows()
1700 int cols = ri->ri_cols; in rasops_wronly_copycols() local
1703 memmove(&ri->ri_bs[row * cols + dst], &ri->ri_bs[row * cols + src], in rasops_wronly_copycols()
1707 int off = row * cols + col; in rasops_wronly_copycols()
1722 int cols = ri->ri_cols; in rasops_wronly_erasecols() local
1739 int cols = ri->ri_cols; in rasops_wronly_copyrows() local
1742 memmove(&ri->ri_bs[dst * cols], &ri->ri_bs[src * cols], in rasops_wronly_copyrows()
1747 int off = row * cols + col; in rasops_wronly_copyrows()
1763 int cols = ri->ri_cols; in rasops_wronly_eraserows() local
[all …]
/openbsd/bin/ksh/
H A Dmisc.c1014 int rows, cols; in print_columns() local
1022 cols = x_cols / (max_width + 1); in print_columns()
1023 if (!cols) in print_columns()
1024 cols = 1; in print_columns()
1025 rows = (n + cols - 1) / cols; in print_columns()
1029 rows = cols; in print_columns()
1030 cols = tmp; in print_columns()
1036 if (cols == 1) in print_columns()
1038 nspace = (x_cols - max_width * cols) / cols; in print_columns()
1042 for (c = 0; c < cols; c++) { in print_columns()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Pod-Perldoc/lib/Pod/Perldoc/
H A DToMan.pm220 if( $self->_is_roff and -t STDOUT and my ($cols) = $self->_get_columns ) {
221 my $c = $cols * 39 / 40;
222 $cols = $c > $cols - 2 ? $c : $cols -2;
223 push @render_switches, '-rLL=' . (int $c) . 'n' if $cols > 80;

12345