Home
last modified time | relevance | path

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

12345678910>>...28

/netbsd/games/testpat/
H A Dtestpat.c152 for (col = 1; col < x_limit; col = col + grid_x) { in main()
166 for (col = grid_x - 1; col < x_limit; col += grid_x) { in main()
185 for (col = 1; col < x_limit; col += grid_x) { in main()
204 for (col = circle_pos[i][0]; col <= circle_pos[i][1]; col++) { in main()
237 for (col = 0; col <= roundf((3.5 * grid_unit * 2)); col++) { in main()
264 for (col = xpos; col < xpos + gap; col++) { in main()
306 for (col = spacing_start; col < spacing_end; col++) { in main()
359 for (col = roundf((0 * grid_unit * 2)); col < in main()
367 for (col = roundf((4 * grid_unit * 2)); col < in main()
388 for (col = roundf((9 * grid_unit * 2)); col < in main()
[all …]
/netbsd/external/gpl3/gdb/dist/sim/testsuite/common/
H A Dbits-tst.c10 int col) in calc() argument
13 return MASKED (val, row, col); in calc()
172 int col; in check_sext() local
173 for (col = 0; col < nr_bits; col ++) in check_sext()
175 long long mask = calc (masked, -1, col, col); in check_sext()
177 0, (msb_nr ? nr_bits - col - 1 : col)); in check_sext()
214 msmasked, 0, (msb_nr ? nr_bits - col - 1 : col)); in check_sext()
230 int col; in check_rot() local
232 for (col = 0; col < nr_bits; col++) in check_rot()
267 int col; in check_extract() local
[all …]
/netbsd/external/gpl3/gdb.old/dist/sim/testsuite/common/
H A Dbits-tst.c10 int col) in calc() argument
13 return MASKED (val, row, col); in calc()
172 int col; in check_sext() local
173 for (col = 0; col < nr_bits; col ++) in check_sext()
175 long long mask = calc (masked, -1, col, col); in check_sext()
177 0, (msb_nr ? nr_bits - col - 1 : col)); in check_sext()
214 msmasked, 0, (msb_nr ? nr_bits - col - 1 : col)); in check_sext()
230 int col; in check_rot() local
232 for (col = 0; col < nr_bits; col++) in check_rot()
267 int col; in check_extract() local
[all …]
/netbsd/games/rogue/
H A Dthrow.c95 row = rogue.row; col = rogue.col; in throw()
110 if (rogue_can_see(row, col) && ((row != rogue.row) || (col != rogue.col))){ in throw()
111 mvaddch(row, col, get_dungeon_char(row, col)); in throw()
173 if ( (((*col <= 0) || (*col >= DCOLS-1)) || in get_thrown_at_monster()
178 *col = ocol; in get_thrown_at_monster()
218 (col > (DCOLS-1)) || (col < 0) || (!dungeon[row][col]) || in flop_weapon()
234 ((row != rogue.row) || (col != rogue.col))) { in flop_weapon()
274 col = *c; in rand_around()
309 *c = col; in rand_around()
313 *c = col; in rand_around()
[all …]
H A Dmonster.c373 col = monster->col - 1; in mv_1_monster()
375 col = monster->col + 1; in mv_1_monster()
501 monster->col = col; in move_mon_to()
515 dc = monster->col - col; in mon_can_go()
533 if ((monster->col < rogue.col) && (col < monster->col)) return(0); in mon_can_go()
534 if ((monster->col > rogue.col) && (col > monster->col)) return(0); in mon_can_go()
610 cdif = col - rogue.col; in rogue_is_around()
680 col = rogue.col; in create_monster()
711 monster->col = col; in put_m_at()
766 col = monster->col; in move_confused()
[all …]
H A Dtrap.c78 trap_at(int row, int col) in trap_at() argument
146 short row, col; in add_traps() local
203 col = rogue.col; in id_trap()
207 if ((dungeon[row][col] & TRAP) && (!(dungeon[row][col] & HIDDEN))) { in id_trap()
208 t = trap_at(row, col); in id_trap()
239 col = rogue.col + j; in search()
241 (col < 0) || (col >= DCOLS)) { in search()
253 col = rogue.col + j ; in search()
255 (col < 0) || (col >= DCOLS)) { in search()
262 (col != rogue.col))) { in search()
[all …]
H A Dmove.c72 short row, col; in one_move_rogue() local
78 col = rogue.col; in one_move_rogue()
86 if (!can_move(rogue.row, rogue.col, row, col)) { in one_move_rogue()
130 mvaddch(rogue.row, rogue.col, get_dungeon_char(rogue.row, rogue.col)); in one_move_rogue()
137 rogue.col = col; in one_move_rogue()
183 short row, col; in multiple_move_rogue() local
197 col = rogue.col; in multiple_move_rogue()
232 (col > (DCOLS-1))) { in is_passable()
266 col = rogue.col + j; in next_to_something()
275 (!((row == rogue.row) || (col == rogue.col)))) { in next_to_something()
[all …]
H A Dzap.c71 short dir, d, row, col; in zapp() local
102 row = rogue.row; col = rogue.col; in zapp()
144 short row, col; in zap_monster() local
149 col = monster->col; in zap_monster()
181 monster->col = col; in zap_monster()
210 short row, col; in tele_away() local
218 monster->row = row; monster->col = col; in tele_away()
302 ocol = col; in bounce()
318 ocol = col; in bounce()
327 ((row == rogue.row) && (col == rogue.col)))); in bounce()
[all …]
H A Dspec_hit.c234 col = monster->col; in disappear()
238 mvaddch(row, col, get_dungeon_char(row, col)); in disappear()
266 col = monster->col; in cough_up()
293 (row > (DROWS-2)) || (col < 0) || (col>(DCOLS-1))) { in try_to_cough()
299 if (((row != rogue.row) || (col != rogue.col)) && in try_to_cough()
301 mvaddch(row, col, get_dungeon_char(row, col)); in try_to_cough()
490 col = rogue.col - monster->col; in flame_broil()
494 if (col < 0) { in flame_broil()
495 col = -col; in flame_broil()
497 if (((row != 0) && (col != 0) && (row != col)) || in flame_broil()
[all …]
H A Droom.c146 if (can_move(row, col, row+i, col+j)) { in light_passage()
147 mvaddch(row+i, col+j, get_dungeon_char(row+i, col+j)); in light_passage()
211 if (((col > 0) && (dungeon[row][col-1] & HORWALL)) || in get_dungeon_char()
212 ((col < (DCOLS-1)) && (dungeon[row][col+1] & HORWALL))) { in get_dungeon_char()
269 *col = c; in gr_row_col()
289 short n, N, row, col; in party_objects() local
292 row = col = 0; in party_objects()
305 if ((dungeon[row][col] == FLOOR) || (dungeon[row][col] == TUNNEL)) { in party_objects()
325 (col >= rooms[i].left_col) && (col <= rooms[i].right_col)) { in get_room_number()
428 monster->col = col; in dr_course()
[all …]
H A Dhit.c305 short row, col; in mon_damage() local
311 col = monster->col; in mon_damage()
313 mvaddch(row, col, get_dungeon_char(row, col)); in mon_damage()
353 row = rogue.row; col = rogue.col; in fight()
358 (!can_move(rogue.row, rogue.col, row, col))) { in fight()
390 (*col)--; in get_dir_rc()
405 (*col)++; in get_dir_rc()
411 (*col)--; in get_dir_rc()
417 (*col)++; in get_dir_rc()
423 (*col)++; in get_dir_rc()
[all …]
/netbsd/usr.bin/systat/
H A Dkeyboard.c57 int ch, rch, col; in keyboard() local
71 col = 0; in keyboard()
92 if (col == 0) { in keyboard()
121 col++; in keyboard()
127 if (col > 0) in keyboard()
128 col--; in keyboard()
135 col++; in keyboard()
138 if (col == 0) in keyboard()
140 col++; in keyboard()
144 col = 1; in keyboard()
[all …]
/netbsd/games/snake/snake/
H A Dsnake.c314 repeat = you.col - money.col; in mainloop()
332 repeat = money.col - you.col; in mainloop()
419 } while ((money.col == finish.col && in mainloop()
422 (money.col == you.col && in mainloop()
766 && (you.col != ps->col)) { in stretch()
768 if (you.col < ps->col) { in stretch()
769 for (p.col = you.col + 1; p.col <= ps->col; p.col++) in stretch()
773 for (; p.col > you.col; p.col--) in stretch()
776 for (p.col = you.col - 1; p.col >= ps->col; p.col--) in stretch()
780 for (; p.col < you.col; p.col++) in stretch()
[all …]
/netbsd/external/bsd/mdocml/dist/
H A Dout.c341 if (col->width > col->nwidth) in tblcalc()
342 col->decimal += (col->width - col->nwidth) / 2; in tblcalc()
344 col->width = col->nwidth; in tblcalc()
411 col->width--; in tblcalc()
429 if (col != NULL && col->width < sz) in tblcalc_data()
430 col->width = sz; in tblcalc_data()
478 if (col != NULL && col->width < msz) in tblcalc_literal()
479 col->width = msz; in tblcalc_literal()
495 if (col == NULL) in tblcalc_number()
520 if (col != NULL && col->width < totsz) in tblcalc_number()
[all …]
/netbsd/usr.bin/fold/
H A Dfold.c138 col = indx = 0; in fold()
150 col = new_column_position (col, ch); in fold()
172 col = 0; in fold()
174 col = new_column_position (col, buf[i]); in fold()
184 col = new_column_position (col, ch); in fold()
216 if (col > 0) in new_column_position()
217 --col; in new_column_position()
220 col = 0; in new_column_position()
223 col = (col + 8) & ~7; in new_column_position()
228 col += w; in new_column_position()
[all …]
/netbsd/external/gpl2/groff/dist/src/devices/grohtml/
H A Doutput.cpp175 col = 0; in end_line()
193 col = 0; in simple_comment()
202 col = 0; in begin_comment()
243 col = 0; in space_or_newline()
249 col++; in space_or_newline()
266 col = 0; in force_nl()
280 col = 0; in nl()
295 col++; in put_raw_char()
357 col = 0; in flush_last_word()
360 col++; in flush_last_word()
[all …]
/netbsd/usr.bin/ul/
H A Dul.c156 if (col > 0) in filter()
157 col--; in filter()
161 col = (col+8) & ~07; in filter()
163 maxcol = col; in filter()
169 col = 0; in filter()
227 col++; in filter()
229 maxcol = col; in filter()
256 col++; in filter()
378 col = 0; in initbuf()
394 oldcol = col; in fwd()
[all …]
/netbsd/external/gpl3/gdb/dist/sim/m68hc11/
H A Dgencode.c1201 col += indent_level; in print()
1203 col -= indent_level; in print()
1206 col += indent_level; in print()
1212 while (cur_col < col) in print()
1219 col -= indent_level; in print()
1221 col += indent_level; in print()
1860 col += indent_level; in gen_interp()
1902 col += indent_level; in gen_interpreter_for_table()
1903 print (fp, col, "{\n"); in gen_interpreter_for_table()
1925 print (fp, col, "}\n"); in gen_interpreter_for_table()
[all …]
/netbsd/external/gpl3/gdb.old/dist/sim/m68hc11/
H A Dgencode.c1201 col += indent_level; in print()
1203 col -= indent_level; in print()
1206 col += indent_level; in print()
1212 while (cur_col < col) in print()
1219 col -= indent_level; in print()
1221 col += indent_level; in print()
1860 col += indent_level; in gen_interp()
1902 col += indent_level; in gen_interpreter_for_table()
1903 print (fp, col, "{\n"); in gen_interpreter_for_table()
1925 print (fp, col, "}\n"); in gen_interpreter_for_table()
[all …]
/netbsd/external/mpl/dhcp/dist/common/
H A Dtree.c3306 int col;
3329 col = token_print_indent_concat (file, col, indent,
3489 col = token_print_indent (file, col, indent,
3625 col = token_print_indent (file, col, scol, "", " ",
3629 col = token_print_indent (file, col, scol, "", " ",
3633 col = token_print_indent (file, col, scol, "", " ",
3671 col = token_print_indent (file, col, scol, "", " ",
3715 col = token_print_indent(file, col, indent, "", "",
3728 col = token_print_indent(file, col, indent,
3731 col = write_expression(file, e->data.arg.val, col,
[all …]
/netbsd/sys/dev/raidframe/
H A Drf_reconstruct.c179 reconDesc->col = col; in AllocRaidReconDesc()
304 c_label->column = col; in rf_ReconstructFailedDiskBasic()
492 raidPtr->Disks[col].numBlocks = raidPtr->Disks[col].numBlocks * in rf_ReconstructInPlace()
532 c_label->column = col; in rf_ReconstructInPlace()
567 RF_RowCol_t col = reconDesc->col; in rf_ContinueReconstructFailedDisk() local
701 if (i != col) { in rf_ContinueReconstructFailedDisk()
806 if (i != col) { in rf_ContinueReconstructFailedDisk()
1463 psid, col); in ComputePSDiskOffsets()
1674 cb->col = col; in CheckHeadSeparation()
1714 RF_RowCol_t col, in CheckForcedOrBlockedReconstruction() argument
[all …]
H A Drf_paritymap.c321 RF_RowCol_t col; in rf_paritymap_set_params() local
362 for (col = 0; col < raidPtr->numCol; col++) { in rf_paritymap_set_params()
379 for (col = 0; col < raidPtr->numSpare; col++) { in rf_paritymap_set_params()
614 RF_RowCol_t col; in rf_paritymap_attach() local
639 for (col = 0; col < raidPtr->numCol; col++) { in rf_paritymap_attach()
708 for (col = 0; col < raidPtr->numCol; col++) { in rf_paritymap_attach()
761 RF_RowCol_t col; in rf_paritymap_get_disable() local
765 for (col = 0; col < raidPtr->numCol; col++) { in rf_paritymap_get_disable()
772 for (col = 0; col < raidPtr->numSpare; col++) { in rf_paritymap_get_disable()
790 for (col = 0; col < raidPtr->numCol; col++) { in rf_paritymap_set_disable()
[all …]
/netbsd/usr.bin/vis/
H A 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()
/netbsd/tests/usr.bin/col/
H A Dt_col.sh16 col < $(atf_get_srcdir)/nl.in
22 col -f < $(atf_get_srcdir)/nl.in
28 col < $(atf_get_srcdir)/nl2.in
34 col -f < $(atf_get_srcdir)/nl2.in
40 col < $(atf_get_srcdir)/nl3.in
55 col < $(atf_get_srcdir)/rlf.in
61 col < $(atf_get_srcdir)/rlf2.in
73 col < $(atf_get_srcdir)/rlf3.in
88 col < $(atf_get_srcdir)/hlf.in
96 col -f < $(atf_get_srcdir)/hlf.in
[all …]
/netbsd/external/bsd/nvi/dist/ex/
H A Dex_print.c105 size_t col, len; in ex_print() local
113 col = 0; in ex_print()
182 size_t col, len; in ex_scprint() local
184 col = 0; in ex_scprint()
220 size_t col, tlen, ts; in ex_prchars() local
225 for (col = *colp; len--;) in ex_prchars()
228 col < sp->cols && tlen--; ++col) { in ex_prchars()
246 col += tlen; in ex_prchars()
249 if (col == sp->cols) { in ex_prchars()
250 col = 0; in ex_prchars()
[all …]

12345678910>>...28