aboutsummaryrefslogtreecommitdiff
path: root/lbuiltin.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-03-29 17:19:20 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-03-29 17:19:20 -0300
commita69356e9e0a7525b1cebadc928a0efcce8c39b46 (patch)
treec676ee2997c699d3e0b036323ecbafa7ea0d786f /lbuiltin.c
parentb53dc0c4853c56694dda727793e5f6188de39dd8 (diff)
downloadlua-a69356e9e0a7525b1cebadc928a0efcce8c39b46.tar.gz
lua-a69356e9e0a7525b1cebadc928a0efcce8c39b46.tar.bz2
lua-a69356e9e0a7525b1cebadc928a0efcce8c39b46.zip
no more special cases for closures with 0 upvalues (performance is the same,
memory use a little higher, code much simpler).
Diffstat (limited to 'lbuiltin.c')
-rw-r--r--lbuiltin.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lbuiltin.c b/lbuiltin.c
index eadce4ec..8bd20248 100644
--- a/lbuiltin.c
+++ b/lbuiltin.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbuiltin.c,v 1.98 2000/03/27 20:08:02 roberto Exp roberto $ 2** $Id: lbuiltin.c,v 1.99 2000/03/27 20:10:21 roberto Exp roberto $
3** Built-in functions 3** Built-in functions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -386,12 +386,6 @@ void luaB_tostring (lua_State *L) {
386 case TAG_LCLOSURE: case TAG_CCLOSURE: 386 case TAG_LCLOSURE: case TAG_CCLOSURE:
387 sprintf(buff, "function: %p", o->value.cl); 387 sprintf(buff, "function: %p", o->value.cl);
388 break; 388 break;
389 case TAG_LPROTO:
390 sprintf(buff, "function: %p", o->value.tf);
391 break;
392 case TAG_CPROTO:
393 sprintf(buff, "function: %p", o->value.f);
394 break;
395 case TAG_USERDATA: 389 case TAG_USERDATA:
396 sprintf(buff, "userdata: %p(%d)", o->value.ts->u.d.value, 390 sprintf(buff, "userdata: %p(%d)", o->value.ts->u.d.value,
397 o->value.ts->u.d.tag); 391 o->value.ts->u.d.tag);