diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 2.237 2014/10/15 14:27:40 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.238 2014/10/17 19:17:55 roberto Exp roberto $ |
3 | ** Lua API | 3 | ** Lua API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -178,7 +178,7 @@ LUA_API void lua_settop (lua_State *L, int idx) { | |||
178 | } | 178 | } |
179 | else { | 179 | else { |
180 | api_check(-(idx+1) <= (L->top - (func + 1)), "invalid new top"); | 180 | api_check(-(idx+1) <= (L->top - (func + 1)), "invalid new top"); |
181 | L->top += idx+1; /* `subtract' index (index is negative) */ | 181 | L->top += idx+1; /* 'subtract' index (index is negative) */ |
182 | } | 182 | } |
183 | lua_unlock(L); | 183 | lua_unlock(L); |
184 | } | 184 | } |
@@ -375,7 +375,7 @@ LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) { | |||
375 | if (len != NULL) *len = 0; | 375 | if (len != NULL) *len = 0; |
376 | return NULL; | 376 | return NULL; |
377 | } | 377 | } |
378 | lua_lock(L); /* `luaO_tostring' may create a new string */ | 378 | lua_lock(L); /* 'luaO_tostring' may create a new string */ |
379 | luaC_checkGC(L); | 379 | luaC_checkGC(L); |
380 | o = index2addr(L, idx); /* previous call may reallocate the stack */ | 380 | o = index2addr(L, idx); /* previous call may reallocate the stack */ |
381 | luaO_tostring(L, o); | 381 | luaO_tostring(L, o); |
@@ -867,7 +867,7 @@ LUA_API void lua_setuservalue (lua_State *L, int idx) { | |||
867 | 867 | ||
868 | 868 | ||
869 | /* | 869 | /* |
870 | ** `load' and `call' functions (run Lua code) | 870 | ** 'load' and 'call' functions (run Lua code) |
871 | */ | 871 | */ |
872 | 872 | ||
873 | 873 | ||
@@ -902,7 +902,7 @@ LUA_API void lua_callk (lua_State *L, int nargs, int nresults, | |||
902 | /* | 902 | /* |
903 | ** Execute a protected call. | 903 | ** Execute a protected call. |
904 | */ | 904 | */ |
905 | struct CallS { /* data to `f_call' */ | 905 | struct CallS { /* data to 'f_call' */ |
906 | StkId func; | 906 | StkId func; |
907 | int nresults; | 907 | int nresults; |
908 | }; | 908 | }; |