diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-05 10:00:17 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-05 10:00:17 -0300 |
commit | 046a3d6173792b7d4d4d26a4e063e2fe383c10a7 (patch) | |
tree | efe5a4544585084ab6e8d301847cc8568a1cc955 /lstate.h | |
parent | 001f2bdd0e2f8803889c1b5164b57a51e44aef5b (diff) | |
download | lua-046a3d6173792b7d4d4d26a4e063e2fe383c10a7.tar.gz lua-046a3d6173792b7d4d4d26a4e063e2fe383c10a7.tar.bz2 lua-046a3d6173792b7d4d4d26a4e063e2fe383c10a7.zip |
tag methods are always functions, so don't need to store a whole object
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 1.39 2000/09/25 16:22:42 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 1.40 2000/09/29 12:42:13 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -32,6 +32,7 @@ struct Ref { | |||
32 | 32 | ||
33 | 33 | ||
34 | struct lua_longjmp; /* defined in ldo.c */ | 34 | struct lua_longjmp; /* defined in ldo.c */ |
35 | struct TM; /* defined in ltm.h */ | ||
35 | 36 | ||
36 | 37 | ||
37 | typedef struct stringtable { | 38 | typedef struct stringtable { |
@@ -59,8 +60,8 @@ struct lua_State { | |||
59 | stringtable strt; /* hash table for strings */ | 60 | stringtable strt; /* hash table for strings */ |
60 | stringtable udt; /* hash table for udata */ | 61 | stringtable udt; /* hash table for udata */ |
61 | Hash *gt; /* table for globals */ | 62 | Hash *gt; /* table for globals */ |
62 | struct IM *IMtable; /* table for tag methods */ | 63 | struct TM *TMtable; /* table for tag methods */ |
63 | int last_tag; /* last used tag in IMtable */ | 64 | int last_tag; /* last used tag in TMtable */ |
64 | struct Ref *refArray; /* locked objects */ | 65 | struct Ref *refArray; /* locked objects */ |
65 | int refSize; /* size of refArray */ | 66 | int refSize; /* size of refArray */ |
66 | int refFree; /* list of free positions in refArray */ | 67 | int refFree; /* list of free positions in refArray */ |