X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=common.h;h=c52cd9f189e0a3b5635e225dc8d7c18b67ca3419;hb=9dbe493e5795b3d96554a693aff44f56e435bc26;hp=61e2c4956f559c186c4afd7967c84ea073342a7d;hpb=f9b929eddb900bbbd09ecb80b47c9b9e00e4cfaa;p=xboard.git diff --git a/common.h b/common.h index 61e2c49..c52cd9f 100644 --- a/common.h +++ b/common.h @@ -396,6 +396,7 @@ typedef struct { char *computerString[ENGINES]; char *chessProgram[ENGINES]; char *directory[ENGINES]; + char *pgnName[ENGINES]; Boolean firstPlaysBlack; Boolean noChessProgram; char *host[ENGINES]; @@ -563,6 +564,7 @@ typedef struct { Boolean isUCI[ENGINES]; Boolean hasOwnBookUCI[ENGINES]; char * adapterCommand; + char * ucciAdapter; char * polyglotDir; Boolean usePolyglotBook; char * polyglotBook; @@ -629,6 +631,7 @@ typedef struct { char *egtFormats; int niceEngines; /* [HGM] nice */ char *logo[ENGINES];/* [HGM] logo */ + char *pairingEngine;/* [HGM] pairing */ Boolean autoLogo; Boolean noGUI; /* [HGM] fast: suppress all display updates */ char *engOptions[ENGINES]; /* [HGM] options */ @@ -644,6 +647,16 @@ typedef struct { Boolean markers; /* [HGM] markers */ Boolean pieceMenu; Boolean sweepSelect; + Boolean whitePOV; + + char *tourneyFile; + char *processes; + char *results; + char *participants; + int tourneyType; + int tourneyCycles; + Boolean roundSync; + Boolean cycleSync; } AppData, *AppDataPtr; /* PGN tags (for showing in the game list) */ @@ -723,6 +736,10 @@ extern WindowPlacement wpTags; extern int chatCount; extern char chatPartner[MAX_CHAT][MSG_SIZ]; +// [HGM] generally useful macros; there are way too many memory leaks... +#define FREE(x) if(x) free(x) +#define ASSIGN(x, y) if(x) free(x); x = strdup(y) + // [HGM] for now we use the kludge to redefine all the unstructured options by their array counterpart // in due time we would have to make the actual substitutions all through the source