require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&FORM_H)) {
    eval 'sub FORM_H () {1;}' unless defined(&FORM_H);
    require 'sys/queue.ph';
    require 'stdarg.ph';
    require 'curses.ph';
    require 'eti.ph';
    eval 'sub NO_JUSTIFICATION () {(0);}' unless defined(&NO_JUSTIFICATION);
    eval 'sub JUSTIFY_RIGHT () {(1);}' unless defined(&JUSTIFY_RIGHT);
    eval 'sub JUSTIFY_LEFT () {(2);}' unless defined(&JUSTIFY_LEFT);
    eval 'sub JUSTIFY_CENTER () {(3);}' unless defined(&JUSTIFY_CENTER);
    eval 'sub MIN_JUST_STYLE () { &NO_JUSTIFICATION;}' unless defined(&MIN_JUST_STYLE);
    eval 'sub MAX_JUST_STYLE () { &JUSTIFY_CENTER;}' unless defined(&MAX_JUST_STYLE);
    eval 'sub O_BS_OVERLOAD () {(0x1);}' unless defined(&O_BS_OVERLOAD);
    eval 'sub O_NL_OVERLOAD () {(0x2);}' unless defined(&O_NL_OVERLOAD);
    eval 'sub O_VISIBLE () {(0x1);}' unless defined(&O_VISIBLE);
    eval 'sub O_ACTIVE () {(0x2);}' unless defined(&O_ACTIVE);
    eval 'sub O_PUBLIC () {(0x4);}' unless defined(&O_PUBLIC);
    eval 'sub O_EDIT () {(0x8);}' unless defined(&O_EDIT);
    eval 'sub O_WRAP () {(0x10);}' unless defined(&O_WRAP);
    eval 'sub O_BLANK () {(0x20);}' unless defined(&O_BLANK);
    eval 'sub O_AUTOSKIP () {(0x40);}' unless defined(&O_AUTOSKIP);
    eval 'sub O_NULLOK () {(0x80);}' unless defined(&O_NULLOK);
    eval 'sub O_STATIC () {(0x100);}' unless defined(&O_STATIC);
    eval 'sub O_PASSOK () {(0x200);}' unless defined(&O_PASSOK);
    eval 'sub O_REFORMAT () {(0x400);}' unless defined(&O_REFORMAT);
    eval 'sub REQ_MIN_REQUEST () {( &KEY_MAX + 0x101);}' unless defined(&REQ_MIN_REQUEST);
    eval 'sub REQ_NEXT_PAGE () {( &KEY_MAX + 0x101);}' unless defined(&REQ_NEXT_PAGE);
    eval 'sub REQ_PREV_PAGE () {( &KEY_MAX + 0x102);}' unless defined(&REQ_PREV_PAGE);
    eval 'sub REQ_FIRST_PAGE () {( &KEY_MAX + 0x103);}' unless defined(&REQ_FIRST_PAGE);
    eval 'sub REQ_LAST_PAGE () {( &KEY_MAX + 0x104);}' unless defined(&REQ_LAST_PAGE);
    eval 'sub REQ_NEXT_FIELD () {( &KEY_MAX + 0x105);}' unless defined(&REQ_NEXT_FIELD);
    eval 'sub REQ_PREV_FIELD () {( &KEY_MAX + 0x106);}' unless defined(&REQ_PREV_FIELD);
    eval 'sub REQ_FIRST_FIELD () {( &KEY_MAX + 0x107);}' unless defined(&REQ_FIRST_FIELD);
    eval 'sub REQ_LAST_FIELD () {( &KEY_MAX + 0x108);}' unless defined(&REQ_LAST_FIELD);
    eval 'sub REQ_SNEXT_FIELD () {( &KEY_MAX + 0x109);}' unless defined(&REQ_SNEXT_FIELD);
    eval 'sub REQ_SPREV_FIELD () {( &KEY_MAX + 0x10a);}' unless defined(&REQ_SPREV_FIELD);
    eval 'sub REQ_SFIRST_FIELD () {( &KEY_MAX + 0x10b);}' unless defined(&REQ_SFIRST_FIELD);
    eval 'sub REQ_SLAST_FIELD () {( &KEY_MAX + 0x10c);}' unless defined(&REQ_SLAST_FIELD);
    eval 'sub REQ_LEFT_FIELD () {( &KEY_MAX + 0x10d);}' unless defined(&REQ_LEFT_FIELD);
    eval 'sub REQ_RIGHT_FIELD () {( &KEY_MAX + 0x10e);}' unless defined(&REQ_RIGHT_FIELD);
    eval 'sub REQ_UP_FIELD () {( &KEY_MAX + 0x10f);}' unless defined(&REQ_UP_FIELD);
    eval 'sub REQ_DOWN_FIELD () {( &KEY_MAX + 0x110);}' unless defined(&REQ_DOWN_FIELD);
    eval 'sub REQ_NEXT_CHAR () {( &KEY_MAX + 0x111);}' unless defined(&REQ_NEXT_CHAR);
    eval 'sub REQ_PREV_CHAR () {( &KEY_MAX + 0x112);}' unless defined(&REQ_PREV_CHAR);
    eval 'sub REQ_NEXT_LINE () {( &KEY_MAX + 0x113);}' unless defined(&REQ_NEXT_LINE);
    eval 'sub REQ_PREV_LINE () {( &KEY_MAX + 0x114);}' unless defined(&REQ_PREV_LINE);
    eval 'sub REQ_NEXT_WORD () {( &KEY_MAX + 0x115);}' unless defined(&REQ_NEXT_WORD);
    eval 'sub REQ_PREV_WORD () {( &KEY_MAX + 0x116);}' unless defined(&REQ_PREV_WORD);
    eval 'sub REQ_BEG_FIELD () {( &KEY_MAX + 0x117);}' unless defined(&REQ_BEG_FIELD);
    eval 'sub REQ_END_FIELD () {( &KEY_MAX + 0x118);}' unless defined(&REQ_END_FIELD);
    eval 'sub REQ_BEG_LINE () {( &KEY_MAX + 0x119);}' unless defined(&REQ_BEG_LINE);
    eval 'sub REQ_END_LINE () {( &KEY_MAX + 0x11a);}' unless defined(&REQ_END_LINE);
    eval 'sub REQ_LEFT_CHAR () {( &KEY_MAX + 0x11b);}' unless defined(&REQ_LEFT_CHAR);
    eval 'sub REQ_RIGHT_CHAR () {( &KEY_MAX + 0x11c);}' unless defined(&REQ_RIGHT_CHAR);
    eval 'sub REQ_UP_CHAR () {( &KEY_MAX + 0x11d);}' unless defined(&REQ_UP_CHAR);
    eval 'sub REQ_DOWN_CHAR () {( &KEY_MAX + 0x11e);}' unless defined(&REQ_DOWN_CHAR);
    eval 'sub REQ_NEW_LINE () {( &KEY_MAX + 0x11f);}' unless defined(&REQ_NEW_LINE);
    eval 'sub REQ_INS_CHAR () {( &KEY_MAX + 0x120);}' unless defined(&REQ_INS_CHAR);
    eval 'sub REQ_INS_LINE () {( &KEY_MAX + 0x121);}' unless defined(&REQ_INS_LINE);
    eval 'sub REQ_DEL_CHAR () {( &KEY_MAX + 0x122);}' unless defined(&REQ_DEL_CHAR);
    eval 'sub REQ_DEL_PREV () {( &KEY_MAX + 0x123);}' unless defined(&REQ_DEL_PREV);
    eval 'sub REQ_DEL_LINE () {( &KEY_MAX + 0x124);}' unless defined(&REQ_DEL_LINE);
    eval 'sub REQ_DEL_WORD () {( &KEY_MAX + 0x125);}' unless defined(&REQ_DEL_WORD);
    eval 'sub REQ_CLR_EOL () {( &KEY_MAX + 0x126);}' unless defined(&REQ_CLR_EOL);
    eval 'sub REQ_CLR_EOF () {( &KEY_MAX + 0x127);}' unless defined(&REQ_CLR_EOF);
    eval 'sub REQ_CLR_FIELD () {( &KEY_MAX + 0x128);}' unless defined(&REQ_CLR_FIELD);
    eval 'sub REQ_OVL_MODE () {( &KEY_MAX + 0x129);}' unless defined(&REQ_OVL_MODE);
    eval 'sub REQ_INS_MODE () {( &KEY_MAX + 0x12a);}' unless defined(&REQ_INS_MODE);
    eval 'sub REQ_SCR_FLINE () {( &KEY_MAX + 0x12b);}' unless defined(&REQ_SCR_FLINE);
    eval 'sub REQ_SCR_BLINE () {( &KEY_MAX + 0x12c);}' unless defined(&REQ_SCR_BLINE);
    eval 'sub REQ_SCR_FPAGE () {( &KEY_MAX + 0x12d);}' unless defined(&REQ_SCR_FPAGE);
    eval 'sub REQ_SCR_BPAGE () {( &KEY_MAX + 0x12e);}' unless defined(&REQ_SCR_BPAGE);
    eval 'sub REQ_SCR_FHPAGE () {( &KEY_MAX + 0x12f);}' unless defined(&REQ_SCR_FHPAGE);
    eval 'sub REQ_SCR_BHPAGE () {( &KEY_MAX + 0x130);}' unless defined(&REQ_SCR_BHPAGE);
    eval 'sub REQ_SCR_FCHAR () {( &KEY_MAX + 0x131);}' unless defined(&REQ_SCR_FCHAR);
    eval 'sub REQ_SCR_BCHAR () {( &KEY_MAX + 0x132);}' unless defined(&REQ_SCR_BCHAR);
    eval 'sub REQ_SCR_HFLINE () {( &KEY_MAX + 0x133);}' unless defined(&REQ_SCR_HFLINE);
    eval 'sub REQ_SCR_HBLINE () {( &KEY_MAX + 0x134);}' unless defined(&REQ_SCR_HBLINE);
    eval 'sub REQ_SCR_HFHALF () {( &KEY_MAX + 0x135);}' unless defined(&REQ_SCR_HFHALF);
    eval 'sub REQ_SCR_HBHALF () {( &KEY_MAX + 0x136);}' unless defined(&REQ_SCR_HBHALF);
    eval 'sub REQ_VALIDATION () {( &KEY_MAX + 0x137);}' unless defined(&REQ_VALIDATION);
    eval 'sub REQ_PREV_CHOICE () {( &KEY_MAX + 0x138);}' unless defined(&REQ_PREV_CHOICE);
    eval 'sub REQ_NEXT_CHOICE () {( &KEY_MAX + 0x139);}' unless defined(&REQ_NEXT_CHOICE);
    eval 'sub REQ_MAX_COMMAND () {( &KEY_MAX + 0x139);}' unless defined(&REQ_MAX_COMMAND);
    eval 'sub MIN_FORM_COMMAND () { &REQ_MIN_REQUEST;}' unless defined(&MIN_FORM_COMMAND);
    eval 'sub MAX_FORM_COMMAND () { &REQ_MAX_COMMAND;}' unless defined(&MAX_FORM_COMMAND);
}
1;
