From: H.G. Muller Date: Sun, 18 Mar 2012 14:33:18 +0000 (+0100) Subject: Declare some shared global variables in backend.h X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=24e290d23d9be7bfc246940db91011e46ad480e5;p=xboard.git Declare some shared global variables in backend.h The vlobals twoBoards and partnerUp were only shared through an extern declaration in xboard.c --- diff --git a/backend.h b/backend.h index ae2baf5..2fc012f 100644 --- a/backend.h +++ b/backend.h @@ -439,6 +439,7 @@ extern int opponentKibitzes; // used by wengineo.c extern int errorExitStatus; extern char *recentEngines; extern char *comboLine; +extern Boolean partnerUp, twoBoards; void SettingsPopUp P((ChessProgramState *cps)); // [HGM] really in front-end, but CPS not known in frontend.h int WaitForEngine P((ChessProgramState *cps, DelayedEventCallback x)); void Load P((ChessProgramState *cps, int n)); diff --git a/xboard.c b/xboard.c index 934f903..aa848f9 100644 --- a/xboard.c +++ b/xboard.c @@ -1187,8 +1187,6 @@ ConvertToLine (int argc, char **argv) //-------------------------------------------------------------------------------------------- -extern Boolean twoBoards, partnerUp; - #ifdef IDSIZES // eventually, all layout determining code should go into a subroutine, but until then IDSIZE remains undefined #else