X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwhistory.c;h=0a42f183ac8c32fa96adedd8d6529847a02d1c2c;hb=aae1b2706f58097dcdd1ee907e26add590d81df9;hp=497fa176b20f6e40827ce06a296df8899f5e233e;hpb=91d8e5853ca580769cc130aa6ea004869118d171;p=xboard.git diff --git a/winboard/whistory.c b/winboard/whistory.c index 497fa17..0a42f18 100644 --- a/winboard/whistory.c +++ b/winboard/whistory.c @@ -3,6 +3,8 @@ * * Author: Alessandro Scotti (Dec 2005) * + * Copyright 2005 Alessandro Scotti + * * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify @@ -32,33 +34,15 @@ #include #include "common.h" -#include "winboard.h" #include "frontend.h" #include "backend.h" +#include "winboard.h" #include "wsnap.h" -VOID MoveHistorySet( char movelist[][2*MOVE_LEN], int first, int last, int current, ChessProgramStats_Move * pvInfo ); -VOID MoveHistoryPopUp(); -VOID MoveHistoryPopDown(); -BOOL MoveHistoryIsUp(); - -/* Imports from backend.c */ -char * SavePart(char *str); - -/* Imports from winboard.c */ -extern HWND moveHistoryDialog; -extern BOOLEAN moveHistoryDialogUp; - -extern HINSTANCE hInst; -extern HWND hwndMain; - -extern WindowPlacement wpMoveHistory; - -extern BoardSize boardSize; - /* Module globals */ typedef char MoveHistoryString[ MOVE_LEN*2 ]; +static BOOLEAN moveHistoryDialogUp = FALSE; static int lastFirst = 0; static int lastLast = 0; @@ -468,7 +452,7 @@ VOID MoveHistorySet( char movelist[][2*MOVE_LEN], int first, int last, int curre } } -BOOL MoveHistoryIsUp() +Boolean MoveHistoryIsUp() { return moveHistoryDialogUp; }