Sat Oct 31 14:24:14 2009 UTC ()
getline -> get_line


(tnn)
diff -r1.9 -r1.10 pkgsrc/games/gnuchess/distinfo
diff -r1.7 -r1.8 pkgsrc/games/gnuchess/patches/patch-ab
diff -r0 -r1.8 pkgsrc/games/gnuchess/patches/patch-ad

cvs diff -r1.9 -r1.10 pkgsrc/games/gnuchess/distinfo (expand / switch to unified diff)

--- pkgsrc/games/gnuchess/distinfo 2008/04/03 09:07:49 1.9
+++ pkgsrc/games/gnuchess/distinfo 2009/10/31 14:24:14 1.10
@@ -1,8 +1,9 @@ @@ -1,8 +1,9 @@
1$NetBSD: distinfo,v 1.9 2008/04/03 09:07:49 joerg Exp $ 1$NetBSD: distinfo,v 1.10 2009/10/31 14:24:14 tnn Exp $
2 2
3SHA1 (gnuchess-5.07.tar.gz) = 7dbaf957bfea9cf37fe393e1fec7306de0162a16 3SHA1 (gnuchess-5.07.tar.gz) = 7dbaf957bfea9cf37fe393e1fec7306de0162a16
4RMD160 (gnuchess-5.07.tar.gz) = 043ee9bfd9dacccd6c55905d4a1c390bf56ba603 4RMD160 (gnuchess-5.07.tar.gz) = 043ee9bfd9dacccd6c55905d4a1c390bf56ba603
5Size (gnuchess-5.07.tar.gz) = 234542 bytes 5Size (gnuchess-5.07.tar.gz) = 234542 bytes
6SHA1 (patch-aa) = 417c8ca61142d08c827d2ca760b5ffb0c1988099 6SHA1 (patch-aa) = 417c8ca61142d08c827d2ca760b5ffb0c1988099
7SHA1 (patch-ab) = 2c0658138b08bb9d5f066ac3df3217d5e336bf83 7SHA1 (patch-ab) = 05d484b3f3e911a5a90e8b86c0026a7fe70f0ae3
8SHA1 (patch-ac) = 4d5a9a3ea1e898745607347848d50cb5ed0d1880 8SHA1 (patch-ac) = 4d5a9a3ea1e898745607347848d50cb5ed0d1880
 9SHA1 (patch-ad) = 9917b31ff41a8c3e9bdf130f5315a12bbe3c3a12

cvs diff -r1.7 -r1.8 pkgsrc/games/gnuchess/patches/Attic/patch-ab (expand / switch to unified diff)

--- pkgsrc/games/gnuchess/patches/Attic/patch-ab 2006/04/03 17:53:00 1.7
+++ pkgsrc/games/gnuchess/patches/Attic/patch-ab 2009/10/31 14:24:14 1.8
@@ -1,12 +1,21 @@ @@ -1,12 +1,21 @@
1$NetBSD: patch-ab,v 1.7 2006/04/03 17:53:00 minskim Exp $ 1$NetBSD: patch-ab,v 1.8 2009/10/31 14:24:14 tnn Exp $
2 2
3--- src/common.h.orig 2003-06-30 04:28:38.000000000 -0700 3--- src/common.h.orig 2003-06-30 13:28:38.000000000 +0200
4+++ src/common.h 4+++ src/common.h
5@@ -716,7 +716,6 @@ void DBTest (void); 5@@ -716,7 +716,6 @@ void DBTest (void);
6  6
7 /* Input thread and thread function */ 7 /* Input thread and thread function */
8 #include <pthread.h> 8 #include <pthread.h>
9-extern pthread_t input_thread; 9-extern pthread_t input_thread;
10 void *input_func(void *); 10 void *input_func(void *);
11  11
12 /* 12 /*
 13@@ -745,7 +744,7 @@ void wait_for_input(void);
 14 * Input routine, initialized to one of the specific
 15 * input routines. The given argument is the prompt.
 16 */
 17-void (*getline) (char *);
 18+void (*get_line) (char *);
 19
 20 #define MAXSTR 128
 21 extern char inputstr[MAXSTR];

File Added: pkgsrc/games/gnuchess/patches/Attic/patch-ad
$NetBSD: patch-ad,v 1.8 2009/10/31 14:24:14 tnn Exp $

--- src/input.c.orig	2003-07-01 19:06:43.000000000 +0200
+++ src/input.c
@@ -127,7 +127,7 @@ void *input_func(void *arg __attribute__
 	      (RealGameCnt+1)/2 + 1 );
     }
     pthread_mutex_lock(&input_mutex);
-    getline(prompt);
+    get_line(prompt);
     input_status = INPUT_AVAILABLE;
     pthread_cond_signal(&input_cond);
     pthread_mutex_unlock(&input_mutex);
@@ -173,13 +173,13 @@ void InitInput(void)
 {
 #ifdef HAVE_LIBREADLINE
   if (isatty(STDIN_FILENO)) {
-    getline = getline_readline;
+    get_line = getline_readline;
     using_history();
   } else {
-    getline = getline_standard;
+    get_line = getline_standard;
   }
 #else
-  getline = getline_standard;
+  get_line = getline_standard;
 #endif
   /* Start input thread */
   pthread_create(&input_thread, NULL, input_func, NULL);