diff options
author | jtb <jtb@pkgsrc.org> | 2001-04-22 23:16:09 +0000 |
---|---|---|
committer | jtb <jtb@pkgsrc.org> | 2001-04-22 23:16:09 +0000 |
commit | a22b4f101c77a1701fd429cb0a61e75fc3c58e21 (patch) | |
tree | 3a11881f75cbf1f387d45dd9eb72e6aa3e0cf5fa /math/octave-current/patches | |
parent | 8cfa3a48dcd2fe049c6aad0515644a950191e9c0 (diff) | |
download | pkgsrc-a22b4f101c77a1701fd429cb0a61e75fc3c58e21.tar.gz |
Bad patch.
Diffstat (limited to 'math/octave-current/patches')
-rw-r--r-- | math/octave-current/patches/patch-am | 79 |
1 files changed, 29 insertions, 50 deletions
diff --git a/math/octave-current/patches/patch-am b/math/octave-current/patches/patch-am index a140ae453fa..40c0c61af31 100644 --- a/math/octave-current/patches/patch-am +++ b/math/octave-current/patches/patch-am @@ -1,70 +1,49 @@ -$NetBSD: patch-am,v 1.1 2001/04/22 22:58:47 jtb Exp $ +$NetBSD: patch-am,v 1.2 2001/04/22 23:16:09 jtb Exp $ ---- liboctave/oct-rl-edit.c.orig Sun Apr 22 23:54:15 2001 +--- liboctave/oct-rl-edit.c.orig Mon Apr 23 00:07:12 2001 +++ liboctave/oct-rl-edit.c -@@ -33,36 +33,20 @@ +@@ -33,20 +33,20 @@ #include "oct-rl-edit.h" --/* It would be nice if readline.h declared these, I think. */ -- --extern int rl_blink_matching_paren; -- --extern int screenheight; -- --extern int screenwidth; -- ++extern int screenheight; ++ ++extern int screenwidth; ++ int octave_rl_screen_height (void) { -- return screenheight; +- int rows, cols; +- rl_get_screen_size (&rows, &cols); +- return rows; ++ return screenheight; } int octave_rl_screen_width (void) { -- return screenwidth; +- int rows, cols; +- rl_get_screen_size (&rows, &cols); +- return cols; ++ return screenwidth; } void --octave_set_rl_blink_matching_paren_flag (int val) --{ -- rl_blink_matching_paren = val; --} -- --int --octave_get_rl_blink_matching_paren_flag (void) -+octave_rl_enable_paren_matching (int val) +@@ -93,7 +93,7 @@ { -- return rl_blink_matching_paren; -+ rl_variable_bind ("blink-matching-paren", val ? "1" : "0"); - } - - void -@@ -95,7 +79,7 @@ - void - octave_rl_newline (void) + if (rl_undo_list) + { +- rl_free_undo_list (); ++ free_undo_list (); + + rl_undo_list = 0; + } +@@ -221,7 +221,7 @@ + char ** + octave_rl_completion_matches (const char *text, rl_completer_fcn_ptr f) { -- rl_newline (); -+ rl_newline (1, '\n'); +- return rl_completion_matches (text, f); ++ return completion_matches (text, f); } - void -@@ -130,7 +114,7 @@ - init file to take advantage of the conditional parsing feature - based on rl_readline_name; */ - -- rl_re_read_init_file (); -+ rl_re_read_init_file (0, 0); - } - - char * -@@ -169,7 +153,7 @@ - if (f && *f) - rl_read_init_file (f); - else -- rl_re_read_init_file (); -+ rl_re_read_init_file (0, 0); - } - - void + char |