Make spacing consistent in *dsp.c, kill unused global hidden between funcs.
[gnushogi.git] / gnushogi / main.c
index 332a303..dabb8eb 100644 (file)
@@ -2,11 +2,14 @@
  * FILE: main.c
  *
  * ----------------------------------------------------------------------
- *
- * Copyright (c) 2012 Free Software Foundation
+ * Copyright (c) 1993, 1994, 1995 Matthias Mutz
+ * Copyright (c) 1999 Michael Vanier and the Free Software Foundation
  *
  * GNU SHOGI is based on GNU CHESS
  *
+ * Copyright (c) 1988, 1989, 1990 John Stanback
+ * Copyright (c) 1992 Free Software Foundation
+ *
  * This file is part of GNU SHOGI.
  *
  * GNU Shogi is free software; you can redistribute it and/or modify it
@@ -92,12 +95,13 @@ main (int argc, char **argv)
             break;
 #endif
 
+#ifdef HAVE_LIBCURSES
         case 'C':
             /* Curses interface. */
             display_type = DISPLAY_CURSES;
 
             break;
-
+#endif
 
         case 'h':
             /* Need the "+" syntax here... */
@@ -208,7 +212,7 @@ main (int argc, char **argv)
                 long j;
                 struct fileentry n;
 
-                printf(CP[66]);
+                fputs(CP[66], stdout);
                 n.f = n.t = 0;
                 n.flags = 0;
                 n.depth = 0;
@@ -242,7 +246,7 @@ main (int argc, char **argv)
                 int nr[MAXDEPTH];
                 struct fileentry n;
 
-                printf(CP[49]);
+                fputs(CP[49], stdout);
 
                 for (i = 0; i < MAXDEPTH; i++)
                     nr[i] = 0;
@@ -305,7 +309,7 @@ main (int argc, char **argv)
 
 
         default:
-            fprintf(stderr, CP[113]);
+            fputs(CP[113], stderr);
             exit(1);
         }