diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-05-31 15:27:56 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-05-31 15:27:56 -0300 |
commit | 821bd7025ea7ecf399e0b50f920a460b11c649c7 (patch) | |
tree | 98cd8aa59a2cc80b6d52b164cebcb2a46b457f4a /lvm.c | |
parent | 9b7dddad7d3f4546f838834d9674eaf0f2fca3dd (diff) | |
download | lua-821bd7025ea7ecf399e0b50f920a460b11c649c7.tar.gz lua-821bd7025ea7ecf399e0b50f920a460b11c649c7.tar.bz2 lua-821bd7025ea7ecf399e0b50f920a460b11c649c7.zip |
more uniform names for 'equalobj'-related functions
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.137 2011/05/05 16:16:33 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.138 2011/05/31 18:24:36 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -174,7 +174,7 @@ static const TValue *get_equalTM (lua_State *L, Table *mt1, Table *mt2, | |||
174 | if (mt1 == mt2) return tm1; /* same metatables => same metamethods */ | 174 | if (mt1 == mt2) return tm1; /* same metatables => same metamethods */ |
175 | tm2 = fasttm(L, mt2, event); | 175 | tm2 = fasttm(L, mt2, event); |
176 | if (tm2 == NULL) return NULL; /* no metamethod */ | 176 | if (tm2 == NULL) return NULL; /* no metamethod */ |
177 | if (luaV_rawequalObj(tm1, tm2)) /* same metamethods? */ | 177 | if (luaV_rawequalobj(tm1, tm2)) /* same metamethods? */ |
178 | return tm1; | 178 | return tm1; |
179 | return NULL; | 179 | return NULL; |
180 | } | 180 | } |
@@ -240,7 +240,7 @@ int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r) { | |||
240 | /* | 240 | /* |
241 | ** equality of Lua values. L == NULL means raw equality (no metamethods) | 241 | ** equality of Lua values. L == NULL means raw equality (no metamethods) |
242 | */ | 242 | */ |
243 | int luaV_equalval_ (lua_State *L, const TValue *t1, const TValue *t2) { | 243 | int luaV_equalobj_ (lua_State *L, const TValue *t1, const TValue *t2) { |
244 | const TValue *tm; | 244 | const TValue *tm; |
245 | lua_assert(ttisequal(t1, t2)); | 245 | lua_assert(ttisequal(t1, t2)); |
246 | switch (ttype(t1)) { | 246 | switch (ttype(t1)) { |