From 266def07442d78b0841cd716422ff9a3774fdfaa Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 7 Jan 2010 19:05:17 +0100 Subject: [PATCH] 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. --- frontend.h | 1 + winboard/whistory.c | 2 +- winboard/winboard.c | 1 + xboard.c | 1 - 4 files changed, 3 insertions(+), 2 deletions(-) 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 -- 1.7.0.4