search for: luaopen_lfs

Displaying 3 results from an estimated 3 matches for "luaopen_lfs".

2013 Oct 03
0
Automatic boot menu?
..._file_info_ (L, STAT_FUNC); +} + + +static const struct luaL_Reg fslib[] = { + {"attributes", file_info}, + {"chdir", change_dir}, + {"currentdir", get_dir}, + {"dir", dir_iter_factory}, + {NULL, NULL}, +}; + +LUALIB_API int luaopen_lfs (lua_State *L) { + dir_create_meta (L); + luaL_openlib (L, LFS_LIBNAME, fslib, 0); + return 1; +} diff --git a/com32/lua/src/linit.c b/com32/lua/src/linit.c index 6e97873..e50589e 100644 --- a/com32/lua/src/linit.c +++ b/com32/lua/src/linit.c @@ -35,6 +35,7 @@ static const luaL_Reg lualibs[] = {...
2013 Aug 30
2
Automatic boot menu?
"H. Peter Anvin" <hpa at zytor.com> writes: > On 08/29/2013 04:14 AM, Ferenc Wagner wrote: > >> "H. Peter Anvin" <hpa at zytor.com> writes: >> >>> On 08/22/2013 10:20 AM, Ferenc Wagner wrote: >>> >>>> Now that Syslinux has ls.c32 and lua.c32, it should be possible to build >>>> a customizable boot menu in
2013 Oct 15
23
[PATCH 00/21] Upgrade to Lua 5.2.2, add filesystem module and get_key binding
Hi, This series targets automatic boot menu generation, but most of it is the Lua upgrade, because I got tired reading deprecated API docs. It's mostly a straightforward forward port of the earlier Syslinux specific changes to Lua 5.1, except that: * I chose the add a stub getenv() implementation to the COM32 API instead of #ifdefing out all the references in Lua, and * I kept oslib