Fix build of --with-curses mode.
[gnushogi.git] / gnushogi / cursesdsp.c
index 47c34d2..412bdc0 100644 (file)
@@ -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,18 +97,18 @@ Curses_ClearScreen(void)
 }
 
 
-void
-ClearMessage(void)
+static void
+gotoXY(short x, short y)
 {
-    gotoXY(TAB, 6);
-    ClearEoln();
+    move(y - 1, x - 1);
 }
 
 
-void
-gotoXY(short x, short y)
+static void
+ClearMessage(void)
 {
-    move(y - 1, x - 1);
+    gotoXY(TAB, 6);
+    ClearEoln();
 }
 
 
@@ -228,7 +229,7 @@ Curses_ShowPatternCount(short side, short n)
 }
 
 
-void
+static void
 ShowPlayers(void)
 {
     gotoXY(5, ((flag.reverse) ? (5 + 2*NO_ROWS) : 2));
@@ -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;
@@ -1278,12 +1279,15 @@ Curses_ElapsedTime(ElapsedTime_mode iop)
             time0 = current_time;
         }
 
-        if (!NOT_CURSES)
-        {
 #ifdef QUIETBACKGROUND
-            if (!background)
+        if (!background)
 #endif
-                UpdateClocks();
-        }
+            UpdateClocks();
     }
 }
+
+void
+Curses_SetupBoard(void)
+{
+    Curses_ShowMessage("'setup' command is not supported in Cursesmode");
+}