aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-12-17 14:20:01 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-12-17 14:20:01 -0200
commitc3a6f3fa1c6360d4ea2e32f9415f51e8e55093b4 (patch)
tree9f26c632fa0215c21260a81f6fad1a79678f8173 /lua.h
parent0bbdddc86b1353fec36ae886b4142986f3c4713f (diff)
downloadlua-c3a6f3fa1c6360d4ea2e32f9415f51e8e55093b4.tar.gz
lua-c3a6f3fa1c6360d4ea2e32f9415f51e8e55093b4.tar.bz2
lua-c3a6f3fa1c6360d4ea2e32f9415f51e8e55093b4.zip
'lua_objlen' replaced by 'lua_rawlen', 'lua_len', and 'luaL_len'
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/lua.h b/lua.h
index 9cf92660..f41a6690 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.252 2009/11/26 11:39:20 roberto Exp roberto $ 2** $Id: lua.h,v 1.253 2009/12/11 13:40:44 roberto Exp roberto $
3** Lua - A Scripting Language 3** Lua - A Scripting Language
4** Lua.org, PUC-Rio, Brazil (http://www.lua.org) 4** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
5** See Copyright Notice at the end of this file 5** See Copyright Notice at the end of this file
@@ -156,7 +156,7 @@ LUA_API lua_Number (lua_tonumber) (lua_State *L, int idx);
156LUA_API lua_Integer (lua_tointeger) (lua_State *L, int idx); 156LUA_API lua_Integer (lua_tointeger) (lua_State *L, int idx);
157LUA_API int (lua_toboolean) (lua_State *L, int idx); 157LUA_API int (lua_toboolean) (lua_State *L, int idx);
158LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); 158LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len);
159LUA_API size_t (lua_objlen) (lua_State *L, int idx); 159LUA_API size_t (lua_rawlen) (lua_State *L, int idx);
160LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx); 160LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx);
161LUA_API void *(lua_touserdata) (lua_State *L, int idx); 161LUA_API void *(lua_touserdata) (lua_State *L, int idx);
162LUA_API lua_State *(lua_tothread) (lua_State *L, int idx); 162LUA_API lua_State *(lua_tothread) (lua_State *L, int idx);
@@ -281,6 +281,7 @@ LUA_API int (lua_error) (lua_State *L);
281LUA_API int (lua_next) (lua_State *L, int idx); 281LUA_API int (lua_next) (lua_State *L, int idx);
282 282
283LUA_API void (lua_concat) (lua_State *L, int n); 283LUA_API void (lua_concat) (lua_State *L, int n);
284LUA_API void (lua_len) (lua_State *L, int idx);
284 285
285LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); 286LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud);
286LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); 287LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud);
@@ -326,7 +327,9 @@ LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud);
326*/ 327*/
327#if defined(LUA_COMPAT_API) 328#if defined(LUA_COMPAT_API)
328 329
329#define lua_strlen(L,i) lua_objlen(L, (i)) 330#define lua_strlen(L,i) lua_rawlen(L, (i))
331
332#define lua_objlen(L,i) lua_rawlen(L, (i))
330 333
331#define lua_open() luaL_newstate() 334#define lua_open() luaL_newstate()
332 335