mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-25 05:03:07 +00:00
Avoiding dependency in backwards compatibility to Lua 5.0
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
** lfs.touch (filepath [, atime [, mtime]])
|
** lfs.touch (filepath [, atime [, mtime]])
|
||||||
** lfs.unlock (fh)
|
** lfs.unlock (fh)
|
||||||
**
|
**
|
||||||
** $Id: lfs.c,v 1.38 2007/06/07 01:28:08 tomas Exp $
|
** $Id: lfs.c,v 1.39 2007/06/22 12:44:46 tomas Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -599,7 +599,7 @@ static const struct luaL_reg fslib[] = {
|
|||||||
|
|
||||||
int luaopen_lfs (lua_State *L) {
|
int luaopen_lfs (lua_State *L) {
|
||||||
dir_create_meta (L);
|
dir_create_meta (L);
|
||||||
luaL_openlib (L, "lfs", fslib, 0);
|
luaL_register (L, "lfs", fslib);
|
||||||
set_info (L);
|
set_info (L);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user