X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.h;h=25fbf716315dbe8fd3acf579609563b09c71979d;hb=4bfad947161d93ce1b566093211bd05f368bdffe;hp=e53bb45da0b3781713e43defd82b66a76d8657a2;hpb=37ba6fd87b2253e7ae140be53b49933cd5bc951e;p=xboard.git diff --git a/backend.h b/backend.h index e53bb45..25fbf71 100644 --- a/backend.h +++ b/backend.h @@ -51,8 +51,8 @@ *------------------------------------------------------------------------ ** See the file ChangeLog for a revision history. */ -#ifndef _BACKEND -#define _BACKEND +#ifndef XB_BACKEND +#define XB_BACKEND /* unsigned int 64 for engine nodes work and display */ #ifdef WIN32 @@ -243,6 +243,7 @@ int PackGame P((Board board)); Boolean ParseFEN P((Board board, int *blackPlaysFirst, char *fen)); void ApplyMove P((int fromX, int fromY, int toX, int toY, int promoChar, Board board)); void PackMove P((int fromX, int fromY, int toX, int toY, ChessSquare promoPiece)); +void ics_printf P((char *format, ...)); char *StrStr P((char *string, char *match)); char *StrCaseStr P((char *string, char *match)); @@ -269,8 +270,6 @@ extern GameInfo gameInfo; #define ICS_CHESSNET 3 /* not really supported */ int ics_type; - - /* pgntags.c prototypes */ char *PGNTags P((GameInfo *)); @@ -283,7 +282,7 @@ char *PGNResult P((ChessMove result)); */ /* A game node in the double linked list of games. */ -typedef struct _ListGame { +typedef struct XB_ListGame { ListNode node; int number; int position; @@ -291,7 +290,7 @@ typedef struct _ListGame { unsigned long offset; /* Byte offset of game within file. */ GameInfo gameInfo; /* Note that some entries may be NULL. */ } ListGame; - + extern int storedGames; extern int opponentKibitzes; extern ChessSquare gatingPiece; @@ -322,7 +321,7 @@ int Explode P((Board board, int fromX, int fromY, int toX, int toY)); typedef enum { CheckBox, ComboBox, TextBox, Button, Spin, ResetButton, SaveButton, ListBox, Graph, PopUp, FileName, PathName, Slider, Message, Fractional, Label, BoxBegin, BoxEnd, DropDown, Break, EndMark } Control; -typedef struct _OPT { // [HGM] options: descriptor of UCI-style option +typedef struct XB_OPT { // [HGM] options: descriptor of UCI-style option int value; // current setting, starts as default int min; // Also used for flags int max; @@ -334,7 +333,7 @@ typedef struct _OPT { // [HGM] options: descriptor of UCI-style option char *name; // holds both option name and text value (in allocated memory) } Option; -typedef struct _CPS { +typedef struct XB_CPS { char *which; int maybeThinking; ProcRef pr; @@ -343,7 +342,7 @@ typedef struct _CPS { char *program; char *host; char *dir; - struct _CPS *other; + struct XB_CPS *other; char *initString; char *computerString; int sendTime; /* 0=don't, 1=do, 2=test */ @@ -450,4 +449,4 @@ typedef struct { void GetTimeMark P((TimeMark *)); long SubtractTimeMarks P((TimeMark *, TimeMark *)); -#endif /* _BACKEND */ +#endif /* XB_BACKEND */