diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-20 14:39:03 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-20 14:39:03 -0200 |
commit | 64eecc0b8219cc3bcaa2b717826a4376c60d9305 (patch) | |
tree | a1633501cdf21016a00bd555c475daea58ec24f5 /ltm.c | |
parent | 8b88ab07f7cfc216407a88d75ad8f0546224c8d7 (diff) | |
download | lua-64eecc0b8219cc3bcaa2b717826a4376c60d9305.tar.gz lua-64eecc0b8219cc3bcaa2b717826a4376c60d9305.tar.bz2 lua-64eecc0b8219cc3bcaa2b717826a4376c60d9305.zip |
new macro LUA_API
Diffstat (limited to 'ltm.c')
-rw-r--r-- | ltm.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltm.c,v 1.53 2000/10/05 12:14:08 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 1.54 2000/10/05 13:00:17 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 | */ |
@@ -83,7 +83,7 @@ void luaT_init (lua_State *L) { | |||
83 | } | 83 | } |
84 | 84 | ||
85 | 85 | ||
86 | int lua_newtag (lua_State *L) { | 86 | LUA_API int lua_newtag (lua_State *L) { |
87 | luaM_growvector(L, L->TMtable, L->last_tag, 1, struct TM, | 87 | luaM_growvector(L, L->TMtable, L->last_tag, 1, struct TM, |
88 | "tag table overflow", MAX_INT); | 88 | "tag table overflow", MAX_INT); |
89 | L->nblocks += sizeof(struct TM); | 89 | L->nblocks += sizeof(struct TM); |
@@ -104,7 +104,7 @@ void luaT_realtag (lua_State *L, int tag) { | |||
104 | } | 104 | } |
105 | 105 | ||
106 | 106 | ||
107 | int lua_copytagmethods (lua_State *L, int tagto, int tagfrom) { | 107 | LUA_API int lua_copytagmethods (lua_State *L, int tagto, int tagfrom) { |
108 | int e; | 108 | int e; |
109 | checktag(L, tagto); | 109 | checktag(L, tagto); |
110 | checktag(L, tagfrom); | 110 | checktag(L, tagfrom); |
@@ -126,7 +126,7 @@ int luaT_tag (const TObject *o) { | |||
126 | } | 126 | } |
127 | 127 | ||
128 | 128 | ||
129 | void lua_gettagmethod (lua_State *L, int t, const char *event) { | 129 | LUA_API void lua_gettagmethod (lua_State *L, int t, const char *event) { |
130 | int e; | 130 | int e; |
131 | e = luaI_checkevent(L, event, t); | 131 | e = luaI_checkevent(L, event, t); |
132 | checktag(L, t); | 132 | checktag(L, t); |
@@ -140,7 +140,7 @@ void lua_gettagmethod (lua_State *L, int t, const char *event) { | |||
140 | } | 140 | } |
141 | 141 | ||
142 | 142 | ||
143 | void lua_settagmethod (lua_State *L, int t, const char *event) { | 143 | LUA_API void lua_settagmethod (lua_State *L, int t, const char *event) { |
144 | Closure *oldtm; | 144 | Closure *oldtm; |
145 | int e = luaI_checkevent(L, event, t); | 145 | int e = luaI_checkevent(L, event, t); |
146 | checktag(L, t); | 146 | checktag(L, t); |