require '_h2ph_pre.ph';

unless(defined(&_MACHINE_TRAP_H)) {
    eval 'sub _MACHINE_TRAP_H () {1;}' unless defined(&_MACHINE_TRAP_H);
    eval 'sub T_RESET () {0x00;}' unless defined(&T_RESET);
    eval 'sub T_TEXTFAULT () {0x01;}' unless defined(&T_TEXTFAULT);
    eval 'sub T_ILLINST () {0x02;}' unless defined(&T_ILLINST);
    eval 'sub T_PRIVINST () {0x03;}' unless defined(&T_PRIVINST);
    eval 'sub T_FPDISABLED () {0x04;}' unless defined(&T_FPDISABLED);
    eval 'sub T_WINOF () {0x05;}' unless defined(&T_WINOF);
    eval 'sub T_WINUF () {0x06;}' unless defined(&T_WINUF);
    eval 'sub T_ALIGN () {0x07;}' unless defined(&T_ALIGN);
    eval 'sub T_FPE () {0x08;}' unless defined(&T_FPE);
    eval 'sub T_DATAFAULT () {0x09;}' unless defined(&T_DATAFAULT);
    eval 'sub T_TAGOF () {0x0a;}' unless defined(&T_TAGOF);
    eval 'sub T_L1INT () {0x11;}' unless defined(&T_L1INT);
    eval 'sub T_L2INT () {0x12;}' unless defined(&T_L2INT);
    eval 'sub T_L3INT () {0x13;}' unless defined(&T_L3INT);
    eval 'sub T_L4INT () {0x14;}' unless defined(&T_L4INT);
    eval 'sub T_L5INT () {0x15;}' unless defined(&T_L5INT);
    eval 'sub T_L6INT () {0x16;}' unless defined(&T_L6INT);
    eval 'sub T_L7INT () {0x17;}' unless defined(&T_L7INT);
    eval 'sub T_L8INT () {0x18;}' unless defined(&T_L8INT);
    eval 'sub T_L9INT () {0x19;}' unless defined(&T_L9INT);
    eval 'sub T_L10INT () {0x1a;}' unless defined(&T_L10INT);
    eval 'sub T_L11INT () {0x1b;}' unless defined(&T_L11INT);
    eval 'sub T_L12INT () {0x1c;}' unless defined(&T_L12INT);
    eval 'sub T_L13INT () {0x1d;}' unless defined(&T_L13INT);
    eval 'sub T_L14INT () {0x1e;}' unless defined(&T_L14INT);
    eval 'sub T_L15INT () {0x1f;}' unless defined(&T_L15INT);
    eval 'sub T_RREGERROR () {0x20;}' unless defined(&T_RREGERROR);
    eval 'sub T_TEXTERROR () {0x21;}' unless defined(&T_TEXTERROR);
    eval 'sub T_CPDISABLED () {0x24;}' unless defined(&T_CPDISABLED);
    eval 'sub T_CPEXCEPTION () {0x28;}' unless defined(&T_CPEXCEPTION);
    eval 'sub T_DATAERROR () {0x29;}' unless defined(&T_DATAERROR);
    eval 'sub T_IDIV0 () {0x2a;}' unless defined(&T_IDIV0);
    eval 'sub T_STOREBUFFAULT () {0x2b;}' unless defined(&T_STOREBUFFAULT);
    eval 'sub T_SUN_SYSCALL () {0x80;}' unless defined(&T_SUN_SYSCALL);
    eval 'sub T_BREAKPOINT () {0x81;}' unless defined(&T_BREAKPOINT);
    eval 'sub T_DIV0 () {0x82;}' unless defined(&T_DIV0);
    eval 'sub T_FLUSHWIN () {0x83;}' unless defined(&T_FLUSHWIN);
    eval 'sub T_CLEANWIN () {0x84;}' unless defined(&T_CLEANWIN);
    eval 'sub T_RANGECHECK () {0x85;}' unless defined(&T_RANGECHECK);
    eval 'sub T_FIXALIGN () {0x86;}' unless defined(&T_FIXALIGN);
    eval 'sub T_INTOF () {0x87;}' unless defined(&T_INTOF);
    eval 'sub T_SVR4_SYSCALL () {0x88;}' unless defined(&T_SVR4_SYSCALL);
    eval 'sub T_BSD_SYSCALL () {0x89;}' unless defined(&T_BSD_SYSCALL);
    eval 'sub T_KGDB_EXEC () {0x8a;}' unless defined(&T_KGDB_EXEC);
    eval 'sub T_SVR4_GETCC () {0xa0;}' unless defined(&T_SVR4_GETCC);
    eval 'sub T_SVR4_SETCC () {0xa1;}' unless defined(&T_SVR4_SETCC);
    eval 'sub T_SVR4_GETPSR () {0xa2;}' unless defined(&T_SVR4_GETPSR);
    eval 'sub T_SVR4_SETPSR () {0xa3;}' unless defined(&T_SVR4_SETPSR);
    eval 'sub T_SVR4_GETHRTIME () {0xa4;}' unless defined(&T_SVR4_GETHRTIME);
    eval 'sub T_SVR4_GETHRVTIME () {0xa5;}' unless defined(&T_SVR4_GETHRVTIME);
    eval 'sub T_SVR4_GETHRESTIME () {0xa7;}' unless defined(&T_SVR4_GETHRESTIME);
    if(defined(&_KERNEL)) {
	eval 'sub T_RWRET () {-1;}' unless defined(&T_RWRET);
	eval 'sub T_AST () {-2;}' unless defined(&T_AST);
    }
    eval 'sub SYSCALL_G2RFLAG () {0x400;}' unless defined(&SYSCALL_G2RFLAG);
    eval 'sub SYSCALL_G7RFLAG () {0x800;}' unless defined(&SYSCALL_G7RFLAG);
    eval 'sub ST_BREAKPOINT () {( &T_BREAKPOINT & 0x7f);}' unless defined(&ST_BREAKPOINT);
    eval 'sub ST_DIV0 () {( &T_DIV0 & 0x7f);}' unless defined(&ST_DIV0);
    eval 'sub ST_FLUSHWIN () {( &T_FLUSHWIN & 0x7f);}' unless defined(&ST_FLUSHWIN);
    eval 'sub ST_SYSCALL () {( &T_SUN_SYSCALL & 0x7f);}' unless defined(&ST_SYSCALL);
}
1;
