Project

General

Profile

Backport #5539 ยป readline.patch

nagachika (Tomoyuki Chikanaga), 11/04/2011 11:46 PM

View differences:

ext/readline/readline.c
1495 1495
    /* Allow conditional parsing of the ~/.inputrc file. */
1496 1496
    rl_readline_name = (char *)"Ruby";
1497 1497

  
1498
#if defined HAVE_RL_GETC_FUNCTION
1499
    rl_getc_function = readline_getc;
1500
    id_getbyte = rb_intern_const("getbyte");
1501
#elif defined HAVE_RL_EVENT_HOOK
1502
    rl_event_hook = readline_event;
1503
#endif
1504

  
1498 1505
    using_history();
1499 1506

  
1500 1507
    completion_proc = rb_intern(COMPLETION_PROC);
......
1640 1647
    rb_define_const(mReadline, "VERSION", version);
1641 1648

  
1642 1649
    rl_attempted_completion_function = readline_attempted_completion_function;
1643
#if defined HAVE_RL_GETC_FUNCTION
1644
    rl_getc_function = readline_getc;
1645
    id_getbyte = rb_intern_const("getbyte");
1646
#elif defined HAVE_RL_EVENT_HOOK
1647
    rl_event_hook = readline_event;
1648
#endif
1649 1650
#ifdef HAVE_RL_CATCH_SIGNALS
1650 1651
    rl_catch_signals = 0;
1651 1652
#endif