/[chess]/chess/src/epd.c
ViewVC logotype

Diff of /chess/src/epd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by srw, Wed Feb 5 02:50:49 2003 UTC revision 1.11 by srw, Sat Jun 28 15:29:56 2003 UTC
# Line 196  int ParseEPD (char *p) Line 196  int ParseEPD (char *p)
196          c += (*p - '0');          c += (*p - '0');
197       else       else
198          c++;          c++;
199    
200         /*
201          * Special case, a trailing "/" is accepted on the
202          * end of the board settings.
203          */
204    
205         if (r == -8 && p[1] == ' ')
206                 r = 0;
207    
208       if (r < 0 || c > 8) return EPD_ERROR;       if (r < 0 || c > 8) return EPD_ERROR;
209       if (c == 8 && p[1] != '/' && p[1] != ' ') return EPD_ERROR;       if (c == 8 && p[1] != '/' && p[1] != ' ') return EPD_ERROR;
210       p++;       p++;

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26