summaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-20 14:39:03 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-20 14:39:03 -0200
commit64eecc0b8219cc3bcaa2b717826a4376c60d9305 (patch)
treea1633501cdf21016a00bd555c475daea58ec24f5 /ltm.c
parent8b88ab07f7cfc216407a88d75ad8f0546224c8d7 (diff)
downloadlua-64eecc0b8219cc3bcaa2b717826a4376c60d9305.tar.gz
lua-64eecc0b8219cc3bcaa2b717826a4376c60d9305.tar.bz2
lua-64eecc0b8219cc3bcaa2b717826a4376c60d9305.zip
new macro LUA_API
Diffstat (limited to 'ltm.c')
-rw-r--r--ltm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ltm.c b/ltm.c
index 1f0ac830..ce4fd89a 100644
--- a/ltm.c
+++ b/ltm.c
@@ -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
86int lua_newtag (lua_State *L) { 86LUA_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
107int lua_copytagmethods (lua_State *L, int tagto, int tagfrom) { 107LUA_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
129void lua_gettagmethod (lua_State *L, int t, const char *event) { 129LUA_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
143void lua_settagmethod (lua_State *L, int t, const char *event) { 143LUA_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);