/original-bsd/games/chess/ |
H A D | move.c | 137 short sq,side; in SqAtakd() 150 while (u != sq) { 159 while (u != sq) { 173 while (u != sq) { 187 while (u != sq) { 201 BRscan(sq,s,mob) in BRscan() argument 202 short sq,*s,*mob; in BRscan() 215 p = posdata[color[sq]][piece][sq]; 269 sq = PL[i]; 274 while (u != sq) { [all …]
|
H A D | gnuchess.c | 1459 for (sq = 0; sq < 64; sq++) in InitializeStats() 1470 PieceList[color[sq]][Pindex[sq]] = sq; in InitializeStats() 1471 hashbd ^= hashcode[color[sq]][board[sq]][sq].bd; in InitializeStats() 1472 hashkey ^= hashcode[color[sq]][board[sq]][sq].key; in InitializeStats() 1723 if (row[sq] < 6) sq += 16; else sq += 8; 1730 if (row[sq] > 1) sq -= 16; else sq -= 8; 2125 for (sq = 0; sq < 64; sq++) in ExaminePosition() 2296 for (sq = 0; sq < 64; sq++) 2297 c[sq] = (a[sq]*(10-stage) + b[sq]*stage) / 10; 2305 for (sq = 0; sq < 64; sq++) [all …]
|
H A D | move.h | 26 register short u,c,sq;\ 34 sq = PL[i];\ 35 piece = board[sq];\ 37 p = posdata[side][piece][sq];\ 39 u = p[sq].nextdir; /* follow captures thread */\ 40 while (u != sq) {\ 46 u = p[sq].nextpos;\ 47 while (u != sq) {\
|
H A D | nondsp.c | 292 short a,r,c,sq; in EditBoard() local 307 for (sq = 0; sq < 64; sq++) in EditBoard() 309 board[sq] = no_piece; color[sq] = neutral; in EditBoard() 325 else { board[sq] = no_piece; color[sq] = neutral; } in EditBoard() 591 short sq; in GetGame() local 607 for (sq = 0; sq < 64; sq++) in GetGame() 610 board[sq] = (m >> 8); color[sq] = (m & 0xFF); in GetGame() 611 if (color[sq] == 0) color[sq] = neutral; else --color[sq]; in GetGame() 639 short sq,i,c; in SaveGame() local 653 for (sq = 0; sq < 64; sq++) in SaveGame() [all …]
|
H A D | uxdsp.c | 258 for (sq = 0; sq < 64; sq++) in EditBoard() 260 board[sq] = no_piece; color[sq] = neutral; in EditBoard() 504 DrawPiece(sq) in DrawPiece() argument 505 short sq; in DrawPiece() 508 if (reverse) r = 7-row[sq]; else r = row[sq]; 509 if (reverse) c = 7-column[sq]; else c = column[sq]; 651 short sq; in GetGame() local 667 for (sq = 0; sq < 64; sq++) in GetGame() 670 board[sq] = (m >> 8); color[sq] = (m & 0xFF); in GetGame() 671 if (color[sq] == 0) color[sq] = neutral; else --color[sq]; in GetGame() [all …]
|
/original-bsd/games/fortune/tools/ |
H A D | Troff.mac | 24 \(sq\|\(sq\|\(sq\|\(sq\|\(sq\|\(sq\|\(sq\|\(sq\|\(sq
|
/original-bsd/sys/dev/scsi/ |
H A D | scsi_subr.c | 404 register struct sq *sq; 414 t->t_head = sq; 417 t->t_tail = sq; 465 register struct sq *sq; local 467 sq = t->t_head; 469 t->t_head = sq = sq->sq_forw; 474 sq->sq_bp, sq->sq_dgo, sq->sq_dev); 488 register struct sq *sq; local 491 sq = t->t_head; 500 sq = sq->sq_forw; [all …]
|
H A D | scsivar.h | 54 struct sq; struct buf; 55 typedef void (*scstart_fn) __P((struct device *, struct sq *, struct buf *, 70 struct sq { struct 71 struct sq *sq_forw; /* forward link */ argument 79 struct sq *hba_head, *hba_tail;/* io queue (u's/t's wanting bus) */ 89 struct sq t_forw; /* forward link, etc, on hba queue */ 90 struct sq *t_head, *t_tail; /* io queue */ 108 struct sq u_forw; /* forward link on target or hba q */
|
/original-bsd/games/sail/ |
H A D | dr_1.c | 53 foreachship(sq) { in boardcomp() 54 if (!Xsnagged2(sp, sq)) in boardcomp() 56 if (meleeing(sp, sq)) in boardcomp() 58 if (!sq->file->dir in boardcomp() 209 for (sq = sp + 1; sq < ls; sq++) in resolve() 210 if (sq->file->dir && meleeing(sp, sq) && meleeing(sq, sp)) in resolve() 213 foreachship(sq) { in resolve() 214 if (sq->file->dir && meleeing(sq, sp)) in resolve() 220 foreachship(sq) { in resolve() 221 if (sq->file->dir && meleeing(sq, sp)) in resolve() [all …]
|
H A D | dr_2.c | 24 foreachship(sq) { in thinkofgrapples() 29 if (range(sp, sq) != 1) in thinkofgrapples() 31 if (grappled2(sp, sq)) in thinkofgrapples() 33 ungrap(sp, sq); in thinkofgrapples() 35 grap(sp, sq); in thinkofgrapples() 37 grap(sp, sq); in thinkofgrapples() 41 ungrap(sp, sq); in thinkofgrapples() 63 foreachship(sq) in checkup() 64 cleansnag(sp, sq, 1); in checkup() 67 foreachship(sq) { in checkup() [all …]
|
H A D | dr_3.c | 90 foreachship(sq) { in moveall() 93 if (sp == sq) in moveall() 95 if (sq->file->dir == 0) in moveall() 97 if (!push(sp, sq)) in moveall() 99 if (snagged2(sp, sq) && range(sp, sq) > 1) in moveall() 101 if (!range(sp, sq) && !fouled2(sp, sq)) { in moveall() 107 sq); in moveall() 115 sq->file->movebuf[k + 1] = 0; in moveall() 119 sq->file->col = in moveall() 122 sq->file->col = sp->file->col; in moveall() [all …]
|
/original-bsd/games/monop/ |
H A D | houses.c | 92 pp = mp->sq[i]->desc; 95 printf("%s (H):\n", mp->sq[i]->name); 101 mp->sq[i]->name, pp->houses); 124 mp->sq[i]->desc->houses = temp[i]; 191 pp = mp->sq[i]->desc; 194 printf("%s (0):\n", mp->sq[i]->name); 200 mp->sq[i]->name,pp->houses); 202 (void)sprintf(cur_prop,"%s (H): ",mp->sq[i]->name); 224 mp->sq[i]->desc->houses = temp[i]; 236 sqp = mp->sq[i];
|
H A D | mon.dat | 10 /* name owner num_in num_own h_cost not_m mon_n sq */
|
/original-bsd/sys/sparc/sbus/ |
H A D | esp.c | 1013 register struct sq *sq; local 1093 (*sq->sq_dgo)(sq->sq_dev, &sc->sc_cdbspace); 1132 register struct sq *sq; 1150 sq->sq_dgo = dgo; 1151 sq->sq_dev = dev; 1152 sq->sq_forw = NULL; 1157 sc->sc_hba.hba_tail = sq; 1204 register struct sq *sq; local 1255 (*sq->sq_dgo)(sq->sq_dev, &sc->sc_cdbspace); 1287 register struct sq *sq; local [all …]
|
/original-bsd/old/tk/ |
H A D | tk.c | 201 int (*si)(), (*sq)(); in execom() local 205 sq = signal(SIGQUIT, SIG_IGN); in execom() 208 signal(SIGQUIT, sq); in execom()
|
/original-bsd/local/ditroff/ditroff.okeeffe/grap/ |
H A D | grap.defines | 9 define square % "\s-3\(sq\s0" %
|
/original-bsd/local/ditroff/ditroff.okeeffe/devver/vfont.desc/ |
H A D | tr | 10 sq 52 2 010
|
H A D | gb | 18 sq 61 3 035
|
H A D | gi | 17 sq 58 3 035
|
H A D | gr | 18 sq 58 3 035
|
H A D | sr | 15 sq 23 0 010
|
H A D | R | 15 sq 24 0 010
|
H A D | sb | 15 sq 23 0 010
|
H A D | B | 15 sq 25 0 010
|
H A D | I | 15 sq 24 0 010
|