aboutsummaryrefslogtreecommitdiff
path: root/lref.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-12-23 16:19:57 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-12-23 16:19:57 -0200
commitb1b0c219f5255a0cd0921ebc0a77a81f99b72532 (patch)
tree7cb4d9cbbdb1309b94794eb75694b02f2b08f75a /lref.c
parentbe3212de781786c0a68365dee1d3510407b5c325 (diff)
downloadlua-b1b0c219f5255a0cd0921ebc0a77a81f99b72532.tar.gz
lua-b1b0c219f5255a0cd0921ebc0a77a81f99b72532.tar.bz2
lua-b1b0c219f5255a0cd0921ebc0a77a81f99b72532.zip
new ttypes to distinguish between C closures and Lua closures.
Diffstat (limited to 'lref.c')
-rw-r--r--lref.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/lref.c b/lref.c
index c2e90d38..2b24ecd3 100644
--- a/lref.c
+++ b/lref.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lref.c,v 1.3 1999/11/22 13:12:07 roberto Exp roberto $ 2** $Id: lref.c,v 1.4 1999/12/14 18:31:20 roberto Exp roberto $
3** REF mechanism 3** REF mechanism
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -85,15 +85,10 @@ static int ismarked (const TObject *o) {
85 return o->value.ts->marked; 85 return o->value.ts->marked;
86 case LUA_T_ARRAY: 86 case LUA_T_ARRAY:
87 return o->value.a->marked; 87 return o->value.a->marked;
88 case LUA_T_CLOSURE: 88 case LUA_T_LCLOSURE: case LUA_T_CCLOSURE:
89 return o->value.cl->marked; 89 return o->value.cl->marked;
90 case LUA_T_PROTO: 90 case LUA_T_LPROTO:
91 return o->value.tf->marked; 91 return o->value.tf->marked;
92#ifdef DEBUG
93 case LUA_T_LINE: case LUA_T_CLMARK:
94 case LUA_T_CMARK: case LUA_T_PMARK:
95 LUA_INTERNALERROR(L, "invalid type");
96#endif
97 default: /* number or cproto */ 92 default: /* number or cproto */
98 return 1; 93 return 1;
99 } 94 }