diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-08 15:26:05 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-08 15:26:05 -0300 |
commit | f90bc248b3c3c18941a96038b2a7517ad571d8b1 (patch) | |
tree | 696583e7b4f462d01b07b8510faecd47b9baaf62 /lfunc.c | |
parent | d9e61e8ceafe8c3f6ad936979719ca7c446ce228 (diff) | |
download | lua-f90bc248b3c3c18941a96038b2a7517ad571d8b1.tar.gz lua-f90bc248b3c3c18941a96038b2a7517ad571d8b1.tar.bz2 lua-f90bc248b3c3c18941a96038b2a7517ad571d8b1.zip |
new structure for line information
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.25 2000/06/26 19:28:31 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 1.26 2000/08/07 20:21:34 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,7 +35,7 @@ Closure *luaF_newclosure (lua_State *L, int nelems) { | |||
35 | Proto *luaF_newproto (lua_State *L) { | 35 | Proto *luaF_newproto (lua_State *L) { |
36 | Proto *f = luaM_new(L, Proto); | 36 | Proto *f = luaM_new(L, Proto); |
37 | f->code = NULL; | 37 | f->code = NULL; |
38 | f->lines = NULL; | 38 | f->lineinfo = NULL; |
39 | f->lineDefined = 0; | 39 | f->lineDefined = 0; |
40 | f->source = NULL; | 40 | f->source = NULL; |
41 | f->kstr = NULL; | 41 | f->kstr = NULL; |
@@ -60,7 +60,7 @@ void luaF_freeproto (lua_State *L, Proto *f) { | |||
60 | luaM_free(L, f->kstr); | 60 | luaM_free(L, f->kstr); |
61 | luaM_free(L, f->knum); | 61 | luaM_free(L, f->knum); |
62 | luaM_free(L, f->kproto); | 62 | luaM_free(L, f->kproto); |
63 | luaM_free(L, f->lines); | 63 | luaM_free(L, f->lineinfo); |
64 | luaM_free(L, f); | 64 | luaM_free(L, f); |
65 | } | 65 | } |
66 | 66 | ||