aboutsummaryrefslogtreecommitdiff
path: root/lfunc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lfunc.c')
-rw-r--r--lfunc.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/lfunc.c b/lfunc.c
index 65d99d9d..c2ea14f4 100644
--- a/lfunc.c
+++ b/lfunc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lfunc.c,v 1.16 1999/12/27 17:33:22 roberto Exp roberto $ 2** $Id: lfunc.c,v 1.17 2000/01/25 13:57:18 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*/
@@ -34,12 +34,12 @@ TProtoFunc *luaF_newproto (lua_State *L) {
34 f->code = NULL; 34 f->code = NULL;
35 f->lineDefined = 0; 35 f->lineDefined = 0;
36 f->source = NULL; 36 f->source = NULL;
37 f->strcnst = NULL; 37 f->kstr = NULL;
38 f->nstrcnst = 0; 38 f->nkstr = 0;
39 f->numcnst = NULL; 39 f->knum = NULL;
40 f->nnumcnst = 0; 40 f->nknum = 0;
41 f->protocnst = NULL; 41 f->kproto = NULL;
42 f->nprotocnst = 0; 42 f->nkproto = 0;
43 f->locvars = NULL; 43 f->locvars = NULL;
44 f->next = L->rootproto; 44 f->next = L->rootproto;
45 L->rootproto = f; 45 L->rootproto = f;
@@ -53,9 +53,9 @@ void luaF_freeproto (lua_State *L, TProtoFunc *f) {
53 L->nblocks -= gcsizeproto(L, f); 53 L->nblocks -= gcsizeproto(L, f);
54 luaM_free(L, f->code); 54 luaM_free(L, f->code);
55 luaM_free(L, f->locvars); 55 luaM_free(L, f->locvars);
56 luaM_free(L, f->strcnst); 56 luaM_free(L, f->kstr);
57 luaM_free(L, f->numcnst); 57 luaM_free(L, f->knum);
58 luaM_free(L, f->protocnst); 58 luaM_free(L, f->kproto);
59 luaM_free(L, f); 59 luaM_free(L, f);
60} 60}
61 61