[llvm-commits] CVS: llvm-test/MultiSource/Benchmarks/Prolangs-C++/chess/chess.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Oct 4 13:10:34 PDT 2004



Changes in directory llvm-test/MultiSource/Benchmarks/Prolangs-C++/chess:

chess.cpp updated: 1.1 -> 1.2
---
Log message:

Allow this to compile


---
Diffs of the changes:  (+4 -4)

Index: llvm-test/MultiSource/Benchmarks/Prolangs-C++/chess/chess.cpp
diff -u llvm-test/MultiSource/Benchmarks/Prolangs-C++/chess/chess.cpp:1.1 llvm-test/MultiSource/Benchmarks/Prolangs-C++/chess/chess.cpp:1.2
--- llvm-test/MultiSource/Benchmarks/Prolangs-C++/chess/chess.cpp:1.1	Mon Oct  4 15:01:12 2004
+++ llvm-test/MultiSource/Benchmarks/Prolangs-C++/chess/chess.cpp	Mon Oct  4 15:10:24 2004
@@ -37,12 +37,12 @@
 		config [1][i] = new Pawn(CH_BLACK);
 		config [6][i] = new Pawn(CH_WHITE);
 	}
-	for (i=0;i<8;i++)
+	for (int i=0;i<8;i++)
 		for (int j=2;j<6;j++)
 			config [j][i] = 0;
 }
 
-Board :: Move (Pos *f, Pos *t)
+int Board :: Move (Pos *f, Pos *t)
 {
 	config [t->x][t->y] = config [f->x][f->y];
 	config [f->x][f->y] = 0;
@@ -74,7 +74,7 @@
 	PaintBoard ();
 } 
 
-Player :: Move (Pos *f, Pos *t)
+int Player :: Move (Pos *f, Pos *t)
 {
 	board->Move (f, t);
 	board->Dump ();
@@ -186,7 +186,7 @@
 char gameNotOver = 1;
 char firstMove = 0;
 
-main ()
+int main ()
 {
 //	struct stat Stat;
 //	FILE *fp;






More information about the llvm-commits mailing list