summaryrefslogtreecommitdiff
path: root/ext/readline/extconf.rb
diff options
context:
space:
mode:
authorkouji <kouji@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-01 15:04:37 +0000
committerkouji <kouji@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-01 15:04:37 +0000
commit7eb66d1c7b982e0888b25423ad732ea3effff18e (patch)
treea2552ea797c8dbabfa9edd0801fbcddfd0546d08 /ext/readline/extconf.rb
parent95cd2c11b994cd20f0a23c340127b0a424e24bdf (diff)
* ext/readline/extconf.rb: checked to have clear_history in
readline library. * ext/readline/readline.c (hist_get, hist_each, Init_readline): The offset specified for the argument of history_get() might be different in GNU Readline and libedit. If use libedit, it was corrected that the computational method of the offset specified for the argument of history_get() when the Readline module was initialized was decided. (hist_get, hist_set): If use libedit, accesses first an input content in history when specifies the negative offset for the argument of history_get() or replace_history_entry(). Then checks the offset is negative in ruby. (rb_remove_history): When compiling, it corrects it to warning when libedit is used. (hist_clear, Init_readline): added Readline::HISTORY.clear method. [ruby-dev:35551] * test/readline/test_readline_history.rb: added unit test for Readline::HISTORY. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline/extconf.rb')
-rw-r--r--ext/readline/extconf.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/readline/extconf.rb b/ext/readline/extconf.rb
index cd500ceec8..84fb9b14a6 100644
--- a/ext/readline/extconf.rb
+++ b/ext/readline/extconf.rb
@@ -66,4 +66,5 @@ have_readline_func("rl_vi_editing_mode")
have_readline_func("rl_emacs_editing_mode")
have_readline_func("replace_history_entry")
have_readline_func("remove_history")
+have_readline_func("clear_history")
create_makefile("readline")