aboutsummaryrefslogtreecommitdiff
path: root/func.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-07-30 19:00:50 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-07-30 19:00:50 -0300
commit0892f0e5b75c51f1fee07276a3ba13301b83409e (patch)
tree9f3b9ec92f26c05a85c826ffc5f803fda2f48867 /func.h
parent1d7857bc635c0bfe7c5b1f325d31feb7660e9a5a (diff)
downloadlua-0892f0e5b75c51f1fee07276a3ba13301b83409e.tar.gz
lua-0892f0e5b75c51f1fee07276a3ba13301b83409e.tar.bz2
lua-0892f0e5b75c51f1fee07276a3ba13301b83409e.zip
BIG CHANGE: functions have their own "constant table".
Diffstat (limited to 'func.h')
-rw-r--r--func.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/func.h b/func.h
index 14f6554c..5af43056 100644
--- a/func.h
+++ b/func.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: func.h,v 1.10 1997/07/29 19:44:02 roberto Exp roberto $ 2** $Id: func.h,v 1.11 1997/07/29 20:38:45 roberto Exp roberto $
3*/ 3*/
4 4
5#ifndef func_h 5#ifndef func_h
@@ -25,16 +25,16 @@ typedef struct TFunc
25 int marked; 25 int marked;
26 Byte *code; 26 Byte *code;
27 int lineDefined; 27 int lineDefined;
28 char *fileName; 28 TaggedString *fileName;
29 struct TObject *consts;
30 int nconsts;
29 LocVar *locvars; 31 LocVar *locvars;
30} TFunc; 32} TFunc;
31 33
32TFunc *luaI_funccollector (long *cont); 34TFunc *luaI_funccollector (long *cont);
33void luaI_funcfree (TFunc *l); 35void luaI_funcfree (TFunc *l);
34void luaI_insertfunction (TFunc *f); 36void luaI_funcmark (TFunc *f);
35
36void luaI_initTFunc (TFunc *f); 37void luaI_initTFunc (TFunc *f);
37void luaI_freefunc (TFunc *f);
38 38
39char *luaI_getlocalname (TFunc *func, int local_number, int line); 39char *luaI_getlocalname (TFunc *func, int local_number, int line);
40 40