Skip to content

Commit 166ce91

Browse files
Daniel WhiteDaniel White
authored andcommitted
Modified F macro to include a semicolon. Saves a single byte.
1 parent f3c0582 commit 166ce91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

iota.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define I ;if(
22
#define K )break;
3-
#define F for(
3+
#define F ;for(
44
#define H 99999
55
#define Z ;if(!strncmp(c,
66

@@ -10,7 +10,7 @@ char c[H], *C,
1010
B[H], E, S, X, Y;
1111

1212
D(x, y, p, e) {
13-
int f=0,t, i, d, m, v, b;
13+
int f=0,t, i, d, m, v, b
1414
F ;f<128;f=f+9&~8) { // Loop over squares looking for pieces.
1515
F i=T[(m=B[f])&7]-35,d=0;d<0 || (d=T[i++]-35);d=-d) { // Loop over move steps for this piece.
1616
F t=f;m&S;) { // Loop over destination squares in this direction.
@@ -73,7 +73,7 @@ main(i) {
7373
F ;i<8;) // Reset board to start position.
7474
B[i]=(B[i+112]=T[i+23])-(S=32), // Pieces.
7575
B[i+S]=B[i+48]=B[i+64]=B[i+80]=0, // Empty rows.
76-
B[i+16]=E=170,B[i+++96]=202; // Pawns.
76+
B[i+16]=E=170,B[i+++96]=202 // Pawns.
7777
F ;C=strtok(0," ");)
7878
D(*C+C[1]*16-881, C[2]+C[3]*16-881, C[4], E);
7979
}

0 commit comments

Comments
 (0)