blob: 856e5c3672148a68cc330b50004b43711094f481 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
--- cli/input.cc.orig Wed Aug 31 05:57:33 2005
+++ cli/input.cc Sun Mar 19 20:35:44 2006
@@ -49,7 +49,6 @@
// temp fix to over come 23jan05 changes to configure script that prevent
// readline from being found on older systems.
#define HAVE_READLINE
-#define HAVE_NSCLEAN_READLINE
#endif
@@ -899,7 +898,7 @@
win32_fd_to_raw(fileno(stdin));
#endif
- rl_getc_function = gpsim_rl_getc;
+ rl_getc_function = (Function *) gpsim_rl_getc;
channel = g_io_channel_unix_new (fileno(stdin));
#ifdef _WIN32
@@ -915,10 +914,10 @@
#else
g_io_add_watch (channel, G_IO_IN, keypressed, NULL);
#endif
- rl_callback_handler_install (prompt, have_line);
+ rl_callback_handler_install ((char *) prompt, (VFunction *) have_line);
/* Tell the completer that we want a crack first. */
- rl_attempted_completion_function = gpsim_completion;
+ rl_attempted_completion_function = (CPPFunction *) gpsim_completion;
#endif //HAVE_READLINE
}
|