summaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-06 15:00:19 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-06 15:00:19 -0300
commitd5b83ead90fba27faa344c72406d85987d2460a4 (patch)
tree96d73c1b872b6b01a28c0586b871d37185034ba9 /ltm.c
parentda673d31aaa05e8dff60c0b601b9f15c4f9182a8 (diff)
downloadlua-d5b83ead90fba27faa344c72406d85987d2460a4.tar.gz
lua-d5b83ead90fba27faa344c72406d85987d2460a4.tar.bz2
lua-d5b83ead90fba27faa344c72406d85987d2460a4.zip
new implementation for userdatas, without `keys'
Diffstat (limited to 'ltm.c')
-rw-r--r--ltm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltm.c b/ltm.c
index b66d3d46..756728cf 100644
--- a/ltm.c
+++ b/ltm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.c,v 1.70 2001/03/02 17:27:50 roberto Exp roberto $ 2** $Id: ltm.c,v 1.71 2001/03/26 14:31:49 roberto Exp roberto $
3** Tag methods 3** Tag methods
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -127,7 +127,7 @@ LUA_API int lua_copytagmethods (lua_State *L, int tagto, int tagfrom) {
127int luaT_tag (const TObject *o) { 127int luaT_tag (const TObject *o) {
128 int t = ttype(o); 128 int t = ttype(o);
129 switch (t) { 129 switch (t) {
130 case LUA_TUSERDATA: return tsvalue(o)->u.d.tag; 130 case LUA_TUSERDATA: return uvalue(o)->tag;
131 case LUA_TTABLE: return hvalue(o)->htag; 131 case LUA_TTABLE: return hvalue(o)->htag;
132 default: return t; 132 default: return t;
133 } 133 }
@@ -140,7 +140,7 @@ const l_char *luaT_typename (global_State *G, const TObject *o) {
140 TString *ts; 140 TString *ts;
141 switch (t) { 141 switch (t) {
142 case LUA_TUSERDATA: 142 case LUA_TUSERDATA:
143 tag = tsvalue(o)->u.d.tag; 143 tag = uvalue(o)->tag;
144 break; 144 break;
145 case LUA_TTABLE: 145 case LUA_TTABLE:
146 tag = hvalue(o)->htag; 146 tag = hvalue(o)->htag;