gnuchess/gnuchess-getline.diff
Pavol Rusnak 7bf6b3d358 - updated gnuchess to (unofficial) version 5.07.94.1b
- updated to most recent book.dat
- removed obsolete getline patch
- added patches to fix a few rpmlint-warnings/errors
- added gnuchess-add_new_bookpath.diff so gnuchess finds the default
  opening book in /usr/share/gnuchess

- updated to (unofficial) version 5.07.9b by M. Vandenbergh
- added script "xgnuchess" to start xboard with gnuchess
  as first and second chess engine
- patches refreshed
- description updated

OBS-URL: https://build.opensuse.org/package/show/games/gnuchess?expand=0&rev=5
2011-04-15 12:14:20 +00:00

40 lines
1.1 KiB
Diff

--- src/common.h.orig 2009-10-26 09:54:40.000000000 +0100
+++ src/common.h 2010-01-11 19:58:43.000000000 +0100
@@ -752,7 +752,7 @@
* Input routine, initialized to one of the specific
* input routines. The given argument is the prompt.
*/
-void (*getline) (char *);
+void (*my_getline) (char *);
#define MAXSTR 128
extern char inputstr[MAXSTR];
--- src/input.c.orig 2009-09-28 15:39:17.000000000 +0200
+++ src/input.c 2010-01-11 19:58:43.000000000 +0100
@@ -136,7 +136,7 @@
(RealGameCnt+1)/2 + 1 );
}
pthread_mutex_lock(&input_mutex);
- getline(prompt);
+ my_getline(prompt);
input_status = INPUT_AVAILABLE;
pthread_cond_signal(&input_cond);
pthread_mutex_unlock(&input_mutex);
@@ -182,13 +182,13 @@
{
#ifdef HAVE_LIBREADLINE
if (isatty(STDIN_FILENO)) {
- getline = getline_readline;
+ my_getline = getline_readline;
using_history();
} else {
- getline = getline_standard;
+ my_getline = getline_standard;
}
#else
- getline = getline_standard;
+ my_getline = getline_standard;
#endif
/* Start input thread */
pthread_create(&input_thread, NULL, input_func, NULL);