From 303e8deb5d11ae84a88acb76329f0ab75274101a Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Sat, 19 Oct 2013 17:48:45 +0200 Subject: [PATCH] Make spacing consistent in *dsp.c, kill unused global hidden between funcs. --- gnushogi/cursesdsp.c | 28 ---------------------------- gnushogi/rawdsp.c | 27 +++------------------------ 2 files changed, 3 insertions(+), 52 deletions(-) diff --git a/gnushogi/cursesdsp.c b/gnushogi/cursesdsp.c index d6c7cef..e15a394 100644 --- a/gnushogi/cursesdsp.c +++ b/gnushogi/cursesdsp.c @@ -90,7 +90,6 @@ ClearMessage(void) } - void gotoXY(short x, short y) { @@ -313,12 +312,10 @@ Curses_ShowStage(void) ClearEoln(); } - /**************************************** * End of trivial output routines. ****************************************/ - void Curses_Initialize(void) { @@ -345,7 +342,6 @@ Curses_ExitShogi(void) } - void Curses_Die(int sig) { @@ -365,7 +361,6 @@ Curses_Die(int sig) } - void Curses_TerminateSearch(int sig) { @@ -382,7 +377,6 @@ Curses_TerminateSearch(int sig) } - void Curses_help(void) { @@ -581,7 +575,6 @@ Curses_EditBoard(void) } - static void UpdateCatched() { @@ -633,7 +626,6 @@ UpdateCatched() } - void Curses_SearchStartStuff(short side) { @@ -650,7 +642,6 @@ Curses_SearchStartStuff(short side) } - void Curses_OutputMove(void) { @@ -716,7 +707,6 @@ Curses_OutputMove(void) } - void UpdateClocks(void) { @@ -755,7 +745,6 @@ UpdateClocks(void) } - void DrawPiece(short sq) { @@ -794,12 +783,9 @@ DrawPiece(short sq) } - - /* * Curses_ShowPostnValue(): must have called ExaminePosition() first */ - void Curses_ShowPostnValue(short sq) { @@ -825,7 +811,6 @@ Curses_ShowPostnValue(short sq) } - void Curses_ShowPostnValues(void) { @@ -846,7 +831,6 @@ Curses_ShowPostnValues(void) } - void Curses_UpdateDisplay(short f, short t, short redraw, short isspec) { @@ -958,9 +942,6 @@ Curses_UpdateDisplay(short f, short t, short redraw, short isspec) } -extern char *InPtr; - - void Curses_ChangeAlphaWindow(void) { @@ -971,7 +952,6 @@ Curses_ChangeAlphaWindow(void) } - void Curses_ChangeBetaWindow(void) { @@ -982,7 +962,6 @@ Curses_ChangeBetaWindow(void) } - void Curses_GiveHint(void) { @@ -1002,7 +981,6 @@ Curses_GiveHint(void) } - void Curses_ChangeSearchDepth(void) { @@ -1030,7 +1008,6 @@ Curses_SetContempt(void) } - void Curses_ChangeXwindow(void) { @@ -1039,7 +1016,6 @@ Curses_ChangeXwindow(void) } - void Curses_SelectLevel(char *sx) { @@ -1150,7 +1126,6 @@ Curses_SelectLevel(char *sx) } - void Curses_DoDebug(void) { @@ -1198,7 +1173,6 @@ Curses_DoDebug(void) } - void Curses_DoTable(short table[NO_SQUARES]) { @@ -1212,5 +1186,3 @@ Curses_DoTable(short table[NO_SQUARES]) } } - - diff --git a/gnushogi/rawdsp.c b/gnushogi/rawdsp.c index 1c43393..42ca071 100644 --- a/gnushogi/rawdsp.c +++ b/gnushogi/rawdsp.c @@ -121,6 +121,7 @@ Raw_ShowMessage(char *s) printf("%s\n", s); } + void Raw_AlwaysShowMessage(const char *format, ...) { @@ -131,6 +132,7 @@ Raw_AlwaysShowMessage(const char *format, ...) printf("\n"); } + void Raw_Printf(const char *format, ...) { @@ -140,6 +142,7 @@ Raw_Printf(const char *format, ...) va_end(ap); } + void Raw_doRequestInputString(const char* fmt, char* buffer) { @@ -212,7 +215,6 @@ Raw_ShowStage(void) * End of trivial output routines. ****************************************/ - void Raw_Initialize(void) { @@ -240,7 +242,6 @@ Raw_Initialize(void) } - void Raw_ExitShogi(void) { @@ -267,7 +268,6 @@ Raw_Die(int sig) } - void Raw_TerminateSearch(int sig) { @@ -282,7 +282,6 @@ Raw_TerminateSearch(int sig) } - void Raw_help(void) { @@ -363,12 +362,10 @@ Raw_help(void) } - /* * Set up a board position. Pieces are entered by typing the piece followed * by the location. For example, Nf3 will place a knight on square f3. */ - void Raw_EditBoard(void) { @@ -469,14 +466,11 @@ Raw_EditBoard(void) } - - /* * Set up a board position. * Nine lines of nine characters are used to setup the board. 9a-1a is the * first line. White pieces are represented by uppercase characters. */ - void SetupBoard(void) { @@ -540,7 +534,6 @@ Raw_SearchStartStuff(short side) } - void Raw_OutputMove(void) { @@ -699,7 +692,6 @@ Raw_UpdateDisplay(short f, short t, short redraw, short isspec) } - void Raw_ChangeAlphaWindow(void) { @@ -710,7 +702,6 @@ Raw_ChangeAlphaWindow(void) } - void Raw_ChangeBetaWindow(void) { @@ -721,7 +712,6 @@ Raw_ChangeBetaWindow(void) } - void Raw_GiveHint(void) { @@ -735,7 +725,6 @@ Raw_GiveHint(void) } - void Raw_SelectLevel(char *sx) { @@ -818,8 +807,6 @@ Raw_SelectLevel(char *sx) } - - void Raw_ChangeSearchDepth(void) { @@ -829,8 +816,6 @@ Raw_ChangeSearchDepth(void) } - - void Raw_ChangeHashDepth(void) { @@ -841,7 +826,6 @@ Raw_ChangeHashDepth(void) } - void Raw_SetContempt(void) { @@ -850,7 +834,6 @@ Raw_SetContempt(void) } - void Raw_ChangeXwindow(void) { @@ -863,7 +846,6 @@ Raw_ChangeXwindow(void) * Raw_ShowPostnValue(short sq) * must have called ExaminePosition() first */ - void Raw_ShowPostnValue(short sq) { @@ -885,7 +867,6 @@ Raw_ShowPostnValue(short sq) } - void Raw_DoDebug(void) { @@ -964,7 +945,6 @@ Raw_DoDebug(void) } - void Raw_DoTable(short table[NO_SQUARES]) { @@ -984,7 +964,6 @@ Raw_DoTable(short table[NO_SQUARES]) } - void Raw_ShowPostnValues(void) { -- 1.7.0.4