do {\r
engine_get(uci->engine,string,StringSize);\r
event = uci_parse(uci,string);\r
- } while ((event & EVENT_UCI) == 0);\r
+ } while (!engine_eof(Engine) && (event & EVENT_UCI) == 0);\r
}\r
\r
// uci_close()\r
do {\r
engine_get(uci->engine,string,StringSize);\r
event = uci_parse(uci,string);\r
- } while ((event & EVENT_READY) == 0);\r
+ } while (!engine_eof(Engine) && (event & EVENT_READY) == 0);\r
}\r
\r
// uci_send_stop()\r
do {\r
engine_get(uci->engine,string,StringSize);\r
event = uci_parse(uci,string);\r
- } while ((event & EVENT_STOP) == 0);\r
+ } while (!engine_eof(Engine) && (event & EVENT_STOP) == 0);\r
}\r
\r
// uci_send_ucinewgame()\r
uci->option_nb++;\r
\r
opt->value=NULL;\r
+ my_string_set(&opt->value,"<empty>");\r
opt->mode=0;\r
\r
opt->name = NULL;\r
\r
if (!my_string_empty(argument)) {\r
my_string_set(&opt->default_,argument);\r
+ my_string_set(&opt->value,argument);\r
}\r
\r
} else if (my_string_equal(option,"max")) {\r