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 | |
parent | c231a5e2b68d6c32bc54b201f844590ae1a50c39 (diff) | |
download | lua-c5112f7b156ad2565bad3035c8c4008c3e7716a4.tar.gz lua-c5112f7b156ad2565bad3035c8c4008c3e7716a4.tar.bz2 lua-c5112f7b156ad2565bad3035c8c4008c3e7716a4.zip |
details (comments)
-rw-r--r-- | lauxlib.h | 4 | ||||
-rw-r--r-- | ldblib.c | 6 | ||||
-rw-r--r-- | ldo.h | 4 | ||||
-rw-r--r-- | loadlib.c | 4 | ||||
-rw-r--r-- | lvm.c | 4 |
5 files changed, 11 insertions, 11 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.h,v 1.127 2014/10/25 11:50:46 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.128 2014/10/29 16:11:17 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -65,7 +65,7 @@ LUALIB_API int (luaL_checkoption) (lua_State *L, int arg, const char *def, | |||
65 | LUALIB_API int (luaL_fileresult) (lua_State *L, int stat, const char *fname); | 65 | LUALIB_API int (luaL_fileresult) (lua_State *L, int stat, const char *fname); |
66 | LUALIB_API int (luaL_execresult) (lua_State *L, int stat); | 66 | LUALIB_API int (luaL_execresult) (lua_State *L, int stat); |
67 | 67 | ||
68 | /* pre-defined references */ | 68 | /* predefined references */ |
69 | #define LUA_NOREF (-2) | 69 | #define LUA_NOREF (-2) |
70 | #define LUA_REFNIL (-1) | 70 | #define LUA_REFNIL (-1) |
71 | 71 | ||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldblib.c,v 1.149 2015/02/19 17:06:21 roberto Exp roberto $ | 2 | ** $Id: ldblib.c,v 1.150 2015/11/19 19:16:22 roberto Exp roberto $ |
3 | ** Interface from Lua to its debug API | 3 | ** Interface from Lua to its debug API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -28,8 +28,8 @@ static const int HOOKKEY = 0; | |||
28 | 28 | ||
29 | 29 | ||
30 | /* | 30 | /* |
31 | ** If L1 != L, L1 can be in any state, and therefore there is no | 31 | ** If L1 != L, L1 can be in any state, and therefore there are no |
32 | ** garantees about its stack space; any push in L1 must be | 32 | ** guarantees about its stack space; any push in L1 must be |
33 | ** checked. | 33 | ** checked. |
34 | */ | 34 | */ |
35 | static void checkstack (lua_State *L, lua_State *L1, int n) { | 35 | static void checkstack (lua_State *L, lua_State *L1, int n) { |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.h,v 2.26 2015/11/13 13:24:26 roberto Exp roberto $ | 2 | ** $Id: ldo.h,v 2.27 2015/11/19 19:16:22 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -16,7 +16,7 @@ | |||
16 | /* | 16 | /* |
17 | ** Macro to check stack size and grow stack if needed. Parameters | 17 | ** Macro to check stack size and grow stack if needed. Parameters |
18 | ** 'pre'/'pos' allow the macro to preserve a pointer into the | 18 | ** 'pre'/'pos' allow the macro to preserve a pointer into the |
19 | ** stack across realocations, doing the work only when needed. | 19 | ** stack across reallocations, doing the work only when needed. |
20 | ** 'condmovestack' is used in heavy tests to force a stack reallocation | 20 | ** 'condmovestack' is used in heavy tests to force a stack reallocation |
21 | ** at every check. | 21 | ** at every check. |
22 | */ | 22 | */ |
@@ -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); |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.263 2015/11/17 16:00:28 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.264 2015/11/19 19:16:22 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -1254,7 +1254,7 @@ void luaV_execute (lua_State *L) { | |||
1254 | h = hvalue(ra); | 1254 | h = hvalue(ra); |
1255 | last = ((c-1)*LFIELDS_PER_FLUSH) + n; | 1255 | last = ((c-1)*LFIELDS_PER_FLUSH) + n; |
1256 | if (last > h->sizearray) /* needs more space? */ | 1256 | if (last > h->sizearray) /* needs more space? */ |
1257 | luaH_resizearray(L, h, last); /* pre-allocate it at once */ | 1257 | luaH_resizearray(L, h, last); /* preallocate it at once */ |
1258 | for (; n > 0; n--) { | 1258 | for (; n > 0; n--) { |
1259 | TValue *val = ra+n; | 1259 | TValue *val = ra+n; |
1260 | luaH_setint(L, h, last--, val); | 1260 | luaH_setint(L, h, last--, val); |