Add secondry adapter command for UCCI or USI
[xboard.git] / common.h
index 6140d5e..35c38fb 100644 (file)
--- 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;
@@ -644,6 +646,7 @@ typedef struct {
     Boolean markers;    /* [HGM] markers   */
     Boolean pieceMenu;
     Boolean sweepSelect;
+    Boolean whitePOV;
 
     char *tourneyFile;
     char *processes;
@@ -732,6 +735,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