aboutsummaryrefslogtreecommitdiff
path: root/loadlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-11-30 10:58:57 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-11-30 10:58:57 -0200
commit7bcb2462e414dbf4318edf376852fc97d6e45b33 (patch)
treef8c36e0f611c8696ece0b8ad476409ac05c30fbe /loadlib.c
parent0bd99b327b2b485bd90116b78ddec82352fad046 (diff)
downloadlua-7bcb2462e414dbf4318edf376852fc97d6e45b33.tar.gz
lua-7bcb2462e414dbf4318edf376852fc97d6e45b33.tar.bz2
lua-7bcb2462e414dbf4318edf376852fc97d6e45b33.zip
comments
Diffstat (limited to 'loadlib.c')
-rw-r--r--loadlib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/loadlib.c b/loadlib.c
index e0e4c393..02787ef7 100644
--- a/loadlib.c
+++ b/loadlib.c
@@ -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
198static void *ll_load (lua_State *L, const char *path, int seeglb) { 198static 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
229static void ll_unloadlib (void *lib) { 229static void ll_unloadlib (void *lib) {
230 (void)(lib); /* to avoid warnings */ 230 (void)(lib); /* not used */
231} 231}
232 232
233 233
234static void *ll_load (lua_State *L, const char *path, int seeglb) { 234static 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
241static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { 241static 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}