"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/frontend/epd.cc" between
gnuchess-6.2.5.tar.gz and gnuchess-6.2.6.tar.gz

About: GNU Chess is a chess-playing program.

epd.cc  (gnuchess-6.2.5):epd.cc  (gnuchess-6.2.6)
/* epd.c /* epd.c
GNU Chess frontend GNU Chess frontend
Copyright (C) 2001-2011 Free Software Foundation, Inc. Copyright (C) 2001-2020 Free Software Foundation, Inc.
GNU Chess is based on the two research programs GNU Chess is based on the two research programs
Cobalt by Chua Kong-Sian and Gazebo by Stuart Cracraft. Cobalt by Chua Kong-Sian and Gazebo by Stuart Cracraft.
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
skipping to change at line 76 skipping to change at line 76
/* Is this a close request? */ /* Is this a close request? */
if (op == EPDCLOSE) if (op == EPDCLOSE)
{ {
fclose (fp); fclose (fp);
fp = NULL; fp = NULL;
return (false); return (false);
} }
next_line: next_line:
/* Okay, we read in an EPD entry */ /* Okay, we read in an EPD entry */
fgets (line, MAXSTR-1, fp); if (fgets (line, MAXSTR-1, fp) != line)
{
printf ("Error reading file %s\n", file);
fclose (fp);
fp = NULL;
return (false);
}
strcpy( epd_line, line ); strcpy( epd_line, line );
if (!feof(fp)) if (!feof(fp))
{ {
/* Skip comment lines */ /* Skip comment lines */
int i=0; int i=0;
for (i = 0; i < strlen( line ); ++i) { for (i = 0; i < strlen( line ); ++i) {
if ( isblank( line[i] ) ) { if ( isblank( line[i] ) ) {
continue; continue;
} }
if ( line[i] == '#' ) { if ( line[i] == '#' ) {
 End of changes. 2 change blocks. 
2 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)