Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
gnuchess
gnuchess-getline.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gnuchess-getline.diff of Package gnuchess
--- src/common.h +++ src/common.h @@ -745,7 +745,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 +++ src/input.c @@ -127,7 +127,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); @@ -173,13 +173,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);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor