Subversion Repositories Games.Chess Giants

Rev

Rev 108 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 108 Rev 154
Line 70... Line 70...
70
    fclose(books_file);
70
    fclose(books_file);
71
    books_file = 0;
71
    books_file = 0;
72
  }
72
  }
73
  fclose(test_input);
73
  fclose(test_input);
74
  test_input = fopen(filename, "r");
74
  test_input = fopen(filename, "r");
75
  while (1) {
75
  while (FOREVER) {
76
    eof = fgets(buffer, 4096, test_input);
76
    eof = fgets(buffer, 4096, test_input);
77
    strcpy(failed[nfailed++], buffer);
77
    strcpy(failed[nfailed++], buffer);
78
    if (eof) {
78
    if (eof) {
79
      delim = strchr(buffer, '\n');
79
      delim = strchr(buffer, '\n');
80
      if (delim)
80
      if (delim)
Line 189... Line 189...
189
    Print(4095, "total time........................%12s\n",
189
    Print(4095, "total time........................%12s\n",
190
        DisplayTime(time));
190
        DisplayTime(time));
191
  }
191
  }
192
  input_stream = stdin;
192
  input_stream = stdin;
193
  early_exit = 99;
193
  early_exit = 99;
-
 
194
  fclose(test_input);
194
}
195
}
195
 
196
 
196
/* last modified 06/26/15 */
197
/* last modified 06/26/15 */
197
/*
198
/*
198
 *******************************************************************************
199
 *******************************************************************************
Line 261... Line 262...
261
  }
262
  }
262
  if (books_file) {
263
  if (books_file) {
263
    fclose(books_file);
264
    fclose(books_file);
264
    books_file = 0;
265
    books_file = 0;
265
  }
266
  }
266
  while (1) {
267
  while (FOREVER) {
267
    eof = fgets(buffer, 4096, test_input);
268
    eof = fgets(buffer, 4096, test_input);
268
    strcpy(failed, buffer);
269
    strcpy(failed, buffer);
269
    Print(4095, "%s\n", buffer);
270
    Print(4095, "%s\n", buffer);
270
    strcpy(tbuffer, buffer);
271
    strcpy(tbuffer, buffer);
271
    if (eof) {
272
    if (eof) {
Line 412... Line 413...
412
    Print(4095, "total time........................%12s\n",
413
    Print(4095, "total time........................%12s\n",
413
        DisplayTime(time));
414
        DisplayTime(time));
414
  }
415
  }
415
  input_stream = stdin;
416
  input_stream = stdin;
416
  early_exit = 99;
417
  early_exit = 99;
-
 
418
  fclose(test_input);
417
}
419
}