updated copyright for 2016
Updated copyright notice to 2015
Updated copyright notice to 2014
removed trailing whitespace
Updated copyright notice to 2013
code cleanup: make function definition confirm to GNU coding style change everything in the main directory to void funcname (int a, int b) format
Updated copyright notice to 2012
Force Move History refresh after loading/reverting variation The Move History window was not refreshed after switching to or from a variation if that variation happened to have the same length as the main line. Now a change in storedGames since the previous refresh will force a full refresh to avoid this. For this to work, storedGames did have to be decremented after ToNrEvent in PopInner, because ToNrEvent calls HistorySet before the history is restored, so we don't want it to snatch away the full refresh. A call to HistorySet had to be added after PopInner is done restoring the move history.
Cure flicker in Move History window, fix highlighting The highlighting of the current move in the Move List window by selecting it did not always work, because some other windows were clearing their text widgets by selecting the contents and killing it, thus snatching the selection away. This has been changed to setting XtNstring to an empty string as a method for clearing without side effects on the selection. As a bonus the Engine Output window now also no longer has the black flicker on clearing it. In addition, triggering a scroll by setting the insertion point to the end of the text caused excessive flicker in the Move List window, apparently clearing it and redrawing from scratch, (even if there was no scroll motion), to the point where on my slow laptop the move history stayed entirely blank during a rapid succession of moves. This has been combatted by using the end-of-line action procedure (which does not seem to suffer from this) to put the insertion point at the end, when we need to scroll to close to the end.
Fix crash on clearing new Move List window When a new game started and a previous game had filled the Move List window, a crash occurred because an attempt was made to undo the highlighting of a no-longer-existing move, and then scrolling to it.
removed check and #includes for malloc.h, since it's not needed hopefully this doesn't break things on non-linux systems. OS X seems to be ok, not sure about others ;)
check if malloc.h is present before including it OS X 10.6 doesn't have malloc.h, so it complained.
security fix: replaced strcpy with safeStrCpy from backend.c see comment in backend.c on how to use safeStrCpy. This was already added by AS, but only used in 3 places.
Refactoring of move-history code The WinBoard code in whistory.c was split in a front-end part (remaining in whistory.c) and a back-end part (now in history.c in the xboard directory). This to allow easy porting to other platforms.