* FILE: main.c
*
* ----------------------------------------------------------------------
- *
- * Copyright (c) 2012 Free Software Foundation
+ * Copyright (c) 1993, 1994, 1995 Matthias Mutz
+ * Copyright (c) 1999 Michael Vanier and the Free Software Foundation
*
* GNU SHOGI is based on GNU CHESS
*
+ * Copyright (c) 1988, 1989, 1990 John Stanback
+ * Copyright (c) 1992 Free Software Foundation
+ *
* This file is part of GNU SHOGI.
*
* GNU Shogi is free software; you can redistribute it and/or modify it
*
*/
-#include "version.h"
#include "gnushogi.h"
#include <signal.h>
break;
#endif
+#ifdef HAVE_LIBCURSES
case 'C':
/* Curses interface. */
display_type = DISPLAY_CURSES;
break;
-
+#endif
case 'h':
/* Need the "+" syntax here... */
long j;
struct fileentry n;
- fputs(CP[66], stdout);
+ fputs("Filling transposition file, wait!\n", stdout);
n.f = n.t = 0;
n.flags = 0;
n.depth = 0;
}
else
{
- printf(CP[50], HASHFILE);
+ printf("Create failed for %s\n", HASHFILE);
}
return 0;
int nr[MAXDEPTH];
struct fileentry n;
- fputs(CP[49], stdout);
+ fputs("Counting transposition file entries, wait!\n", stdout);
for (i = 0; i < MAXDEPTH; i++)
nr[i] = 0;
}
}
- printf(CP[109], nr[0], i);
+ printf("The file contains %d entries out of max %d\n", nr[0], i);
for (j = 1; j < MAXDEPTH; j++)
printf("%d ", nr[j]);
#endif /* ttblsz */
case 'v':
- fprintf(stderr, CP[102], version, patchlevel);
+ fprintf(stderr, "gnushogi version %s\n", PACKAGE_VERSION);
exit(1);
default:
- fputs(CP[113], stderr);
+ fputs("Usage: gnushogi [-a] [-t] [-c size] [-s savefile][-l listfile] [-x xwndw]\n", stderr);
exit(1);
}
if (argc > 9)
{
- printf("%s\n", CP[220]);
+ printf("Time Control Error\n");
exit(1);
}
XC++;
else
{
- printf("%s\n", CP[220]);
+ printf("Time Control Error\n");
exit(1);
}
* an error message and quit.
*/
- printf("%s\n", CP[233]);
+ printf("Invalid command-line arguments:\n");
print_arglist(argc, argv);
exit(1);
}