Some code refactoring and cleanup; one small bug fix
[xboard.git] / winboard / whistory.c
index 73ae025..933359c 100644 (file)
 #include <dlgs.h>\r
 \r
 #include "common.h"\r
-#include "winboard.h"\r
 #include "frontend.h"\r
 #include "backend.h"\r
+#include "winboard.h"\r
 \r
 #include "wsnap.h"\r
 \r
-VOID MoveHistorySet( char movelist[][2*MOVE_LEN], int first, int last, int current, ChessProgramStats_Move * pvInfo );\r
-VOID MoveHistoryPopUp();\r
-VOID MoveHistoryPopDown();\r
-BOOL MoveHistoryIsUp();\r
-\r
-/* Imports from backend.c */\r
-char * SavePart(char *str);\r
-\r
-/* Imports from winboard.c */\r
-extern HWND moveHistoryDialog;\r
-extern BOOLEAN moveHistoryDialogUp;\r
-\r
-extern HINSTANCE hInst;\r
-extern HWND hwndMain;\r
-\r
-extern WindowPlacement wpMoveHistory;\r
-\r
-extern BoardSize boardSize;\r
-\r
 /* Module globals */\r
 typedef char MoveHistoryString[ MOVE_LEN*2 ];\r
+static BOOLEAN moveHistoryDialogUp = FALSE;\r
 \r
 static int lastFirst = 0;\r
 static int lastLast = 0;\r