'lua_objlen' replaced by 'lua_rawlen', 'lua_len', and 'luaL_len'

This commit is contained in:
Roberto Ierusalimschy
2009-12-17 14:20:01 -02:00
parent 0bbdddc86b
commit c3a6f3fa1c
11 changed files with 69 additions and 42 deletions

6
lvm.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lvm.c,v 2.100 2009/10/28 12:20:07 roberto Exp roberto $
** $Id: lvm.c,v 2.101 2009/11/25 15:27:51 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -307,7 +307,7 @@ void luaV_concat (lua_State *L, int total) {
}
static void objlen (lua_State *L, StkId ra, const TValue *rb) {
void luaV_objlen (lua_State *L, StkId ra, const TValue *rb) {
const TValue *tm;
switch (ttype(rb)) {
case LUA_TTABLE: {
@@ -582,7 +582,7 @@ void luaV_execute (lua_State *L) {
continue;
}
case OP_LEN: {
Protect(objlen(L, ra, RB(i)));
Protect(luaV_objlen(L, ra, RB(i)));
continue;
}
case OP_CONCAT: {