diff options
author | tomas <tomas> | 2007-06-22 12:44:46 +0000 |
---|---|---|
committer | tomas <tomas> | 2007-06-22 12:44:46 +0000 |
commit | 97ccdc90ed810f809237669e0c3c91c1cf0ed208 (patch) | |
tree | f8de53799380688416bd87d3f287f67e91b34418 /src | |
parent | 57a64a5cfee378f331ae425945a8026bcc668a8b (diff) | |
download | luafilesystem-97ccdc90ed810f809237669e0c3c91c1cf0ed208.tar.gz luafilesystem-97ccdc90ed810f809237669e0c3c91c1cf0ed208.tar.bz2 luafilesystem-97ccdc90ed810f809237669e0c3c91c1cf0ed208.zip |
Avoiding dependency in backwards compatibility to Lua 5.0
Diffstat (limited to 'src')
-rw-r--r-- | src/lfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,7 +15,7 @@ | |||
15 | ** lfs.touch (filepath [, atime [, mtime]]) | 15 | ** lfs.touch (filepath [, atime [, mtime]]) |
16 | ** lfs.unlock (fh) | 16 | ** lfs.unlock (fh) |
17 | ** | 17 | ** |
18 | ** $Id: lfs.c,v 1.38 2007/06/07 01:28:08 tomas Exp $ | 18 | ** $Id: lfs.c,v 1.39 2007/06/22 12:44:46 tomas Exp $ |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <errno.h> | 21 | #include <errno.h> |
@@ -599,7 +599,7 @@ static const struct luaL_reg fslib[] = { | |||
599 | 599 | ||
600 | int luaopen_lfs (lua_State *L) { | 600 | int luaopen_lfs (lua_State *L) { |
601 | dir_create_meta (L); | 601 | dir_create_meta (L); |
602 | luaL_openlib (L, "lfs", fslib, 0); | 602 | luaL_register (L, "lfs", fslib); |
603 | set_info (L); | 603 | set_info (L); |
604 | return 1; | 604 | return 1; |
605 | } | 605 | } |