/original-bsd/games/rogue/ |
H A D | throw.c | 65 row = rogue.row; col = rogue.col; in throw() 80 if (rogue_can_see(row, col) && ((row != rogue.row) || (col != rogue.col))){ in throw() 81 mvaddch(row, col, get_dungeon_char(row, col)); in throw() 146 if ( (((*col <= 0) || (*col >= DCOLS-1)) || 151 *col = ocol; 190 (col > (DCOLS-1)) || (col < 0) || (!dungeon[row][col]) || 206 ((row != rogue.row) || (col != rogue.col))) { 246 col = *c; 281 *c = col; 285 *c = col; [all …]
|
H A D | monster.c | 330 col = monster->col - 1; 332 col = monster->col + 1; 460 monster->col = col; 475 dc = monster->col - col; 493 if ((monster->col < rogue.col) && (col < monster->col)) return(0); 494 if ((monster->col > rogue.col) && (col > monster->col)) return(0); 573 cdif = col - rogue.col; 638 col = rogue.col; in create_monster() 670 monster->col = col; 723 col = monster->col; [all …]
|
H A D | trap.c | 55 trap_at(row, col) in trap_at() argument 56 register row, col; in trap_at() 69 short row, col; in trap_player() 123 short row, col; in add_traps() local 179 col = rogue.col; in id_trap() 215 col = rogue.col + j; 217 (col < 0) || (col >= DCOLS)) { 229 col = rogue.col + j ; 231 (col < 0) || (col >= DCOLS)) { 238 (col != rogue.col))) { [all …]
|
H A D | move.c | 43 short row, col; local 49 col = rogue.col; 57 if (!can_move(rogue.row, rogue.col, row, col)) { 99 mvaddch(rogue.row, rogue.col, get_dungeon_char(rogue.row, rogue.col)); 106 rogue.col = col; 156 short row, col; local 170 col = rogue.col; 201 register row, col; in is_passable() 238 col = rogue.col + j; 247 (!((row == rogue.row) || (col == rogue.col)))) { [all …]
|
H A D | zap.c | 70 row = rogue.row; col = rogue.col; in zapp() 91 short *row, *col; 115 short row, col; local 120 col = monster->col; 152 monster->col = col; 181 short row, col; local 189 monster->row = row; monster->col = col; 272 ocol = col; 288 ocol = col; 297 ((row == rogue.row) && (col == rogue.col)))); [all …]
|
H A D | spec_hit.c | 201 col = monster->col; 205 mvaddch(row, col, get_dungeon_char(row, col)); 233 col = monster->col; 257 short row, col; in try_to_cough() 266 if (((row != rogue.row) || (col != rogue.col)) && 268 mvaddch(row, col, get_dungeon_char(row, col)); 308 short row, col; in gold_at() 462 col = rogue.col - monster->col; 467 col = -col; 469 if (((row != 0) && (col != 0) && (row != col)) || [all …]
|
H A D | curses.c | 118 move(row, col) in move() argument 197 short i, col; local 203 col = 0; 205 while ((col < DCOLS) && (buffer[i][col] == ' ')) { 206 col++; 211 while ((col < DCOLS) && (buffer[i][col] != ' ')) { 214 col++; 245 for (col = curscr->_curx; col < DCOLS; col++) { in clrtoeol() 307 cdif = (col > cur_col) ? col - cur_col : cur_col - col; 340 row = col; [all …]
|
H A D | room.c | 113 if (can_move(row, col, row+i, col+j)) { in light_passage() 114 mvaddch(row+i, col+j, get_dungeon_char(row+i, col+j)); in light_passage() 145 register row, col; in get_dungeon_char() 178 if (((col > 0) && (dungeon[row][col-1] & HORWALL)) || 179 ((col < (DCOLS-1)) && (dungeon[row][col+1] & HORWALL))) { 220 short *row, *col; in gr_row_col() 237 *col = c; 284 register row, col; in get_room_number() 290 (col >= rooms[i].left_col) && (col <= rooms[i].right_col)) { 383 short row, col; [all …]
|
H A D | hit.c | 267 short row, col; local 273 col = monster->col; 275 mvaddch(row, col, (int) get_dungeon_char(row, col)); 315 row = rogue.row; col = rogue.col; 320 (!can_move(rogue.row, rogue.col, row, col))) { 354 (*col)--; 369 (*col)++; 375 (*col)--; 381 (*col)++; 387 (*col)++; [all …]
|
/original-bsd/usr.bin/systat/ |
H A D | keyboard.c | 26 col = 0; in keyboard() 37 if (col == 0) { in keyboard() 59 col--; in keyboard() 63 while (--col >= 0 && isspace(line[col])) in keyboard() 65 col++; in keyboard() 66 while (--col >= 0 && !isspace(line[col])) in keyboard() 69 col++; in keyboard() 73 col = 0; in keyboard() 75 col++; in keyboard() 84 col++; in keyboard() [all …]
|
/original-bsd/old/vfilters/vpf/ |
H A D | vpf.c | 131 for (col = 0; col < width; col++) { in getline() 133 ovbuf[col] = 0; in getline() 135 col = indent; in getline() 168 col++; in getline() 173 col++; in getline() 177 col = (col|07) + 1; in getline() 181 col = 0; in getline() 191 col++; in getline() 195 col++; in getline() 210 if (col > 0) in getline() [all …]
|
/original-bsd/games/snake/snake/ |
H A D | move.c | 105 distance = sp->col - cursor.col; 138 distance = sp->col - cursor.col; 147 cursor.col = sp->col; 170 sp->col <0 || sp->col > COLUMNS) 174 if (sp->col > cursor.col)right(sp); 186 while(cursor.col > sp->col) bs(); 192 if (cursor.col - sp->col > (cursor.col >> 3)){ 233 if (sp->col < cursor.col) 253 while(cursor.col > sp->col)bs(); 275 while(cursor.col > sp->col)bs(); [all …]
|
H A D | snake.c | 243 repeat = you.col - money.col; in mainloop() 261 repeat = money.col - you.col; in mainloop() 517 point(&d,you.col-sp->col,you.line-sp->line); 639 if(abs(ps->col-you.col) < 6){ 656 if(you.col < ps->col){ 657 for (p.col = you.col+1;p.col <= ps->col;p.col++) 660 for (;p.col > you.col;p.col--) 663 for (p.col = you.col-1;p.col >= ps->col;p.col--) 666 for (;p.col < you.col;p.col++) 679 if(ps->col == 0)ps->col++; [all …]
|
/original-bsd/local/local.cmd/ |
H A D | cpr.c | 91 int col; in copyfile() local 99 for (col = 0; col <= LINELEN; col++) in copyfile() 100 bufa[col] = bufb[col] = bufc[col] = bufd[col] = ' '; in copyfile() 101 col = 0; in copyfile() 107 if (col > 0) in copyfile() 108 col--; in copyfile() 112 col = 0; in copyfile() 116 col++; in copyfile() 120 col = (col + 8) & ~07; in copyfile() 128 col = 0; in copyfile() [all …]
|
/original-bsd/usr.bin/window/ |
H A D | cmd1.c | 20 int col, row, xcol, xrow; in c_window() local 27 col = 0; in c_window() 32 wwsetcursor(row, col); in c_window() 53 xcol = col; in c_window() 56 wwbox(boxwin, row - 1, col - 1, in c_window() 81 (void) openwin(id, row, col, xrow-row+1, xcol-col+1, default_nline, in c_window() 86 register int *row, *col; in getpos() 107 *col = mincol; 110 *col = mincol; 114 *col = maxcol; [all …]
|
H A D | wwdelchar.c | 18 wwdelchar(w, row, col) in wwdelchar() argument 30 p = &w->ww_buf[row][col]; 32 for (i = w->ww_b.r - col; --i > 0;) 41 || w->ww_i.r <= 0 || w->ww_i.r <= col) 44 if (col < w->ww_i.l) 45 col = w->ww_i.l; 58 smap = &wwsmap[row][col]; 63 col = i; 90 xxdelchar(row, col); 91 p = &wwos[row][col]; [all …]
|
H A D | wwredrawwin.c | 22 register col; local 31 col = w->ww_i.l; 33 smap = &wwsmap[row][col]; 37 for (; col < w->ww_i.r; col++) 39 ns[col].c_w != 40 (x = buf[col].c_w ^ win[col] << WWC_MSHIFT)) { 42 ns[col].c_w = x;
|
H A D | wwinschar.c | 18 wwinschar(w, row, col, c, m) in wwinschar() argument 34 for (i = w->ww_b.r - col; --i > 0;) 43 || w->ww_i.r <= 0 || w->ww_i.r <= col) 46 if (col < w->ww_i.l) 47 col = w->ww_i.l; 60 smap = &wwsmap[row][col]; 61 for (i = col; i < w->ww_i.r && *smap++ != w->ww_index; i++) 65 col = i; 93 xxinschar(row, col, c, m); 95 xxinsspace(row, col); [all …]
|
H A D | wwclreol.c | 22 wwclreol1(w, row, col, cleared) in wwclreol1() argument 24 int row, col; 35 buf = &w->ww_buf[row][col]; 36 for (i = w->ww_b.r - col; --i >= 0;) 44 || w->ww_i.r <= 0 || w->ww_i.r <= col) 47 if (col < w->ww_i.l) 48 col = w->ww_i.l; 57 i = col;
|
/original-bsd/usr.bin/vis/ |
H A D | foldit.c | 12 foldit(chunk, col, max) in foldit() argument 27 col = 0; 30 col = col + 8 &~ 07; 33 col = col ? col - 1 : 0; 36 col++; 38 if (col > (max - 2)) { 40 col = 0; 45 return (col);
|
/original-bsd/usr.bin/fold/ |
H A D | fold.c | 83 for (col = 0;;) { 88 new = col ? col - 1 : 0; 95 new = (col + 8) & ~7; 98 new = col + 1; 104 col = 0; 110 if (col > 0) 111 --col; 115 col = 0; 118 col += 8; 119 col &= ~7; [all …]
|
/original-bsd/usr.bin/ul/ |
H A D | ul.c | 46 int col, maxcol; variable 128 if (col > 0) 129 col--; 133 col = (col+8) & ~07; 135 maxcol = col; 139 col = 0; 197 col++; 224 col++; 336 col = 0; in initbuf() 345 oldcol = col; in fwd() [all …]
|
/original-bsd/local/transcript/src/ |
H A D | pstext.c | 72 int done, linedone, maxline, i, col; local 89 col = indent; 103 if (--col < indent) col = indent; 106 col = indent; 109 col = ((col - indent) | 07) + indent + 1; 113 if ((col >= width) || 115 col++; 120 cp = &buf[i][col]; 123 if (col > maxcol[i]) 124 maxcol[i] = col; [all …]
|
/original-bsd/usr.sbin/lpr/filters/ |
H A D | lpf.c | 53 register int i, col; local 96 col = indent; 115 if (--col < indent) 116 col = indent; 120 col = indent; 124 col = ((col - indent) | 07) + indent + 1; 144 col++; 147 cp = &buf[0][col]; 153 if (col > maxcol[i]) 154 maxcol[i] = col; [all …]
|
/original-bsd/sys/luna68k/stand/ |
H A D | bmd.c | 153 register int col; local 154 for (col = bq->bl_col; col < bp->bc_xmax; col++) 157 col, bp->bc_row); 187 register int col = 0, row = 0; local 203 col = (col * 10) + (*p - 0x30); 205 bq->bl_col = col + bp->bc_xmin; 421 int col; 431 switch (col % 4) { 486 int col; 493 switch (col%4) { [all …]
|