void InitBackEnd3 P((void));
void FeatureDone P((ChessProgramState* cps, int val));
void InitChessProgram P((ChessProgramState *cps));
-\r
-#ifdef WIN32\r
- extern void ConsoleCreate();\r
-#endif\r
+
+#ifdef WIN32
+ extern void ConsoleCreate();
+#endif
extern int tinyLayout, smallLayout;
static ChessProgramStats programStats;
/* end premove variables */
char *ics_prefix = "$";
-ics_type = ICS_GENERIC;\r
+int ics_type = ICS_GENERIC;
int currentMove = 0, forwardMostMove = 0, backwardMostMove = 0;
int pauseExamForwardMostMove = 0;
char buf[MSG_SIZ];
int err;
- InitChessProgram(&first);\r
-\r
- #ifdef WIN32\r
- /* Make a console window if needed */\r
- if (appData.icsActive) ConsoleCreate();\r
- #endif\r
+ InitChessProgram(&first);
+
+ #ifdef WIN32
+ /* Make a console window if needed */
+ if (appData.icsActive) ConsoleCreate();
+ #endif
if (appData.icsActive) {
err = establish();
int i, oldi;
int buf_len;
int next_out;
- int tkind;\r
-#ifdef WIN32\r
- /* For zippy color lines of winboard\r
- * cleanup for gcc compiler */\r
- int backup;\r
+ int tkind;
+#ifdef WIN32
+ /* For zippy color lines of winboard
+ * cleanup for gcc compiler */
+ int backup;
#endif
char *p;
oldi = i;
if (appData.zippyTalk || appData.zippyPlay) {
-#if ZIPPY\r
- #ifdef WIN32\r
- /* Backup address for color zippy lines */\r
- backup = i;\r
- if (loggedOn == TRUE)\r
- if (ZippyControl(buf, &backup) || ZippyConverse(buf, &backup) ||\r
- (appData.zippyPlay && ZippyMatch(buf, &backup)));\r
+#if ZIPPY
+ #ifdef WIN32
+ /* Backup address for color zippy lines */
+ backup = i;
+ if (loggedOn == TRUE)
+ if (ZippyControl(buf, &backup) || ZippyConverse(buf, &backup) ||
+ (appData.zippyPlay && ZippyMatch(buf, &backup)));
#else
if (ZippyControl(buf, &i) ||
ZippyConverse(buf, &i) ||
(appData.zippyPlay && ZippyMatch(buf, &i))) {
loggedOn = TRUE;
continue;
- }\r
+ }
#endif
#endif
}
if (!ignore) {
buf1[0] = NULLCHAR;
- if (sscanf(message, "%d%c %d %d %I64u %[^\n]\n",
+ if (sscanf(message, "%d%c %d %d" u64Display "%[^\n]\n",
&plylev, &plyext, &curscore, &time, &nodes, buf1) >= 5) {
if (plyext != ' ' && plyext != '\t') {
DisplayAnalysis();
}
return;
- } else if (sscanf(message,"stat01: %d %lu %d %d %d %s",
+ } else if (sscanf(message,"stat01: %d" u64Display "%d %d %d %s",
&time, &nodes, &plylev, &mvleft,
&mvtot, mvname) >= 5) {
/* The stat01: line is from Crafty (9.29+) in response
|| (nCmailMovesRegistered + nCmailResults == nCmailGames)) {
sprintf(string, partCommandString,
appData.debugMode ? " -v" : "", appData.cmailGameName);
- commandOutput = popen(string, "rb");
+ commandOutput = popen(string, "r");
if (commandOutput == NULL) {
DisplayError(_("Failed to invoke cmail"), 0);
if (programStats.moves_left > 0 && appData.periodicUpdates) {
if (programStats.move_name[0] != NULLCHAR) {
- sprintf(buf, "depth=%d %d/%d(%s) %+.2f %s%s\nNodes: %I64u NPS: %d\nTime: %02d:%02d:%02d.%02d",
+ sprintf(buf, "depth=%d %d/%d(%s) %+.2f %s%s\nNodes: "u64Display" NPS: %d\nTime: %02d:%02d:%02d.%02d",
programStats.depth,
programStats.nr_moves-programStats.moves_left,
programStats.nr_moves, programStats.move_name,
xtra[programStats.got_fail] : "",
(u64)programStats.nodes, (int)nps, h, m, s, cs);
} else {
- sprintf(buf, "depth=%d %d/%d %+.2f %s%s\nNodes: %I64u NPS: %d\nTime: %02d:%02d:%02d.%02d",
+ sprintf(buf, "depth=%d %d/%d %+.2f %s%s\nNodes: "u64Display" NPS: %d\nTime: %02d:%02d:%02d.%02d",
programStats.depth,
programStats.nr_moves-programStats.moves_left,
programStats.nr_moves, ((float)programStats.score)/100.0,
(u64)programStats.nodes, (int)nps, h, m, s, cs);
}
} else {
- sprintf(buf, "depth=%d %+.2f %s%s\nNodes: %I64u NPS: %d\nTime: %02d:%02d:%02d.%02d",
+ sprintf(buf, "depth=%d %+.2f %s%s\nNodes: "u64Display" NPS: %d\nTime: %02d:%02d:%02d.%02d",
programStats.depth,
((float)programStats.score)/100.0,
programStats.movelist,