require '_h2ph_pre.ph';

no warnings 'redefine';

if(!defined ( &_READLINE_H_)) {
    eval 'sub _READLINE_H_ () {1;}' unless defined(&_READLINE_H_);
    if(defined(&__cplusplus)) {
    }
    if(defined ( &READLINE_LIBRARY)) {
	require 'rlstdc.ph';
	require 'rltypedefs.ph';
	require 'keymaps.ph';
	require 'tilde.ph';
    } else {
	require 'readline/rlstdc.ph';
	require 'readline/rltypedefs.ph';
	require 'readline/keymaps.ph';
	require 'readline/tilde.ph';
    }
    eval 'sub RL_READLINE_VERSION () {0x403;}' unless defined(&RL_READLINE_VERSION);
    eval 'sub RL_VERSION_MAJOR () {4;}' unless defined(&RL_VERSION_MAJOR);
    eval 'sub RL_VERSION_MINOR () {3;}' unless defined(&RL_VERSION_MINOR);
    eval("sub UNDO_DELETE () { 0; }") unless defined(&UNDO_DELETE);
    eval("sub UNDO_INSERT () { 1; }") unless defined(&UNDO_INSERT);
    eval("sub UNDO_BEGIN () { 2; }") unless defined(&UNDO_BEGIN);
    eval("sub UNDO_END () { 3; }") unless defined(&UNDO_END);
    if(defined(&__CYGWIN__)) {
    }
    if((defined ( &__STDC__) || defined ( &__cplusplus))  && defined ( &USE_VARARGS)  && defined ( &PREFER_STDARG)) {
    } else {
    }
    if(0) {
    }
    eval 'sub rl_symbolic_link_hook () { &rl_directory_completion_hook;}' unless defined(&rl_symbolic_link_hook);
    eval 'sub RL_PROMPT_START_IGNORE () {ord(\'\\001\');}' unless defined(&RL_PROMPT_START_IGNORE);
    eval 'sub RL_PROMPT_END_IGNORE () {ord(\'\\002\');}' unless defined(&RL_PROMPT_END_IGNORE);
    eval 'sub NO_MATCH () {0;}' unless defined(&NO_MATCH);
    eval 'sub SINGLE_MATCH () {1;}' unless defined(&SINGLE_MATCH);
    eval 'sub MULT_MATCH () {2;}' unless defined(&MULT_MATCH);
    eval 'sub RL_STATE_NONE () {0x;}' unless defined(&RL_STATE_NONE);
    eval 'sub RL_STATE_INITIALIZING () {0x1;}' unless defined(&RL_STATE_INITIALIZING);
    eval 'sub RL_STATE_INITIALIZED () {0x2;}' unless defined(&RL_STATE_INITIALIZED);
    eval 'sub RL_STATE_TERMPREPPED () {0x4;}' unless defined(&RL_STATE_TERMPREPPED);
    eval 'sub RL_STATE_READCMD () {0x8;}' unless defined(&RL_STATE_READCMD);
    eval 'sub RL_STATE_METANEXT () {0x10;}' unless defined(&RL_STATE_METANEXT);
    eval 'sub RL_STATE_DISPATCHING () {0x20;}' unless defined(&RL_STATE_DISPATCHING);
    eval 'sub RL_STATE_MOREINPUT () {0x40;}' unless defined(&RL_STATE_MOREINPUT);
    eval 'sub RL_STATE_ISEARCH () {0x80;}' unless defined(&RL_STATE_ISEARCH);
    eval 'sub RL_STATE_NSEARCH () {0x100;}' unless defined(&RL_STATE_NSEARCH);
    eval 'sub RL_STATE_SEARCH () {0x200;}' unless defined(&RL_STATE_SEARCH);
    eval 'sub RL_STATE_NUMERICARG () {0x400;}' unless defined(&RL_STATE_NUMERICARG);
    eval 'sub RL_STATE_MACROINPUT () {0x800;}' unless defined(&RL_STATE_MACROINPUT);
    eval 'sub RL_STATE_MACRODEF () {0x1000;}' unless defined(&RL_STATE_MACRODEF);
    eval 'sub RL_STATE_OVERWRITE () {0x2000;}' unless defined(&RL_STATE_OVERWRITE);
    eval 'sub RL_STATE_COMPLETING () {0x4000;}' unless defined(&RL_STATE_COMPLETING);
    eval 'sub RL_STATE_SIGHANDLER () {0x8000;}' unless defined(&RL_STATE_SIGHANDLER);
    eval 'sub RL_STATE_UNDOING () {0x10000;}' unless defined(&RL_STATE_UNDOING);
    eval 'sub RL_STATE_INPUTPENDING () {0x20000;}' unless defined(&RL_STATE_INPUTPENDING);
    eval 'sub RL_STATE_DONE () {0x80000;}' unless defined(&RL_STATE_DONE);
    eval 'sub RL_SETSTATE {
        my($x) = @_;
	    eval q(( &rl_readline_state |= ($x)));
    }' unless defined(&RL_SETSTATE);
    eval 'sub RL_UNSETSTATE {
        my($x) = @_;
	    eval q(( &rl_readline_state &= ~($x)));
    }' unless defined(&RL_UNSETSTATE);
    eval 'sub RL_ISSTATE {
        my($x) = @_;
	    eval q(( &rl_readline_state & ($x)));
    }' unless defined(&RL_ISSTATE);
    if(defined(&__cplusplus)) {
    }
}
1;
