X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.h;h=25fbf716315dbe8fd3acf579609563b09c71979d;hb=4bfad947161d93ce1b566093211bd05f368bdffe;hp=a5b10568cd7c073bf892c244ef1f48b604837721;hpb=fa8cdd39eca80f4bdbf6e8e8a290fa1b8979224e;p=xboard.git diff --git a/backend.h b/backend.h index a5b1056..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 @@ -113,6 +113,7 @@ extern Board boards[]; extern char marker[BOARD_RANKS][BOARD_FILES]; extern char lastMsg[MSG_SIZ]; extern Boolean bookUp; +extern int tinyLayout, smallLayout; char *CmailMsg P((void)); /* Tord: Added the useFEN960 parameter in PositionToFEN() below */ @@ -242,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)); @@ -268,8 +270,6 @@ extern GameInfo gameInfo; #define ICS_CHESSNET 3 /* not really supported */ int ics_type; - - /* pgntags.c prototypes */ char *PGNTags P((GameInfo *)); @@ -282,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; @@ -290,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; @@ -321,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; @@ -333,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; @@ -342,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 */ @@ -449,4 +449,4 @@ typedef struct { void GetTimeMark P((TimeMark *)); long SubtractTimeMarks P((TimeMark *, TimeMark *)); -#endif /* _BACKEND */ +#endif /* XB_BACKEND */