diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-31 11:34:02 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-31 11:34:02 -0300 |
commit | d628795940cb00420829077869c0efe5678b4e18 (patch) | |
tree | 882c6e993c7ffed27dcc142b2f15e88e95c5a073 /lapi.c | |
parent | 05348d834b48a4b0720d0576c797877b98642e63 (diff) | |
download | lua-d628795940cb00420829077869c0efe5678b4e18.tar.gz lua-d628795940cb00420829077869c0efe5678b4e18.tar.bz2 lua-d628795940cb00420829077869c0efe5678b4e18.zip |
lua_objsize -> lua_objlen (more compatible with use of `lenĀ“ in other
places [opcode name, metamethod index, etc.])
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 2.41 2005/05/17 19:49:15 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.42 2005/05/31 14:25:18 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 | */ |
@@ -351,7 +351,7 @@ LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) { | |||
351 | } | 351 | } |
352 | 352 | ||
353 | 353 | ||
354 | LUA_API size_t lua_objsize (lua_State *L, int idx) { | 354 | LUA_API size_t lua_objlen (lua_State *L, int idx) { |
355 | StkId o = index2adr(L, idx); | 355 | StkId o = index2adr(L, idx); |
356 | switch (ttype(o)) { | 356 | switch (ttype(o)) { |
357 | case LUA_TSTRING: return tsvalue(o)->len; | 357 | case LUA_TSTRING: return tsvalue(o)->len; |