* ext/readline/readline.c: add the defined operator for bcc32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4cec316bbc
commit
05654dddc4
@ -1,3 +1,7 @@
|
|||||||
|
Thu Apr 17 11:10:59 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/readline/readline.c: add the defined operator for bcc32.
|
||||||
|
|
||||||
Wed Apr 16 00:14:06 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
Wed Apr 16 00:14:06 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
* misc/ruby-mode.el (ruby-special-char-p): should test at the
|
* misc/ruby-mode.el (ruby-special-char-p): should test at the
|
||||||
|
@ -53,10 +53,10 @@ readline_readline(argc, argv, self)
|
|||||||
buff = (char*)rb_protect((VALUE(*)_((VALUE)))readline, (VALUE)prompt,
|
buff = (char*)rb_protect((VALUE(*)_((VALUE)))readline, (VALUE)prompt,
|
||||||
&status);
|
&status);
|
||||||
if (status) {
|
if (status) {
|
||||||
#if READLINE_40_OR_LATER
|
#if defined READLINE_40_OR_LATER
|
||||||
/* restore terminal mode and signal handler*/
|
/* restore terminal mode and signal handler*/
|
||||||
rl_cleanup_after_signal();
|
rl_cleanup_after_signal();
|
||||||
#elif READLINE_21_OR_LATER
|
#elif defined READLINE_21_OR_LATER
|
||||||
/* restore terminal mode */
|
/* restore terminal mode */
|
||||||
(*rl_deprep_term_function)();
|
(*rl_deprep_term_function)();
|
||||||
#else
|
#else
|
||||||
@ -722,7 +722,7 @@ Init_readline()
|
|||||||
rb_define_singleton_method(ucomp, "call",
|
rb_define_singleton_method(ucomp, "call",
|
||||||
username_completion_proc_call, 1);
|
username_completion_proc_call, 1);
|
||||||
rb_define_const(mReadline, "USERNAME_COMPLETION_PROC", ucomp);
|
rb_define_const(mReadline, "USERNAME_COMPLETION_PROC", ucomp);
|
||||||
#if READLINE_21_OR_LATER
|
#if defined READLINE_21_OR_LATER
|
||||||
rb_define_const(mReadline, "VERSION", rb_str_new2(rl_library_version));
|
rb_define_const(mReadline, "VERSION", rb_str_new2(rl_library_version));
|
||||||
#else
|
#else
|
||||||
rb_define_const(mReadline, "VERSION",
|
rb_define_const(mReadline, "VERSION",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user