version 1.4.58b
[polyglot.git] / epd.c
diff --git a/epd.c b/epd.c
index c79c399..4f7ee7b 100644 (file)
--- a/epd.c
+++ b/epd.c
 #include "uci.h"\r
 #include "util.h"\r
 \r
+\r
+// macros\r
+\r
+#define  StringSize 4096\r
+\r
 // constants\r
 \r
 static const bool UseDebug = FALSE;\r
 static const bool UseTrace = FALSE;\r
 \r
-static const int StringSize = 4096;\r
-\r
 // variables\r
 \r
 static int MinDepth;\r
@@ -179,7 +182,7 @@ static void epd_test_file(const char file_name[]) {
    time_tot = 0.0;\r
    node_tot = 0.0;\r
 \r
-   printf("\nEngineName=%s\n",option_get_string("EngineName"));\r
+   printf("\nEngineName=%s\n",option_get_string(Option,"EngineName"));\r
 \r
    printf("\n[Search parameters: MaxDepth=%d   MaxTime=%.1f   DepthDelta=%d   MinDepth=%d   MinTime=%.1f]\n\n",MaxDepth,MaxTime,DepthDelta,MinDepth,MinTime);\r
 \r
@@ -209,7 +212,7 @@ static void epd_test_file(const char file_name[]) {
       if (!board_from_fen(board,epd)) ASSERT(FALSE);\r
       if (!board_to_fen(board,string,StringSize)) ASSERT(FALSE);\r
 \r
-      engine_send(Engine,"position fen %s");\r
+      engine_send(Engine,"position fen %s",string);\r
 \r
       // search\r
 \r