Avoiding dependency in backwards compatibility to Lua 5.0

This commit is contained in:
tomas
2007-06-22 12:44:46 +00:00
parent 57a64a5cfe
commit 97ccdc90ed

View File

@@ -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;
} }