aboutsummaryrefslogtreecommitdiff
path: root/loadlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-25 09:50:46 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-25 09:50:46 -0200
commitbdf566a8a32450c2eb6273c8c1a92e2181b6846e (patch)
treeb301da541fbad81034216a6e0465cc381082431e /loadlib.c
parentc3c78030f79fdbbb06265d50645e408d60e7798e (diff)
downloadlua-bdf566a8a32450c2eb6273c8c1a92e2181b6846e.tar.gz
lua-bdf566a8a32450c2eb6273c8c1a92e2181b6846e.tar.bz2
lua-bdf566a8a32450c2eb6273c8c1a92e2181b6846e.zip
`name' in comments changed to 'name'
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 6c94aa4d..01b7c45a 100644
--- a/loadlib.c
+++ b/loadlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: loadlib.c,v 1.116 2014/07/29 16:01:00 roberto Exp roberto $ 2** $Id: loadlib.c,v 1.117 2014/10/17 16:28:21 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**
@@ -729,7 +729,7 @@ static void createsearcherstable (lua_State *L) {
729 } 729 }
730#if defined(LUA_COMPAT_LOADERS) 730#if defined(LUA_COMPAT_LOADERS)
731 lua_pushvalue(L, -1); /* make a copy of 'searchers' table */ 731 lua_pushvalue(L, -1); /* make a copy of 'searchers' table */
732 lua_setfield(L, -3, "loaders"); /* put it in field `loaders' */ 732 lua_setfield(L, -3, "loaders"); /* put it in field 'loaders' */
733#endif 733#endif
734 lua_setfield(L, -2, "searchers"); /* put it in field 'searchers' */ 734 lua_setfield(L, -2, "searchers"); /* put it in field 'searchers' */
735} 735}
@@ -750,7 +750,7 @@ static void createclibstable (lua_State *L) {
750 750
751LUAMOD_API int luaopen_package (lua_State *L) { 751LUAMOD_API int luaopen_package (lua_State *L) {
752 createclibstable(L); 752 createclibstable(L);
753 luaL_newlib(L, pk_funcs); /* create `package' table */ 753 luaL_newlib(L, pk_funcs); /* create 'package' table */
754 createsearcherstable(L); 754 createsearcherstable(L);
755 /* set field 'path' */ 755 /* set field 'path' */
756 setpath(L, "path", LUA_PATHVARVERSION, LUA_PATH_VAR, LUA_PATH_DEFAULT); 756 setpath(L, "path", LUA_PATHVARVERSION, LUA_PATH_VAR, LUA_PATH_DEFAULT);
@@ -760,10 +760,10 @@ LUAMOD_API int luaopen_package (lua_State *L) {
760 lua_pushliteral(L, LUA_DIRSEP "\n" LUA_PATH_SEP "\n" LUA_PATH_MARK "\n" 760 lua_pushliteral(L, LUA_DIRSEP "\n" LUA_PATH_SEP "\n" LUA_PATH_MARK "\n"
761 LUA_EXEC_DIR "\n" LUA_IGMARK "\n"); 761 LUA_EXEC_DIR "\n" LUA_IGMARK "\n");
762 lua_setfield(L, -2, "config"); 762 lua_setfield(L, -2, "config");
763 /* set field `loaded' */ 763 /* set field 'loaded' */
764 luaL_getsubtable(L, LUA_REGISTRYINDEX, "_LOADED"); 764 luaL_getsubtable(L, LUA_REGISTRYINDEX, "_LOADED");
765 lua_setfield(L, -2, "loaded"); 765 lua_setfield(L, -2, "loaded");
766 /* set field `preload' */ 766 /* set field 'preload' */
767 luaL_getsubtable(L, LUA_REGISTRYINDEX, "_PRELOAD"); 767 luaL_getsubtable(L, LUA_REGISTRYINDEX, "_PRELOAD");
768 lua_setfield(L, -2, "preload"); 768 lua_setfield(L, -2, "preload");
769 lua_pushglobaltable(L); 769 lua_pushglobaltable(L);