require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&HIST_VERSION)) {
    if(!defined(&__PROTO__)) {
	require 'prototyped.ph';
    }
    if(!defined(&__LINKAGE__)) {
	eval 'sub __LINKAGE__ () {1;}' unless defined(&__LINKAGE__);
    }
    require 'ast.ph';
    eval 'sub HIST_CHAR () {ord(\'!\');}' unless defined(&HIST_CHAR);
    eval 'sub HIST_VERSION () {1;}' unless defined(&HIST_VERSION);
    if(defined(&_HIST_PRIVATE)) {
    }
    eval 'sub hist_min {
        my($hp) = @_;
	    eval q((( &_Hist=((($hp)-> &histind-($hp)-> &histsize)))>=0? &_Hist:0));
    }' unless defined(&hist_min);
    eval 'sub hist_max {
        my($hp) = @_;
	    eval q(((($hp)-> &histind)));
    }' unless defined(&hist_max);
    if((defined(&SHOPT_ESH) ? &SHOPT_ESH : undef)) {
    }
}
1;
