From 01c318db2b5ccdd1b9f6b4eb442457a509e5f4a1 Mon Sep 17 00:00:00 2001 From: tnn Date: Sat, 31 Oct 2009 14:24:14 +0000 Subject: getline -> get_line --- games/gnuchess/distinfo | 5 +++-- games/gnuchess/patches/patch-ab | 13 +++++++++++-- games/gnuchess/patches/patch-ad | 30 ++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 games/gnuchess/patches/patch-ad (limited to 'games') diff --git a/games/gnuchess/distinfo b/games/gnuchess/distinfo index 60e5838a53c..dbcd420a08f 100644 --- a/games/gnuchess/distinfo +++ b/games/gnuchess/distinfo @@ -1,8 +1,9 @@ -$NetBSD: distinfo,v 1.9 2008/04/03 09:07:49 joerg Exp $ +$NetBSD: distinfo,v 1.10 2009/10/31 14:24:14 tnn Exp $ SHA1 (gnuchess-5.07.tar.gz) = 7dbaf957bfea9cf37fe393e1fec7306de0162a16 RMD160 (gnuchess-5.07.tar.gz) = 043ee9bfd9dacccd6c55905d4a1c390bf56ba603 Size (gnuchess-5.07.tar.gz) = 234542 bytes SHA1 (patch-aa) = 417c8ca61142d08c827d2ca760b5ffb0c1988099 -SHA1 (patch-ab) = 2c0658138b08bb9d5f066ac3df3217d5e336bf83 +SHA1 (patch-ab) = 05d484b3f3e911a5a90e8b86c0026a7fe70f0ae3 SHA1 (patch-ac) = 4d5a9a3ea1e898745607347848d50cb5ed0d1880 +SHA1 (patch-ad) = 9917b31ff41a8c3e9bdf130f5315a12bbe3c3a12 diff --git a/games/gnuchess/patches/patch-ab b/games/gnuchess/patches/patch-ab index b9f5de88f34..26ada2c6933 100644 --- a/games/gnuchess/patches/patch-ab +++ b/games/gnuchess/patches/patch-ab @@ -1,6 +1,6 @@ -$NetBSD: patch-ab,v 1.7 2006/04/03 17:53:00 minskim Exp $ +$NetBSD: patch-ab,v 1.8 2009/10/31 14:24:14 tnn Exp $ ---- src/common.h.orig 2003-06-30 04:28:38.000000000 -0700 +--- src/common.h.orig 2003-06-30 13:28:38.000000000 +0200 +++ src/common.h @@ -716,7 +716,6 @@ void DBTest (void); @@ -10,3 +10,12 @@ $NetBSD: patch-ab,v 1.7 2006/04/03 17:53:00 minskim Exp $ void *input_func(void *); /* +@@ -745,7 +744,7 @@ void wait_for_input(void); + * Input routine, initialized to one of the specific + * input routines. The given argument is the prompt. + */ +-void (*getline) (char *); ++void (*get_line) (char *); + + #define MAXSTR 128 + extern char inputstr[MAXSTR]; diff --git a/games/gnuchess/patches/patch-ad b/games/gnuchess/patches/patch-ad new file mode 100644 index 00000000000..927243fe26d --- /dev/null +++ b/games/gnuchess/patches/patch-ad @@ -0,0 +1,30 @@ +$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); -- cgit v1.2.3