diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-24 10:54:49 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-24 10:54:49 -0300 |
commit | ef62b340e0a6b7b18931000dcbb19c4703bfe0e8 (patch) | |
tree | d9d995116a8a686b798d1b625b06ead26f28ba58 /ltm.c | |
parent | 5c2dd7a9e0a5b871a71ba66c4683cd88fe4f5aa4 (diff) | |
download | lua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.tar.gz lua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.tar.bz2 lua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.zip |
code cleaner for 16 bits.
Diffstat (limited to 'ltm.c')
-rw-r--r-- | ltm.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltm.c,v 1.38 2000/03/29 20:19:20 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 1.39 2000/03/30 16:41:51 roberto Exp roberto $ |
3 | ** Tag methods | 3 | ** Tag methods |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -67,7 +67,7 @@ static void init_entry (lua_State *L, int tag) { | |||
67 | void luaT_init (lua_State *L) { | 67 | void luaT_init (lua_State *L) { |
68 | int t; | 68 | int t; |
69 | L->last_tag = NUM_TAGS-1; | 69 | L->last_tag = NUM_TAGS-1; |
70 | luaM_growvector(L, L->IMtable, 0, NUM_TAGS, struct IM, arrEM, MAX_INT); | 70 | luaM_growvector(L, L->IMtable, 0, NUM_TAGS, struct IM, "", MAX_INT); |
71 | for (t=0; t<=L->last_tag; t++) | 71 | for (t=0; t<=L->last_tag; t++) |
72 | init_entry(L, t); | 72 | init_entry(L, t); |
73 | } | 73 | } |
@@ -75,7 +75,8 @@ void luaT_init (lua_State *L) { | |||
75 | 75 | ||
76 | int lua_newtag (lua_State *L) { | 76 | int lua_newtag (lua_State *L) { |
77 | ++L->last_tag; | 77 | ++L->last_tag; |
78 | luaM_growvector(L, L->IMtable, L->last_tag, 1, struct IM, arrEM, MAX_INT); | 78 | luaM_growvector(L, L->IMtable, L->last_tag, 1, struct IM, |
79 | "tag table overflow", MAX_INT); | ||
79 | init_entry(L, L->last_tag); | 80 | init_entry(L, L->last_tag); |
80 | return L->last_tag; | 81 | return L->last_tag; |
81 | } | 82 | } |