File: record.h

package info (click to toggle)
gnubg 0.90-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 30,800 kB
  • ctags: 8,224
  • sloc: ansic: 92,884; xml: 13,338; sh: 9,675; makefile: 425; python: 392; yacc: 295; sql: 237; lex: 220; php: 102; cs: 81; awk: 25; sed: 16
file content (46 lines) | stat: -rw-r--r-- 1,360 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 * record.h
 *
 * by Gary Wong <gtw@gnu.org>, 2002.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of version 3 or later of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * $Id: record.h,v 1.8 2007/12/12 23:08:19 Superfly_Jon Exp $
 */

#ifndef RECORD_H
#define RECORD_H

typedef enum _expaverage {
    EXPAVG_TOTAL, EXPAVG_20, EXPAVG_100, EXPAVG_500
} expaverage;
#define NUM_AVG ((int)EXPAVG_500 + 1)

typedef struct _playerrecord {
    char szName[ MAX_NAME_LEN ];
    int cGames;
    double arErrorChequerplay[ NUM_AVG ];
    double arErrorCube[ NUM_AVG ];
    double arErrorCombined[ NUM_AVG ];
    double arLuck[ NUM_AVG ];
} playerrecord;

extern int RecordReadItem( FILE *pf, char *pch, playerrecord *ppr );

extern playerrecord *
GetPlayerRecord( char *szPlayer );

#define GNUBGPR "gnubgpr"

#endif