aboutsummaryrefslogtreecommitdiff
path: root/fallback.c
diff options
context:
space:
mode:
Diffstat (limited to 'fallback.c')
-rw-r--r--fallback.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fallback.c b/fallback.c
index 9d2db515..9523318c 100644
--- a/fallback.c
+++ b/fallback.c
@@ -3,7 +3,7 @@
3** TecCGraf - PUC-Rio 3** TecCGraf - PUC-Rio
4*/ 4*/
5 5
6char *rcs_fallback="$Id: fallback.c,v 1.23 1996/03/21 16:31:32 roberto Exp roberto $"; 6char *rcs_fallback="$Id: fallback.c,v 1.24 1996/04/22 18:00:37 roberto Exp roberto $";
7 7
8#include <stdio.h> 8#include <stdio.h>
9#include <string.h> 9#include <string.h>
@@ -122,7 +122,7 @@ static struct ref {
122} *refArray = NULL; 122} *refArray = NULL;
123static int refSize = 0; 123static int refSize = 0;
124 124
125lua_Reference luaI_ref (Object *object, int lock) 125int luaI_ref (Object *object, int lock)
126{ 126{
127 int i; 127 int i;
128 int oldSize; 128 int oldSize;
@@ -144,14 +144,14 @@ lua_Reference luaI_ref (Object *object, int lock)
144} 144}
145 145
146 146
147void lua_unref (lua_Reference ref) 147void lua_unref (int ref)
148{ 148{
149 if (ref >= 0 && ref < refSize) 149 if (ref >= 0 && ref < refSize)
150 refArray[ref].status = FREE; 150 refArray[ref].status = FREE;
151} 151}
152 152
153 153
154Object *luaI_getref (lua_Reference ref) 154Object *luaI_getref (int ref)
155{ 155{
156 static Object nul = {LUA_T_NIL, {0}}; 156 static Object nul = {LUA_T_NIL, {0}};
157 if (ref == -1) 157 if (ref == -1)