X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=common.h;h=c657ef79df51fdf62459b10c3764d9504cf5b51e;hb=2d0f4769e69d228d9593c574014c634706edea97;hp=decda5b1d6e6935252f626ed1c41910376db00ef;hpb=a3e7cc9b3eb04ffb69fd73b47c06758f73316373;p=xboard.git diff --git a/common.h b/common.h index decda5b..c657ef7 100644 --- a/common.h +++ b/common.h @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -132,10 +132,13 @@ int pclose(FILE *); #define BOARD_LEFT (gameInfo.holdingsWidth) /* [HGM] play-board edges */ #define BOARD_RGHT (gameInfo.boardWidth + gameInfo.holdingsWidth) #define CASTLING (BOARD_RANKS-1) /* [HGM] hide in upper rank */ +#define VIRGIN (BOARD_RANKS-2) /* [HGM] pieces not moved */ #define EP_STATUS CASTLING][(BOARD_FILES-2) /* [HGM] in upper rank */ #define HOLDINGS_SET CASTLING][(BOARD_FILES-1) /* [HGM] in upper-right corner*/ #define ONE ('1'-(BOARD_HEIGHT>9)) /* [HGM] foremost board rank */ #define AAA ('a'-BOARD_LEFT) /* [HGM] leftmost board file */ +#define VIRGIN_W 1 /* [HGM] flags in Board[VIRGIN][X] */ +#define VIRGIN_B 2 #define DROP_RANK -3 #define MAX_MOVES 1000 #define MSG_SIZ 512 @@ -384,6 +387,8 @@ typedef struct { char *jailSquareColor; char *highlightSquareColor; char *premoveHighlightColor; + char *dialogColor; + char *buttonColor; #else int whitePieceColor; int blackPieceColor; @@ -434,6 +439,8 @@ typedef struct { Boolean debugMode; Boolean clockMode; char *boardSize; + char *logoDir; + int logoSize; Boolean Iconic; char *searchTime; int searchDepth; @@ -461,8 +468,7 @@ typedef struct { Boolean autoComment; Boolean getMoveList; Boolean testLegality; - int borderXoffset; /* xboard only */ - int borderYoffset; /* xboard only */ + Boolean topLevel; /* xboard, top-level auxiliary windows */ Boolean titleInWindow; /* xboard only */ Boolean localLineEditing; /* WinBoard only */ Boolean zippyTalk; @@ -623,6 +629,7 @@ typedef struct { Boolean lowTimeWarning; /* [HGM] low time */ char *lowTimeWarningColor; + char *serverFileName; char *serverMovesName; Boolean suppressLoadMoves; int serverPause; @@ -653,6 +660,7 @@ typedef struct { char *fenOverride[ENGINES]; char *features[ENGINES]; char *featureDefaults; + char *sysOpen; Boolean keepAlive; /* [HGM] alive */ Boolean forceIllegal;/*[HGM] illegal */ Boolean noJoin; /* [HGM] join */ @@ -664,12 +672,15 @@ typedef struct { int evalThreshold; /* [HGM] evalGraph */ Boolean dropMenu; /* [HGM] pv */ Boolean markers; /* [HGM] markers */ + Boolean autoCopyPV; Boolean pieceMenu; Boolean sweepSelect; Boolean whitePOV; Boolean scoreWhite; Boolean pvSAN[ENGINES]; + int recentEngines; + char *recentEngineList; char *tourneyFile; char *defName; char *processes; @@ -682,6 +693,7 @@ typedef struct { int seedBase; Boolean roundSync; Boolean cycleSync; + Boolean numberTag; } AppData, *AppDataPtr; /* PGN tags (for showing in the game list) */ @@ -756,6 +768,8 @@ extern WindowPlacement wpMoveHistory; extern WindowPlacement wpGameList; extern WindowPlacement wpTags; +#define MAXENGINES 2000 + // [HGM] chat #define MAX_CHAT 5 extern int chatCount;