2 * Program: pgn-extract: a Portable Game Notation (PGN) extractor.
3 * Copyright (C) 1994-2014 David Barnes
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 1, or (at your option)
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 * David Barnes may be contacted as D.J.Barnes@kent.ac.uk
19 * http://www.cs.kent.ac.uk/people/staff/djb/
23 /* Define a type to hold hash values of interest.
24 * This is used both to aid in duplicate detection
25 * and in finding positional variations.
27 typedef struct HashLog {
28 /* Store both the final position hash value and
29 * the cumulative hash value for a game.
31 HashCode final_hash_value;
32 HashCode cumulative_hash_value;
33 /* Record the file list index for the file this game was first found in. */
38 void init_duplicate_hash_table(void);
39 void clear_duplicate_hash_table(void);
40 const char *previous_occurance(Game game_details, int plycount);