X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=history.c;h=a1f82fd947896de1bb2ceafbbb4e11ab6146b11f;hb=4e062d14429ed3a3a251c971690bade4c8cba946;hp=c5563254e9ff72df91ad2caf812b7137478d6df4;hpb=e70077aab0199817f37aef9ed0bdba1bbca93b45;p=xboard.git diff --git a/history.c b/history.c index c556325..a1f82fd 100644 --- a/history.c +++ b/history.c @@ -72,7 +72,8 @@ static HistoryMove histMoves[ MAX_MOVES ]; /* Note: in the following code a "Memo" is a Rich Edit control (it's Delphi lingo) */ // back-end after replacing Windows data-types by equivalents -static Boolean OnlyCurrentPositionChanged() +static Boolean +OnlyCurrentPositionChanged () { Boolean result = FALSE; @@ -98,7 +99,8 @@ static Boolean OnlyCurrentPositionChanged() } // back-end, after replacing Windows data types -static Boolean OneMoveAppended() +static Boolean +OneMoveAppended () { Boolean result = FALSE; @@ -117,7 +119,8 @@ static Boolean OneMoveAppended() } // back-end, now that color and font-style are passed as numbers -static void AppendMoveToMemo( int index ) +static void +AppendMoveToMemo (int index) { char buf[64]; @@ -152,7 +155,8 @@ static void AppendMoveToMemo( int index ) } // back-end -void RefreshMemoContent() +void +RefreshMemoContent () { int i; @@ -164,7 +168,8 @@ void RefreshMemoContent() } // back-end part taken out of HighlightMove to determine character positions -static void DoHighlight(int index, int onoff) +static void +DoHighlight (int index, int onoff) { if( index >= 0 && index < MAX_MOVES ) { HighlightMove( histMoves[index].memoOffset, @@ -173,7 +178,8 @@ static void DoHighlight(int index, int onoff) } // back-end, now that a wrapper is provided for the front-end code to do the actual scrolling -void MemoContentUpdated() +void +MemoContentUpdated () { int caretPos; @@ -202,7 +208,8 @@ void MemoContentUpdated() } // back-end. Must be called as double-click call-back on move-history text edit -void FindMoveByCharIndex( int char_index ) +void +FindMoveByCharIndex (int char_index) { int index; @@ -216,7 +223,8 @@ void FindMoveByCharIndex( int char_index ) } // back-end. In WinBoard called by call-back, but could be called directly by SetIfExists? -void UpdateMoveHistory() +void +UpdateMoveHistory () { /* Update the GUI */ if( OnlyCurrentPositionChanged() ) { @@ -233,7 +241,8 @@ void UpdateMoveHistory() } // back-end -void MoveHistorySet( char movelist[][2*MOVE_LEN], int first, int last, int current, ChessProgramStats_Move * pvInfo ) +void +MoveHistorySet (char movelist[][2*MOVE_LEN], int first, int last, int current, ChessProgramStats_Move * pvInfo) { /* [AS] Danger! For now we rely on the movelist parameter being a static variable! */