Exemplo n.º 1
0
int luaopen_lfs (lua_State *L) {
	dir_create_meta (L);
	lock_create_meta (L);
	luaL_register (L, "lfs", fslib);
	set_info (L);
	return 1;
}
Exemplo n.º 2
0
LUALIB_API int luaopen_lfs(lua_State *L) {
	dir_create_meta(L);
	lock_create_meta(L);
	luaL_newlib(L, fslib);
	lua_pushvalue(L, -1);
	lua_setglobal(L, LUA_LFSLIBNAME);
	set_info(L);
	return 1;
}
Exemplo n.º 3
0
int luaopen_lfs (lua_State *L) {
	dir_create_meta (L);
	lock_create_meta (L);
#if LUA_VERSION_NUM > 501
    lua_newtable(L);
    luaL_setfuncs(L,fslib,0);
#else
	luaL_register (L, "lfs", fslib);
#endif
	set_info (L);
	return 1;
}
Exemplo n.º 4
0
int luaopen_lfs (lua_State *L) {
	dir_create_meta (L);
	return 1;
}
Exemplo n.º 5
0
static void lua_lkl_register(lua_State * L)
{
	lua_register(L, "stat", luapr_stat);
        dir_create_meta(L);
	luaL_register (L, "lkl", fslib);
}
Exemplo n.º 6
0
LUALIB_API int luaopen_lfs (lua_State *L) {
	dir_create_meta (L);
	luaL_openlib (L, "lfs", fslib, 0);
	set_info (L);
	return 1;
}