diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-03-18 09:50:04 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-03-18 09:50:04 -0300 |
commit | ab9e062928f7b9201fd5366a34a4fc855d13bc46 (patch) | |
tree | 37224175e0dd89badfccc6d745bdb5c850fd34c4 /lfunc.c | |
parent | 81cdbabf095e23bf9fb5cef842967acb499b7bcc (diff) | |
download | lua-ab9e062928f7b9201fd5366a34a4fc855d13bc46.tar.gz lua-ab9e062928f7b9201fd5366a34a4fc855d13bc46.tar.bz2 lua-ab9e062928f7b9201fd5366a34a4fc855d13bc46.zip |
name changes to avoid name collision between macros and variables
Diffstat (limited to 'lfunc.c')
-rw-r--r-- | lfunc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lfunc.c,v 1.65 2002/12/19 11:11:55 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 1.66 2003/02/11 10:46:24 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 | */ |
@@ -35,11 +35,11 @@ Closure *luaF_newCclosure (lua_State *L, int nelems) { | |||
35 | } | 35 | } |
36 | 36 | ||
37 | 37 | ||
38 | Closure *luaF_newLclosure (lua_State *L, int nelems, TObject *gt) { | 38 | Closure *luaF_newLclosure (lua_State *L, int nelems, TObject *e) { |
39 | Closure *c = cast(Closure *, luaM_malloc(L, sizeLclosure(nelems))); | 39 | Closure *c = cast(Closure *, luaM_malloc(L, sizeLclosure(nelems))); |
40 | luaC_link(L, valtogco(c), LUA_TFUNCTION); | 40 | luaC_link(L, valtogco(c), LUA_TFUNCTION); |
41 | c->l.isC = 0; | 41 | c->l.isC = 0; |
42 | c->l.g = *gt; | 42 | c->l.g = *e; |
43 | c->l.nupvalues = cast(lu_byte, nelems); | 43 | c->l.nupvalues = cast(lu_byte, nelems); |
44 | return c; | 44 | return c; |
45 | } | 45 | } |