diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-04-25 13:55:09 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-04-25 13:55:09 -0300 |
commit | 534c3a64d3b47585b415f229aa03af35f9a4796e (patch) | |
tree | bda9de835dbeff8b73ed5f0977e81dc9573ad046 /lobject.h | |
parent | b9c98cd4d97774d703a48fefd56c66f552e0cd83 (diff) | |
download | lua-534c3a64d3b47585b415f229aa03af35f9a4796e.tar.gz lua-534c3a64d3b47585b415f229aa03af35f9a4796e.tar.bz2 lua-534c3a64d3b47585b415f229aa03af35f9a4796e.zip |
small optimizations for table access
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 1.59 2000/03/31 16:28:45 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.60 2000/04/10 19:20:24 roberto Exp roberto $ |
3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -180,8 +180,7 @@ extern const TObject luaO_nilobject; | |||
180 | 180 | ||
181 | unsigned long luaO_power2 (unsigned long n); | 181 | unsigned long luaO_power2 (unsigned long n); |
182 | 182 | ||
183 | #define luaO_equalObj(t1,t2) (ttype(t1) == ttype(t2) && luaO_equalval(t1,t2)) | 183 | int luaO_equalObj (const TObject *t1, const TObject *t2); |
184 | int luaO_equalval (const TObject *t1, const TObject *t2); | ||
185 | int luaO_redimension (lua_State *L, int oldsize); | 184 | int luaO_redimension (lua_State *L, int oldsize); |
186 | int luaO_str2d (const char *s, Number *result); | 185 | int luaO_str2d (const char *s, Number *result); |
187 | 186 | ||