diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-23 16:19:57 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-23 16:19:57 -0200 |
commit | b1b0c219f5255a0cd0921ebc0a77a81f99b72532 (patch) | |
tree | 7cb4d9cbbdb1309b94794eb75694b02f2b08f75a /ltable.c | |
parent | be3212de781786c0a68365dee1d3510407b5c325 (diff) | |
download | lua-b1b0c219f5255a0cd0921ebc0a77a81f99b72532.tar.gz lua-b1b0c219f5255a0cd0921ebc0a77a81f99b72532.tar.bz2 lua-b1b0c219f5255a0cd0921ebc0a77a81f99b72532.zip |
new ttypes to distinguish between C closures and Lua closures.
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 1.31 1999/11/26 18:59:20 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 1.32 1999/12/07 12:05:34 roberto Exp roberto $ |
3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -52,13 +52,13 @@ Node *luaH_mainposition (const Hash *t, const TObject *key) { | |||
52 | case LUA_T_ARRAY: | 52 | case LUA_T_ARRAY: |
53 | h = IntPoint(L, avalue(key)); | 53 | h = IntPoint(L, avalue(key)); |
54 | break; | 54 | break; |
55 | case LUA_T_PROTO: | 55 | case LUA_T_LPROTO: |
56 | h = IntPoint(L, tfvalue(key)); | 56 | h = IntPoint(L, tfvalue(key)); |
57 | break; | 57 | break; |
58 | case LUA_T_CPROTO: | 58 | case LUA_T_CPROTO: |
59 | h = IntPoint(L, fvalue(key)); | 59 | h = IntPoint(L, fvalue(key)); |
60 | break; | 60 | break; |
61 | case LUA_T_CLOSURE: | 61 | case LUA_T_LCLOSURE: case LUA_T_CCLOSURE: |
62 | h = IntPoint(L, clvalue(key)); | 62 | h = IntPoint(L, clvalue(key)); |
63 | break; | 63 | break; |
64 | default: | 64 | default: |