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 /lua.h | |
| 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 'lua.h')
| -rw-r--r-- | lua.h | 9 |
1 files changed, 6 insertions, 3 deletions
| @@ -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); | |||
| 156 | LUA_API lua_Integer (lua_tointeger) (lua_State *L, int idx); | 156 | LUA_API lua_Integer (lua_tointeger) (lua_State *L, int idx); |
| 157 | LUA_API int (lua_toboolean) (lua_State *L, int idx); | 157 | LUA_API int (lua_toboolean) (lua_State *L, int idx); |
| 158 | LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); | 158 | LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); |
| 159 | LUA_API size_t (lua_objlen) (lua_State *L, int idx); | 159 | LUA_API size_t (lua_rawlen) (lua_State *L, int idx); |
| 160 | LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx); | 160 | LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx); |
| 161 | LUA_API void *(lua_touserdata) (lua_State *L, int idx); | 161 | LUA_API void *(lua_touserdata) (lua_State *L, int idx); |
| 162 | LUA_API lua_State *(lua_tothread) (lua_State *L, int idx); | 162 | LUA_API lua_State *(lua_tothread) (lua_State *L, int idx); |
| @@ -281,6 +281,7 @@ LUA_API int (lua_error) (lua_State *L); | |||
| 281 | LUA_API int (lua_next) (lua_State *L, int idx); | 281 | LUA_API int (lua_next) (lua_State *L, int idx); |
| 282 | 282 | ||
| 283 | LUA_API void (lua_concat) (lua_State *L, int n); | 283 | LUA_API void (lua_concat) (lua_State *L, int n); |
| 284 | LUA_API void (lua_len) (lua_State *L, int idx); | ||
| 284 | 285 | ||
| 285 | LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); | 286 | LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); |
| 286 | LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); | 287 | LUA_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 | ||
