require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_LUA_H_)) {
    eval 'sub _SYS_LUA_H_ () {1;}' unless defined(&_SYS_LUA_H_);
    require 'sys/param.ph';
    require 'sys/ioccom.ph';
    require 'sys/stdbool.ph';
    require 'lua.ph';
    if(defined(&_KERNEL)) {
	require 'sys/condvar.ph';
	require 'sys/mutex.ph';
    }
    eval 'sub MAX_LUA_NAME () {16;}' unless defined(&MAX_LUA_NAME);
    eval 'sub MAX_LUA_DESC () {64;}' unless defined(&MAX_LUA_DESC);
    eval 'sub LUA_MAX_MODNAME () {32;}' unless defined(&LUA_MAX_MODNAME);
    eval 'sub LUAINFO () { &_IOWR(ord(\'l\'), 0, \'struct lua_info\');}' unless defined(&LUAINFO);
    eval 'sub LUACREATE () { &_IOWR(ord(\'l\'), 1, \'struct lua_create\');}' unless defined(&LUACREATE);
    eval 'sub LUADESTROY () { &_IOWR(ord(\'l\'), 2, \'struct lua_create\');}' unless defined(&LUADESTROY);
    eval 'sub LUAREQUIRE () { &_IOWR(ord(\'l\'), 3, \'struct lua_require\');}' unless defined(&LUAREQUIRE);
    eval 'sub LUALOAD () { &_IOWR(ord(\'l\'), 4, \'struct lua_load\');}' unless defined(&LUALOAD);
    if(defined(&_KERNEL)) {
    }
}
1;
