X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=common.h;h=ad52fb98075d4e6bc194fb56c594bef1780c92c6;hb=407cd1126c6c24d890359f1fe1686f6d90c0ad61;hp=6140d5e856deaf14666fcde7f2c2fbe0d0244633;hpb=eae7684295f1bd6a48e793a9d0e93f1ad6d6c573;p=xboard.git diff --git a/common.h b/common.h index 6140d5e..ad52fb9 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,8 +647,10 @@ typedef struct { Boolean markers; /* [HGM] markers */ Boolean pieceMenu; Boolean sweepSelect; + Boolean whitePOV; char *tourneyFile; + char *defName; char *processes; char *results; char *participants; @@ -732,6 +737,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