diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-01 15:40:48 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-01 15:40:48 -0200 |
| commit | e506b864cdc522ed7bf33e81d785fcfbd40a0368 (patch) | |
| tree | c62865ee026136cd8784658110e8928127ad276c /lfunc.c | |
| parent | 9a231afa9721e87ae5f9790dedcb73cd58472a3f (diff) | |
| download | lua-e506b864cdc522ed7bf33e81d785fcfbd40a0368.tar.gz lua-e506b864cdc522ed7bf33e81d785fcfbd40a0368.tar.bz2 lua-e506b864cdc522ed7bf33e81d785fcfbd40a0368.zip | |
no need for tags in boxed values :-(
Diffstat (limited to 'lfunc.c')
| -rw-r--r-- | lfunc.c | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lfunc.c,v 1.37 2001/01/19 13:20:30 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 1.38 2001/01/29 19:34:02 roberto Exp roberto $ |
| 3 | ** Auxiliary functions to manipulate prototypes and closures | 3 | ** Auxiliary functions to manipulate prototypes and closures |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -19,7 +19,6 @@ | |||
| 19 | 19 | ||
| 20 | Closure *luaF_newclosure (lua_State *L, int nelems) { | 20 | Closure *luaF_newclosure (lua_State *L, int nelems) { |
| 21 | Closure *c = (Closure *)luaM_malloc(L, sizeclosure(nelems)); | 21 | Closure *c = (Closure *)luaM_malloc(L, sizeclosure(nelems)); |
| 22 | c->v.ttype = LUA_TFUNCTION; | ||
| 23 | c->next = G(L)->rootcl; | 22 | c->next = G(L)->rootcl; |
| 24 | G(L)->rootcl = c; | 23 | G(L)->rootcl = c; |
| 25 | c->mark = c; | 24 | c->mark = c; |
