Skip to content
This repository was archived by the owner on May 4, 2021. It is now read-only.

Commit d0907dc

Browse files
committed
Version 10.12a
1 parent 160bbea commit d0907dc

File tree

6 files changed

+16
-19
lines changed

6 files changed

+16
-19
lines changed

Code/Init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
DEBUG = False
2-
VERSION = "10.12"
2+
VERSION = "10.12a"
33

44
import os
55
import sys

LCEngine.pyd

1 KB
Binary file not shown.

LCEngine/irina/pgn.c

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void pgn_start(char * fich, int depth)
6363
if( depth > 256 ) depth = 256;
6464
max_depth = depth;
6565

66-
fpgn = fopen(fich, "r");
66+
fpgn = fopen(fich, "rb");
6767
max_pgn = 64*1024;
6868
pgn = (char *)malloc(max_pgn);
6969
pv = (char *)malloc(5*1024);
@@ -163,7 +163,6 @@ void mas_label(void)
163163

164164
int pgn_read( void )
165165
{
166-
bool check_blank_lines;
167166
w_pgn = pgn;
168167
fen[0] = 0;
169168
pos_label = 0;
@@ -173,6 +172,7 @@ int pgn_read( void )
173172
do
174173
{
175174
if(!fgets(w_pgn, 1024, fpgn)) return false;
175+
// printf("PL:[%s]", w_pgn);
176176
if(w_pgn[0] == '[' )
177177
{
178178
mas_label();
@@ -186,31 +186,28 @@ int pgn_read( void )
186186
do
187187
{
188188
if(!fgets(w_pgn, 1024, fpgn)) return false; /*EOF*/
189-
if(w_pgn[0] != '[')
190-
{
191-
check_blank_lines = empty_line();
192-
mas_pgn();
193-
break;
194-
}
189+
if(w_pgn[0] != '[') break;
190+
// printf("+L:[%s]", w_pgn);
195191
mas_label();
196192
mas_pgn();
197193
}
198194
while(1);
195+
// printf("PR:[%s]", w_pgn);
199196

200197
pos_body = w_pgn;
198+
mas_pgn();
201199

202200
/* leemos hasta linea en blanco */
203201
do
204202
{
205203
if(!fgets(w_pgn, 1024, fpgn)) break; /*EOF*/
206-
if( check_blank_lines )
207-
{
208-
if(!empty_line()) check_blank_lines = false;
209-
}
210-
else
211-
{
212-
if(empty_line()) break;
204+
if(w_pgn[0] == '[') {
205+
fseek( fpgn, -strlen(w_pgn)-1, SEEK_CUR );
206+
// printf("FR:[%s,%d]", w_pgn, -strlen(w_pgn)-1);
207+
w_pgn[0] = '\0';
208+
break;
213209
}
210+
// printf("+R:[%s]", w_pgn);
214211
mas_pgn();
215212
}
216213
while(1);

LCEngine/irina/xmk_VC_XP.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set INCLUDE=%VCINSTALLDIR%\Include;%WindowsSdkDir%\Include;%INCLUDE%
88
set LIB=%VCINSTALLDIR%\Lib;%WindowsSdkDir%\Lib;%LIB%
99
set LIBPATH=%VCINSTALLDIR%\Lib;%WindowsSdkDir%\Lib;%LIBPATH%
1010

11-
cl /c /nologo /Ox /MD /GS- /DNDEBUG lc.c board.c data.c eval.c hash.c loop.c makemove.c movegen.c movegen_piece_to.c search.c test.c util.c pgn.c
11+
cl /c /nologo /Ox /MD /GS- /DNDEBUG /DWIN32 lc.c board.c data.c eval.c hash.c loop.c makemove.c movegen.c movegen_piece_to.c search.c test.c util.c pgn.c
1212
lib /OUT:..\irina.lib lc.obj board.obj data.obj eval.obj hash.obj loop.obj makemove.obj movegen.obj movegen_piece_to.obj search.obj test.obj util.obj pgn.obj
1313
del *.obj
1414

LCEngine/xcython_VC_XP.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ set LIB=%VCINSTALLDIR%\Lib;%WindowsSdkDir%\Lib;%LIB%
1212
set LIBPATH=%VCINSTALLDIR%\Lib;%WindowsSdkDir%\Lib;%LIBPATH%
1313

1414
python setup.py build_ext --inplace
15-
copy LCEngine.pyd ..\Engines\Windows\_tools
15+
copy LCEngine.pyd ..
1616

bug.log

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Version 10.12
1+
Version 10.12a

0 commit comments

Comments
 (0)