Another bug squashed:
utility.c
Replace ShowBanner() with this:
Code: Select all
void ShowBanner()
{
char *startup_banner;
sprintf(startup_banner, Engine Vers Platform "\n"
"by Yuri Censor, a clone of Fire 2.2 xTreme by Kranium, based on Ippolit\n" // Modification by Yuri Censor for Firenzina, 2/16/2013
"compiled by Yuri Censor\n" // Modified by Yuri Censor for Firenzina, 2/23/2013; Was: compiled by NS (i.e., Norman Schmidt)
"" __DATE__ " " __TIME__ "\n\n");
Send(startup_banner);
fflush(stdout);
#ifdef Log
if (WriteLog)
{
log_file = fopen(log_filename, "a");
fprintf(log_file, startup_banner);
close_log();
}
#endif
}
GetSysInfo() expects Windows, as Linux does not have GetSystemInfo().
__cpuid() does not exist on Linux.
If you have a 33 core machine (not sure, but hey ho!) 33<<1 is 66, which is higher than MaxCPUs in fire.h.
history.h
It is impossible to assign a function a value. Unless the function is supposed to be a macro - in which case - where the hell is it?
search.c
OutputBestMove is static void and takes a parameter typePos *Position, yet in functions.h, OutputBestMove is void, and takes no parameters. Which one is it??
You also have a file missing in your git repo,
intrin.h.
Norman, you were saying about Linux compatiility? Where? I can't find any.
Matthew:out