From 6030715dffdadf4402dccf6a8bf9966cfab2be1d Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Sat, 19 Oct 2013 21:33:37 +0200 Subject: [PATCH] Stop exporting Curses-internal functions to everyone. Possible since cursesdsp is now self-contained. --- gnushogi/cursesdsp.c | 19 ++++++++++--------- gnushogi/cursesdsp.h | 13 ------------- gnushogi/gnushogi.h | 3 --- 3 files changed, 10 insertions(+), 25 deletions(-) diff --git a/gnushogi/cursesdsp.c b/gnushogi/cursesdsp.c index 47c34d2..b278d46 100644 --- a/gnushogi/cursesdsp.c +++ b/gnushogi/cursesdsp.c @@ -74,13 +74,14 @@ char *DRAW; /* FIXME: change this name, puh-leeze! */ static void UpdateCatched(void); - +static void DrawPiece(short sq); +static void ShowScore(short score); /**************************************** * Trivial output functions. ****************************************/ -void +static void ClearEoln(void) { clrtoeol(); @@ -96,7 +97,7 @@ Curses_ClearScreen(void) } -void +static void ClearMessage(void) { gotoXY(TAB, 6); @@ -104,7 +105,7 @@ ClearMessage(void) } -void +static void gotoXY(short x, short y) { move(y - 1, x - 1); @@ -228,7 +229,7 @@ Curses_ShowPatternCount(short side, short n) } -void +static void ShowPlayers(void) { gotoXY(5, ((flag.reverse) ? (5 + 2*NO_ROWS) : 2)); @@ -238,7 +239,7 @@ ShowPlayers(void) } -void +static void Curses_ShowPrompt(void) { Curses_ShowSidetoMove(); @@ -299,7 +300,7 @@ Curses_ShowResults(short score, unsigned short *bstline, char ch) } -void +static void ShowScore(short score) { gotoXY(TAB, 5); @@ -721,7 +722,7 @@ Curses_OutputMove(void) } -void +static void UpdateClocks(void) { short m, s; @@ -759,7 +760,7 @@ UpdateClocks(void) } -void +static void DrawPiece(short sq) { char y; diff --git a/gnushogi/cursesdsp.h b/gnushogi/cursesdsp.h index d286b6d..db38ffa 100644 --- a/gnushogi/cursesdsp.h +++ b/gnushogi/cursesdsp.h @@ -78,17 +78,4 @@ void Curses_TerminateSearch(int sig); void Curses_UpdateDisplay(short f, short t, short redraw, short isspec); void Curses_help(void); - -/* The following are only found in cursesdsp.h: */ - -void ClearEoln(void); -void ClearMessage(void); -void DrawPiece(short sq); -void ShowHeader(void); -void ShowPlayers(void); -void ShowScore(short score); -void UpdateClocks(void); -void gotoXY(short x, short y); - #endif /* _CURSESDSP_H_ */ - diff --git a/gnushogi/gnushogi.h b/gnushogi/gnushogi.h index 367db6c..52a77ae 100644 --- a/gnushogi/gnushogi.h +++ b/gnushogi/gnushogi.h @@ -1047,9 +1047,6 @@ extern void ShowCurrentMove(short pnt, short f, short t); extern void ListGame(void); extern void ShowMessage(char *s); extern void ClearScreen(void); -extern void gotoXY(short x, short y); -extern void ClearEoln(void); -extern void DrawPiece(short sq); extern void UpdateClocks(void); extern void DoDebug(void); extern void DoTable(short table[NO_SQUARES]); -- 1.7.0.4