From: H.G. Muller Date: Thu, 7 Jan 2010 18:05:17 +0000 (+0100) Subject: Harmonize declarations of XBoard and WinBoard X-Git-Tag: master-20100118~21 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=266def07442d78b0841cd716422ff9a3774fdfaa;p=xboard.git Harmonize declarations of XBoard and WinBoard The engine-exit and settings patches make some stuff common to WinBoard and XBoard, which needed to be harmonized, and is moved to frontend.h. --- diff --git a/frontend.h b/frontend.h index ea2f842..3e3e0b4 100644 --- a/frontend.h +++ b/frontend.h @@ -209,5 +209,6 @@ void EvalGraphPopUp P((void)); void EvalGraphPopDown P((void)); Boolean EvalGraphIsUp P((void)); int EvalGraphDialogExists P((void)); +Boolean MoveHistoryIsUp P((void)); #endif diff --git a/winboard/whistory.c b/winboard/whistory.c index 933359c..0a42f18 100644 --- a/winboard/whistory.c +++ b/winboard/whistory.c @@ -452,7 +452,7 @@ VOID MoveHistorySet( char movelist[][2*MOVE_LEN], int first, int last, int curre } } -BOOL MoveHistoryIsUp() +Boolean MoveHistoryIsUp() { return moveHistoryDialogUp; } diff --git a/winboard/winboard.c b/winboard/winboard.c index bf23768..0d33b09 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -153,6 +153,7 @@ char *programName; char *settingsFileName; Boolean saveSettingsOnExit; char installDir[MSG_SIZ]; +int errorExitStatus; BoardSize boardSize; Boolean chessProgram; diff --git a/xboard.c b/xboard.c index 88bc31d..0dd023d 100644 --- a/xboard.c +++ b/xboard.c @@ -1258,7 +1258,6 @@ BoardToTop() #define SEPCHAR " " // these two must some day move to frontend.h, when they are implemented -Boolean MoveHistoryIsUp(); Boolean GameListIsUp(); // The option definition and parsing code common to XBoard and WinBoard is collected in this file