Project

General

Profile

Bug #7397 ยป readline_prompt_ignore_macros.patch

zzak (zzak _), 11/19/2012 12:56 PM

View differences:

ext/readline/extconf.rb
return super(func, headers)
end
def readline.have_macro(macro)
return super(macro, headers)
end
dir_config('curses')
dir_config('ncurses')
dir_config('termcap')
......
readline.have_func("clear_history")
readline.have_func("rl_redisplay")
readline.have_func("rl_insert_text")
readline.have_macro("RL_PROMPT_START_IGNORE")
readline.have_macro("RL_PROMPT_END_IGNORE")
create_makefile("readline")
ext/readline/readline.c
#define EDIT_LINE_LIBRARY_VERSION "EditLine wrapper"
#ifndef USE_INSERT_IGNORE_ESCAPE
# if !defined(HAVE_EDITLINE_READLINE_H) && defined(HAVE_RL_PROMPT_START_IGNORE) && defined(HAVE_RL_PROMPT_END_IGNORE)
# if !defined(HAVE_EDITLINE_READLINE_H) && defined(RL_PROMPT_START_IGNORE) && defined(RL_PROMPT_END_IGNORE)
# define USE_INSERT_IGNORE_ESCAPE 1
# else
# define USE_INSERT_IGNORE_ESCAPE 0
    (1-1/1)