diff options
| author | Peter Melnichenko <mpeterval@gmail.com> | 2016-05-05 15:24:29 +0300 |
|---|---|---|
| committer | Peter Melnichenko <mpeterval@gmail.com> | 2016-05-05 15:24:29 +0300 |
| commit | aa18f3e127b3d11344d6472fe3647cdf0e8a8f08 (patch) | |
| tree | 33cc1abb70c530977bd9ba5a100bcb195088244a /src | |
| parent | 6d6fd631bacbdb48e94ac89f2e5ed20b1cbbcb64 (diff) | |
| download | luafilesystem-aa18f3e127b3d11344d6472fe3647cdf0e8a8f08.tar.gz luafilesystem-aa18f3e127b3d11344d6472fe3647cdf0e8a8f08.tar.bz2 luafilesystem-aa18f3e127b3d11344d6472fe3647cdf0e8a8f08.zip | |
Don't declare global 'lfs'
Diffstat (limited to 'src')
| -rw-r--r-- | src/lfs.c | 3 |
1 files changed, 0 insertions, 3 deletions
| @@ -66,7 +66,6 @@ | |||
| 66 | #include "lfs.h" | 66 | #include "lfs.h" |
| 67 | 67 | ||
| 68 | #define LFS_VERSION "1.6.3" | 68 | #define LFS_VERSION "1.6.3" |
| 69 | #define LFS_LIBNAME "lfs" | ||
| 70 | 69 | ||
| 71 | #if LUA_VERSION_NUM >= 503 /* Lua 5.3 */ | 70 | #if LUA_VERSION_NUM >= 503 /* Lua 5.3 */ |
| 72 | 71 | ||
| @@ -873,8 +872,6 @@ int luaopen_lfs (lua_State *L) { | |||
| 873 | dir_create_meta (L); | 872 | dir_create_meta (L); |
| 874 | lock_create_meta (L); | 873 | lock_create_meta (L); |
| 875 | luaL_newlib (L, fslib); | 874 | luaL_newlib (L, fslib); |
| 876 | lua_pushvalue(L, -1); | ||
| 877 | lua_setglobal(L, LFS_LIBNAME); | ||
| 878 | set_info (L); | 875 | set_info (L); |
| 879 | return 1; | 876 | return 1; |
| 880 | } | 877 | } |
