aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-31 11:34:02 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-31 11:34:02 -0300
commitd628795940cb00420829077869c0efe5678b4e18 (patch)
tree882c6e993c7ffed27dcc142b2f15e88e95c5a073 /lapi.c
parent05348d834b48a4b0720d0576c797877b98642e63 (diff)
downloadlua-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index 61d0b316..60fcf0c6 100644
--- a/lapi.c
+++ b/lapi.c
@@ -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
354LUA_API size_t lua_objsize (lua_State *L, int idx) { 354LUA_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;