From 76d6ce3e30483a7cd930abfe14e966bf853ae498 Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 21 Apr 2014 18:17:35 +0000 Subject: Fix readline use. --- math/genius/distinfo | 4 +++- .../patches/patch-src_genius-readline-helper.c | 23 ++++++++++++++++++++++ math/genius/patches/patch-src_inter.c | 12 +++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 math/genius/patches/patch-src_genius-readline-helper.c create mode 100644 math/genius/patches/patch-src_inter.c (limited to 'math') diff --git a/math/genius/distinfo b/math/genius/distinfo index 504c127a4d7..35539940587 100644 --- a/math/genius/distinfo +++ b/math/genius/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.19 2013/10/27 20:35:48 joerg Exp $ +$NetBSD: distinfo,v 1.20 2014/04/21 18:17:35 joerg Exp $ SHA1 (genius-1.0.17.tar.gz) = 884a12db62de68aa90b078ba9baa124f73c44f51 RMD160 (genius-1.0.17.tar.gz) = 17b6fa3fddf65f4bab8e0d7721f85ea8a666d838 @@ -7,3 +7,5 @@ SHA1 (patch-configure) = a1431b1e521c35eea3df1acc16415806b54f58e7 SHA1 (patch-configure.in) = 73fcc7ba580b7f575bd16fdcf12fe81518904379 SHA1 (patch-gtkextra_gtkplot.c) = 3ea37b0a15454b5d81d62b93dd4a70828259d97f SHA1 (patch-gtkextra_gtkplotsurface.c) = 5f1e98dc7268ebef3a5edf04496a92b4f620114c +SHA1 (patch-src_genius-readline-helper.c) = 957f2241399a9092e6634b3c105ce7e487bfca07 +SHA1 (patch-src_inter.c) = 619a0f553acc0c30960cebfc4fa10146baac5dc4 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; + } -- cgit v1.2.3