diff options
Diffstat (limited to 'math/genius/patches')
-rw-r--r-- | math/genius/patches/patch-src_genius-readline-helper.c | 23 | ||||
-rw-r--r-- | math/genius/patches/patch-src_inter.c | 12 |
2 files changed, 35 insertions, 0 deletions
diff --git a/math/genius/patches/patch-src_genius-readline-helper.c b/math/genius/patches/patch-src_genius-readline-helper.c new file mode 100644 index 00000000000..3e0f010f3fb --- /dev/null +++ b/math/genius/patches/patch-src_genius-readline-helper.c @@ -0,0 +1,23 @@ +$NetBSD: patch-src_genius-readline-helper.c,v 1.1 2014/04/21 18:17:35 joerg Exp $ + +--- src/genius-readline-helper.c.orig 2014-04-20 18:20:05.000000000 +0000 ++++ src/genius-readline-helper.c +@@ -104,7 +104,7 @@ plugin_generator (const char *text, int + /* Note: keep in sync with inter.c */ + /* FIXME: make this common */ + static char ** +-tab_completion (char *text, int start, int end) ++tab_completion (const char *text, int start, int end) + { + char *p; + for(p=rl_line_buffer;*p==' ' || *p=='\t';p++) +@@ -182,8 +182,7 @@ main(int argc, char *argv[]) + rl_catch_sigwinch = 1; + rl_terminal_name = "xterm"; + rl_readline_name = "Genius"; +- rl_attempted_completion_function = +- (CPPFunction *)tab_completion; ++ rl_attempted_completion_function = tab_completion; + + while(fgets(buf,4096,infp)) { + int count; diff --git a/math/genius/patches/patch-src_inter.c b/math/genius/patches/patch-src_inter.c new file mode 100644 index 00000000000..87736a9c9b6 --- /dev/null +++ b/math/genius/patches/patch-src_inter.c @@ -0,0 +1,12 @@ +$NetBSD: patch-src_inter.c,v 1.1 2014/04/21 18:17:35 joerg Exp $ + +--- src/inter.c.orig 2014-04-20 18:19:20.000000000 +0000 ++++ src/inter.c +@@ -366,6 +366,5 @@ void + init_inter(void) + { + rl_readline_name = "Genius"; +- rl_attempted_completion_function = +- (CPPFunction *)tab_completion; ++ rl_attempted_completion_function = tab_completion; + } |