diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-11-23 09:30:45 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-11-23 09:30:45 -0200 |
commit | c5112f7b156ad2565bad3035c8c4008c3e7716a4 (patch) | |
tree | 05207653589cdf751be1f1a4647e9aca6881aa78 /loadlib.c | |
parent | c231a5e2b68d6c32bc54b201f844590ae1a50c39 (diff) | |
download | lua-c5112f7b156ad2565bad3035c8c4008c3e7716a4.tar.gz lua-c5112f7b156ad2565bad3035c8c4008c3e7716a4.tar.bz2 lua-c5112f7b156ad2565bad3035c8c4008c3e7716a4.zip |
details (comments)
Diffstat (limited to 'loadlib.c')
-rw-r--r-- | loadlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: loadlib.c,v 1.125 2015/01/13 13:18:04 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.126 2015/02/16 13:14:33 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 | ** |
@@ -732,7 +732,7 @@ static void createsearcherstable (lua_State *L) { | |||
732 | int i; | 732 | int i; |
733 | /* create 'searchers' table */ | 733 | /* create 'searchers' table */ |
734 | lua_createtable(L, sizeof(searchers)/sizeof(searchers[0]) - 1, 0); | 734 | lua_createtable(L, sizeof(searchers)/sizeof(searchers[0]) - 1, 0); |
735 | /* fill it with pre-defined searchers */ | 735 | /* fill it with predefined searchers */ |
736 | for (i=0; searchers[i] != NULL; i++) { | 736 | for (i=0; searchers[i] != NULL; i++) { |
737 | lua_pushvalue(L, -2); /* set 'package' as upvalue for all searchers */ | 737 | lua_pushvalue(L, -2); /* set 'package' as upvalue for all searchers */ |
738 | lua_pushcclosure(L, searchers[i], 1); | 738 | lua_pushcclosure(L, searchers[i], 1); |