Author: Scott Gasch
Date: 15:23:53 07/04/04
Go up one level in this thread
On July 04, 2004 at 17:38:55, Dieter Buerssner wrote:
>Do you have a correct prototype in place, where the function is called (not only
>where it is defined)?
I've got basically whatever crafty has at the top of probe.c. My definition of
TB_FASTCALL is stuck in another header called "compiler.h" which is included
both places.
//
// define INDEX
//
typedef unsigned long INDEX;
//
// define square_t and tb_t
//
typedef unsigned int squaret;
typedef signed char tb_t;
//
// define color
//
typedef int color;
#define x_colorWhite 0
#define x_colorBlack 1
#define x_colorNeutral 2
#define COLOR_DECLARED
//
// define pieces
//
typedef int piece;
#define x_pieceNone 0
#define x_piecePawn 1
#define x_pieceKnight 2
#define x_pieceBishop 3
#define x_pieceRook 4
#define x_pieceQueen 5
#define x_pieceKing 6
#define PIECES_DECLARED
//
// define PfnCalcIndex
//
typedef INDEX (TB_FASTCALL * PfnCalcIndex)
(squaret*, squaret*, squaret, int fInverse);
//
// prototypes for identifiers in egtb.cpp
//
extern int IDescFindFromCounters (int*);
extern int FRegisteredFun (int, color);
extern PfnCalcIndex PfnIndCalcFun (int, color);
extern int TB_FASTCALL L_TbtProbeTable (int, color, INDEX);
#define PfnIndCalc PfnIndCalcFun
#define FRegistered FRegisteredFun
extern int IInitializeTb(char *);
extern int FTbSetCacheSize(void *buffer, unsigned long size);
extern int TB_CRC_CHECK;
//
// Globals
//
static int EGTBMenCount;
BYTE *egtb_cache = NULL;
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.