Home
last modified time | relevance | path

Searched refs:col (Results 1 – 25 of 274) sorted by relevance

1234567891011

/freebsd-10-stable/usr.bin/systat/
Dkeyboard.c65 col = 0; in keyboard()
101 line[col] = '\0'; in keyboard()
131 if (col == 0) { in keyboard_dispatch()
145 if (ch == erasechar() && col > 0) { in keyboard_dispatch()
146 if (col == 1 && line[0] == ':') in keyboard_dispatch()
148 col--; in keyboard_dispatch()
151 if (ch == CTRL('w') && col > 0) { in keyboard_dispatch()
152 while (--col >= 0 && isspace(line[col])) in keyboard_dispatch()
154 col++; in keyboard_dispatch()
155 while (--col >= 0 && !isspace(line[col])) in keyboard_dispatch()
[all …]
/freebsd-10-stable/usr.bin/ul/
Dul.c84 static int col, maxcol; variable
183 if (col == buflen) { in filter()
201 if (col > 0) in filter()
202 col--; in filter()
206 col = (col+8) & ~07; in filter()
207 if (col > maxcol) in filter()
208 maxcol = col; in filter()
212 col = 0; in filter()
262 if (obuf[col].c_char || obuf[col].c_width < 0) { in filter()
263 while (col > 0 && obuf[col].c_width < 0) in filter()
[all …]
/freebsd-10-stable/usr.bin/fold/
Dfold.c159 int col, i, indx, space; in fold() local
162 col = indx = 0; in fold()
166 col = indx = 0; in fold()
169 if ((col = newpos(col, ch)) > width) { in fold()
181 col = 0; in fold()
183 col = newpos(col, buf[i]); in fold()
186 col = indx = 0; in fold()
188 col = newpos(col, ch); in fold()
207 newpos(int col, wint_t ch) in newpos() argument
215 col += len; in newpos()
[all …]
/freebsd-10-stable/contrib/mdocml/
Dout.c146 struct roffcol *col; in tblcalc() local
177 col = &tbl->cols[dp->layout->head->ident]; in tblcalc()
178 tblcalc_data(tbl, col, sp->tbl, dp); in tblcalc()
188 col = &tbl->cols[hp->ident]; in tblcalc()
191 col->width = (*tbl->len)(1, tbl->arg); in tblcalc()
194 col->width = (*tbl->len)(2, tbl->arg); in tblcalc()
203 tblcalc_data(struct rofftbl *tbl, struct roffcol *col, in tblcalc_data() argument
215 if (col->width < sz) in tblcalc_data()
216 col->width = sz; in tblcalc_data()
225 tblcalc_literal(tbl, col, dp); in tblcalc_data()
[all …]
Dtbl_term.c67 struct roffcol *col; in term_tbl() local
156 col = &tp->tbl.cols[hp->ident]; in term_tbl()
157 tbl_data(tp, sp->tbl, dp, col); in term_tbl()
282 const struct roffcol *col) in tbl_data() argument
286 tbl_char(tp, ASCII_NBRSP, col->width); in tbl_data()
293 tbl_char(tp, ASCII_NBRSP, col->width); in tbl_data()
298 tbl_char(tp, '-', col->width); in tbl_data()
303 tbl_char(tp, '=', col->width); in tbl_data()
311 tbl_char(tp, '-', col->width); in tbl_data()
314 tbl_char(tp, '=', col->width); in tbl_data()
[all …]
Dterm.c141 while (i < p->col) { in term_flushln()
146 while (i < p->col && '\t' == p->buf[i]) { in term_flushln()
160 for (j = i, jhy = 0; j < p->col; j++) { in term_flushln()
201 for ( ; i < p->col; i++) { in term_flushln()
253 p->col = 0; in term_flushln()
302 if (p->col || p->viscol) in term_newln()
506 if (p->col + 1 >= p->maxcols) in bufferc()
507 adjbuf(p, p->col + 1); in bufferc()
509 p->buf[p->col++] = c; in bufferc()
522 if (p->col + 4 >= p->maxcols) in encode1()
[all …]
/freebsd-10-stable/contrib/groff/src/devices/grohtml/
Doutput.cpp148 : fp(f), max_line_length(n), col(0), fixed_point(0), newlines(0) in simple_output()
171 if (col != 0) { in end_line()
173 col = 0; in end_line()
186 if (col != 0) in simple_comment()
191 col = 0; in simple_comment()
198 if (col != 0) in begin_comment()
200 col = 0; in begin_comment()
222 if ((col + n + last_word.get_length() + 1 > max_line_length) && (newlines)) { in check_newline()
224 col = last_word.flush(fp); in check_newline()
236 if ((col + last_word.get_length() + 1 > max_line_length) && (newlines)) { in space_or_newline()
[all …]
/freebsd-10-stable/contrib/vis/
Dfoldit.c45 foldit(const char *chunk, int col, int max, int flags) in foldit() argument
59 col = 0; in foldit()
62 col = (col + 8) &~ 07; in foldit()
65 col = col ? col - 1 : 0; in foldit()
68 col++; in foldit()
70 if (col > (max - 2)) { in foldit()
72 col = 0; in foldit()
77 return (col); in foldit()
/freebsd-10-stable/contrib/nvi/ex/
Dex_print.c96 size_t col, len; in ex_print() local
104 col = 0; in ex_print()
117 if (ex_prchars(sp, p, &col, 8, 0, 0)) in ex_print()
131 else if (ex_ldisplay(sp, p, len, col, flags)) in ex_print()
147 ex_ldisplay(SCR *sp, const CHAR_T *p, size_t len, size_t col, u_int flags) in ex_ldisplay() argument
149 if (len > 0 && ex_prchars(sp, p, &col, len, LF_ISSET(E_C_LIST), 0)) in ex_ldisplay()
153 if (ex_prchars(sp, p, &col, 1, LF_ISSET(E_C_LIST), 0)) in ex_ldisplay()
171 size_t col, len; in ex_scprint() local
173 col = 0; in ex_scprint()
176 if (ex_prchars(sp, p, &col, 8, 0, 0)) in ex_scprint()
[all …]
/freebsd-10-stable/contrib/groff/src/preproc/eqn/
Dpile.cpp31 for (i = 0; i < col.len; i++) in compute_metrics()
32 col.p[i]->compute_metrics(style); in compute_metrics()
34 for (i = 0; i < col.len; i++) in compute_metrics()
35 printf(">?\\n[" WIDTH_FORMAT "]", col.p[i]->uid); in compute_metrics()
38 uid, baseline_sep+col.space); in compute_metrics()
39 for (i = 1; i < col.len; i++) in compute_metrics()
41 col.p[i-1]->uid, col.p[i]->uid, default_rule_thickness*5); in compute_metrics()
47 uid, uid, col.len-1, axis_height - shift_down); in compute_metrics()
50 uid, uid, col.p[0]->uid); in compute_metrics()
53 uid, uid, col.len-1, col.p[col.len-1]->uid, uid); in compute_metrics()
[all …]
/freebsd-10-stable/usr.sbin/lpr/filters/
Dlpf.c79 register int i, col; in main() local
123 col = indent; in main()
142 if (--col < indent) in main()
143 col = indent; in main()
147 col = indent; in main()
151 col = ((col - indent) | 07) + indent + 1; in main()
170 if (col >= width || (!literal && ch < ' ')) { in main()
171 col++; in main()
174 cp = &buf[0][col]; in main()
180 if (col > maxcol[i]) in main()
[all …]
/freebsd-10-stable/lib/libiconv_modules/MSKanji/
Dcitrus_mskanji.c288 _index_t col, row; in _citrus_MSKanji_stdenc_wctocs() local
334 col = (_wc_t)wc & 0xFF; in _citrus_MSKanji_stdenc_wctocs()
335 if (!_mskanji1(row) || !_mskanji2(col)) in _citrus_MSKanji_stdenc_wctocs()
353 col -= 0x1F; in _citrus_MSKanji_stdenc_wctocs()
354 if (col >= 0x61) in _citrus_MSKanji_stdenc_wctocs()
355 col -= 1; in _citrus_MSKanji_stdenc_wctocs()
356 if (col > 0x7E) { in _citrus_MSKanji_stdenc_wctocs()
358 col -= 0x5E; in _citrus_MSKanji_stdenc_wctocs()
360 *idx = ((_index_t)row << 8) | col; in _citrus_MSKanji_stdenc_wctocs()
371 uint32_t col, row; in _citrus_MSKanji_stdenc_cstowc() local
[all …]
/freebsd-10-stable/contrib/groff/src/devices/grops/
Dps.cpp93 : fp(f), col(0), max_line_length(n), need_space(0), fixed_point(0) in ps_output()
100 col = 0; in set_file()
114 if (col != 0) { in end_line()
116 col = 0; in end_line()
126 if (col != 0) { in special()
128 col = 0; in special()
139 if (col != 0) in simple_comment()
145 col = 0; in simple_comment()
152 if (col != 0) in begin_comment()
157 col = 2 + strlen(s); in begin_comment()
[all …]
/freebsd-10-stable/usr.bin/cut/
Dcut.c238 int ch, col; in b_cut() local
244 for (col = maxval; col; --col) { in b_cut()
272 size_t col, i, lbuflen; in b_n_cut() local
280 for (col = 0; lbuflen > 0; col += clen) { in b_n_cut()
291 if (col < maxval && !positions[1 + col]) { in b_n_cut()
298 i = col; in b_n_cut()
299 while (i < col + clen && i < maxval && in b_n_cut()
302 canwrite = i < col + clen; in b_n_cut()
303 for (; i < col + clen && i < maxval; i++) in b_n_cut()
313 for (i = col; i < col + clen; i++) in b_n_cut()
[all …]
/freebsd-10-stable/sys/boot/pc98/libpc98/
Dvidconsole.c74 static int row = 25, col = 80; variable
200 crtat -= (crtat - Crtat) % col;
203 crtat += col;
211 if (crtat >= Crtat + col * row) {
214 bcopy((void *)(cp + col), (void *)cp, col * 2);
215 cp += col;
217 for (i = 0; i < col; i++) {
220 crtat -= col;
294 curx = pos % col; in get_pos()
295 cury = pos / col; in get_pos()
[all …]
/freebsd-10-stable/usr.bin/tip/tip/
Dvalue.c54 static size_t col = 0; variable
162 if (col > 0) { in vlex()
164 col = 0; in vlex()
211 if (col > 0 && col < MIDDLE) in vprint()
212 while (col++ < MIDDLE) in vprint()
214 col += size(p->v_name); in vprint()
219 col++; in vprint()
227 col++; in vprint()
230 col += size(cp); in vprint()
236 col += 6; in vprint()
[all …]
/freebsd-10-stable/contrib/atf/atf-c++/detail/
Dprocess_test.cpp120 std::vector< std::string > col; in ATF_TEST_CASE_BODY() local
121 atf::process::argv_array argv(col); in ATF_TEST_CASE_BODY()
127 std::vector< std::string > col; in ATF_TEST_CASE_BODY() local
128 col.push_back("arg0"); in ATF_TEST_CASE_BODY()
129 atf::process::argv_array argv(col); in ATF_TEST_CASE_BODY()
132 ATF_REQUIRE_EQ(argv[0], col[0]); in ATF_TEST_CASE_BODY()
136 std::vector< std::string > col; in ATF_TEST_CASE_BODY() local
137 col.push_back("arg0"); in ATF_TEST_CASE_BODY()
138 col.push_back("arg1"); in ATF_TEST_CASE_BODY()
139 col.push_back("arg2"); in ATF_TEST_CASE_BODY()
[all …]
/freebsd-10-stable/contrib/subversion/subversion/svn/
Dmergeinfo-cmd.c107 int row, col; in mergeinfo_diagram() local
176 for (col = 0; col < COLS; col++) in mergeinfo_diagram()
178 col_width[col] = 0; in mergeinfo_diagram()
181 if (g[row][col] && ((int)strlen(g[row][col]) > col_width[col])) in mergeinfo_diagram()
182 col_width[col] = (int)strlen(g[row][col]); in mergeinfo_diagram()
200 for (col = 0; col < COLS; col++) in mergeinfo_diagram()
202 if (g[row][col]) in mergeinfo_diagram()
204 SVN_ERR(svn_cmdline_fputs(g[row][col], stdout, pool)); in mergeinfo_diagram()
209 SVN_ERR(svn_cmdline_printf(pool, "%*s", col_width[col], "")); in mergeinfo_diagram()
/freebsd-10-stable/lib/libiconv_modules/mapper_zone/
Dcitrus_mapper_zone.c349 uint32_t col, row; in _citrus_mapper_zone_mapper_convert() local
352 col = src; in _citrus_mapper_zone_mapper_convert()
354 if (col < mz->mz_col.z_begin || col > mz->mz_col.z_end) in _citrus_mapper_zone_mapper_convert()
357 col += (uint32_t)mz->mz_col_offset; in _citrus_mapper_zone_mapper_convert()
359 col -= (uint32_t)-mz->mz_col_offset; in _citrus_mapper_zone_mapper_convert()
360 *dst = col; in _citrus_mapper_zone_mapper_convert()
362 col = src & (((uint32_t)1 << mz->mz_col_bits) - 1); in _citrus_mapper_zone_mapper_convert()
365 col < mz->mz_col.z_begin || col > mz->mz_col.z_end) in _citrus_mapper_zone_mapper_convert()
368 col += (uint32_t)mz->mz_col_offset; in _citrus_mapper_zone_mapper_convert()
370 col -= (uint32_t)-mz->mz_col_offset; in _citrus_mapper_zone_mapper_convert()
[all …]
/freebsd-10-stable/contrib/less/
Doutput.c523 int col; local
525 col = 0;
531 col++;
543 col++;
547 col += iprint_int(parg->p_int);
551 col += iprint_linenum(parg->p_linenum);
560 return (col);
592 int col = 0; local
604 col += so_s_width;
607 col += less_printf(fmt, parg);
[all …]
/freebsd-10-stable/share/i18n/esdb/BIG5/
DBig5.variable4 2003 row=0x81-0xFE;col=0x40-0x7E,0xA1-0xFE;
5 E row=0x81-0xFE;col=0x40-0x7E,0xA1-0xFE;excludes=0xA3C0-0xA3FE,0xC8D4-0xC8FE;
6 ETen row=0x81-0xFE;col=0x40-0x7E,0xA1-0xFE;excludes=0xA3C0-0xA3FE,0xC8D4-0xC8FE;
7 HKSCS row=0x81-0xFE;col=0x40-0x7E,0xA1-0xFE;
8 IBM row=0xA1-0xF9;col=0x40-0x7E,0xA1-0xFE;excludes=0xA3E1-0xA3FE;
9 Plus row=0x81-0xFE;col=0x40-0xFE;
/freebsd-10-stable/contrib/groff/src/preproc/tbl/
Dmain.cpp1112 int col = 0; in process_format() local
1115 if (col >= ncolumns) in process_format()
1116 ncolumns = col + 1; in process_format()
1117 col = 0; in process_format()
1121 col++; in process_format()
1139 col = 0; in process_format()
1141 f->entry[row][col] = *tem; in process_format()
1142 if (col < ncolumns-1) { in process_format()
1144 if (tem->separation > f->separation[col]) { in process_format()
1148 f->separation[col] = tem->separation; in process_format()
[all …]
/freebsd-10-stable/contrib/ncurses/ncurses/base/
Dwresize.c91 int col, row, size_x, size_y; in wresize() local
158 for (col = 0; col <= ToCols; ++col) { in wresize()
159 s[col] = (col <= size_x in wresize()
160 ? win->_line[row].text[col] in wresize()
169 for (col = 0; col <= ToCols; ++col) in wresize()
170 s[col] = win->_nc_bkgd; in wresize()
/freebsd-10-stable/contrib/openpam/
Dtest-driver102 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;;
103 0:*) col=$grn res=PASS recheck=no gcopy=no;;
104 77:*) col=$blu res=SKIP recheck=no gcopy=yes;;
105 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;;
106 *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;;
107 *:*) col=$red res=FAIL recheck=yes gcopy=yes;;
111 echo "${col}${res}${std}: $test_name"
/freebsd-10-stable/contrib/ncurses/menu/
Dm_global.c386 int col = 0, row = 0; in _nc_Link_Items() local
403 item->left = (col) ? in _nc_Link_Items()
412 item->right = ((col < (Number_Of_Columns - 1)) && in _nc_Link_Items()
420 Last_in_Column = (menu->rows - 1) * Number_Of_Columns + col; in _nc_Link_Items()
432 Number_Of_Items - 1 : col] : in _nc_Link_Items()
434 item->x = col; in _nc_Link_Items()
436 if (++col == Number_Of_Columns) in _nc_Link_Items()
439 col = 0; in _nc_Link_Items()
449 item = menu->items[i = (col * Number_Of_Rows + row)]; in _nc_Link_Items()
453 item->left = (col) ? in _nc_Link_Items()
[all …]

1234567891011