X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=common.h;h=a48aee51d351fa47bc95d9191858c04a705e8f26;hb=e1edcbabb63e65d5d47c07a0836dd51d7e01de0e;hp=06e1c87c53c4fe91b7dd6a22032deab293969e7c;hpb=91d8e5853ca580769cc130aa6ea004869118d171;p=xboard.git diff --git a/common.h b/common.h index 06e1c87..a48aee5 100644 --- a/common.h +++ b/common.h @@ -1,11 +1,13 @@ /* * common.h -- Common definitions for X and Windows NT versions of XBoard - * $Id: common.h,v 2.1 2003/10/27 19:21:00 mann Exp $ * * Copyright 1991 by Digital Equipment Corporation, Maynard, - * Massachusetts. Enhancements Copyright - * 1992-2001,2002,2003,2004,2005,2006,2007,2008,2009 Free Software - * Foundation, Inc. + * Massachusetts. + * + * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, + * 2007, 2008, 2009 Free Software Foundation, Inc. + * + * Enhancements Copyright 2005 Alessandro Scotti * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: @@ -148,6 +150,7 @@ int pclose(FILE *); #define FIRST_HOST "localhost" #define SECOND_HOST "localhost" #define TELNET_PROGRAM "telnet" +#define DEF_BITMAP_DIR "/usr/share/games/xboard/bitmaps.xchess" /* AP: shouldn't be hardcoded directory, but better than nothing at the moment */ #define MATCH_MODE "False" #define INIT_STRING "new\nrandom\n" #define WHITE_STRING "white\ngo\n" @@ -290,6 +293,7 @@ typedef enum { VariantJanus, VariantSuper, VariantGreat, + VariantTwilight, VariantUnknown /* Catchall for other unknown variants */ } VariantClass; @@ -331,6 +335,7 @@ typedef enum { "janus",\ "super",\ "great",\ + "twilight",\ "unknown" \ } @@ -564,7 +569,10 @@ typedef struct { char *zippyVariants; int zippyMaxGames; int zippyReplayTimeout; /*seconds*/ + int zippyShortGame; /* [HGM] aborter */ #endif + Boolean lowTimeWarning; /* [HGM] low time */ + char *lowTimeWarningColor; char *serverMovesName; Boolean suppressLoadMoves; @@ -590,6 +598,13 @@ typedef struct { Boolean noGUI; /* [HGM] fast: suppress all display updates */ char *firstOptions; /* [HGM] options */ char *secondOptions; + char *fenOverride1; + char *fenOverride2; + Boolean keepAlive; /* [HGM] alive */ + Boolean forceIllegal;/*[HGM] illegal */ + Boolean noJoin; /* [HGM] join */ + char *wrapContSeq; /* continuation sequence when xboard wraps text */ + Boolean useInternalWrap; /* use internal wrapping -- noJoin usurps this if set */ } AppData, *AppDataPtr; /* [AS] PGN tags (for showing in the game list) */ @@ -604,10 +619,11 @@ typedef struct { #define GLT_TIME_CONTROL 't' #define GLT_VARIANT 'v' #define GLT_OUT_OF_BOOK 'a' +#define GLT_RESULT_COMMENT 'c' /* [HGM] rescom */ #define GLT_DEFAULT_TAGS "eprd" /* Event, players, result, date */ -#define GLT_ALL_TAGS "esdoprwbtva" +#define GLT_ALL_TAGS "esdoprwbtvac" #define PGN_OUT_OF_BOOK "Annotator" @@ -638,6 +654,11 @@ typedef struct { int holdingsWidth; /* number of files left and right of board, 0 or 2 */ } GameInfo; +// [HGM] chat +#define MAX_CHAT 3 +extern int chatCount; +extern char chatPartner[MAX_CHAT][MSG_SIZ]; + #endif