diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-17 14:20:01 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-17 14:20:01 -0200 |
| commit | c3a6f3fa1c6360d4ea2e32f9415f51e8e55093b4 (patch) | |
| tree | 9f26c632fa0215c21260a81f6fad1a79678f8173 /ltablib.c | |
| parent | 0bbdddc86b1353fec36ae886b4142986f3c4713f (diff) | |
| download | lua-c3a6f3fa1c6360d4ea2e32f9415f51e8e55093b4.tar.gz lua-c3a6f3fa1c6360d4ea2e32f9415f51e8e55093b4.tar.bz2 lua-c3a6f3fa1c6360d4ea2e32f9415f51e8e55093b4.zip | |
'lua_objlen' replaced by 'lua_rawlen', 'lua_len', and 'luaL_len'
Diffstat (limited to 'ltablib.c')
| -rw-r--r-- | ltablib.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltablib.c,v 1.49 2009/11/26 17:35:13 roberto Exp roberto $ | 2 | ** $Id: ltablib.c,v 1.50 2009/12/07 15:50:27 roberto Exp roberto $ |
| 3 | ** Library for Table Manipulation | 3 | ** Library for Table Manipulation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -16,7 +16,7 @@ | |||
| 16 | #include "lualib.h" | 16 | #include "lualib.h" |
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | #define aux_getn(L,n) (luaL_checktype(L, n, LUA_TTABLE), lua_objlen(L, n)) | 19 | #define aux_getn(L,n) (luaL_checktype(L, n, LUA_TTABLE), lua_rawlen(L, n)) |
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | static int foreachi (lua_State *L) { | 22 | static int foreachi (lua_State *L) { |
| @@ -154,7 +154,7 @@ static int tconcat (lua_State *L) { | |||
| 154 | const char *sep = luaL_optlstring(L, 2, "", &lsep); | 154 | const char *sep = luaL_optlstring(L, 2, "", &lsep); |
| 155 | luaL_checktype(L, 1, LUA_TTABLE); | 155 | luaL_checktype(L, 1, LUA_TTABLE); |
| 156 | i = luaL_optint(L, 3, 1); | 156 | i = luaL_optint(L, 3, 1); |
| 157 | last = luaL_opt(L, luaL_checkint, 4, (int)lua_objlen(L, 1)); | 157 | last = luaL_opt(L, luaL_checkint, 4, (int)lua_rawlen(L, 1)); |
| 158 | luaL_buffinit(L, &b); | 158 | luaL_buffinit(L, &b); |
| 159 | for (; i < last; i++) { | 159 | for (; i < last; i++) { |
| 160 | addfield(L, &b, i); | 160 | addfield(L, &b, i); |
