Beispiel #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;
}
Beispiel #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;
}
Beispiel #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;
}
Beispiel #4
0
int luaopen_lfs (lua_State *L) {
	dir_create_meta (L);
	return 1;
}
Beispiel #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);
}
Beispiel #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;
}