diff options
Diffstat (limited to 'loadlib.c')
-rw-r--r-- | loadlib.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: loadlib.c,v 1.105 2011/11/25 12:52:03 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.106 2011/11/28 17:27:51 roberto Exp roberto $ |
3 | ** Dynamic library loader for Lua | 3 | ** Dynamic library loader for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | ** | 5 | ** |
@@ -197,7 +197,7 @@ static void ll_unloadlib (void *lib) { | |||
197 | 197 | ||
198 | static void *ll_load (lua_State *L, const char *path, int seeglb) { | 198 | static void *ll_load (lua_State *L, const char *path, int seeglb) { |
199 | HMODULE lib = LoadLibraryExA(path, NULL, LUA_LLE_FLAGS); | 199 | HMODULE lib = LoadLibraryExA(path, NULL, LUA_LLE_FLAGS); |
200 | (void)(seeglb); /* symbols are 'global' by default */ | 200 | (void)(seeglb); /* not used: symbols are 'global' by default */ |
201 | if (lib == NULL) pusherror(L); | 201 | if (lib == NULL) pusherror(L); |
202 | return lib; | 202 | return lib; |
203 | } | 203 | } |
@@ -227,19 +227,19 @@ static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { | |||
227 | 227 | ||
228 | 228 | ||
229 | static void ll_unloadlib (void *lib) { | 229 | static void ll_unloadlib (void *lib) { |
230 | (void)(lib); /* to avoid warnings */ | 230 | (void)(lib); /* not used */ |
231 | } | 231 | } |
232 | 232 | ||
233 | 233 | ||
234 | static void *ll_load (lua_State *L, const char *path, int seeglb) { | 234 | static void *ll_load (lua_State *L, const char *path, int seeglb) { |
235 | (void)(path); (void)(seeglb); /* to avoid warnings */ | 235 | (void)(path); (void)(seeglb); /* not used */ |
236 | lua_pushliteral(L, DLMSG); | 236 | lua_pushliteral(L, DLMSG); |
237 | return NULL; | 237 | return NULL; |
238 | } | 238 | } |
239 | 239 | ||
240 | 240 | ||
241 | static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { | 241 | static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { |
242 | (void)(lib); (void)(sym); /* to avoid warnings */ | 242 | (void)(lib); (void)(sym); /* not used */ |
243 | lua_pushliteral(L, DLMSG); | 243 | lua_pushliteral(L, DLMSG); |
244 | return NULL; | 244 | return NULL; |
245 | } | 245 | } |