aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-03-04 10:29:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-03-04 10:29:10 -0300
commit74102bd7168698ea7fce423009d390fdf40ecb6c (patch)
tree56884e2ca715890dd6d683bd6ab205cff5ccfa6c
parent8d82aa821a399fc08f87c5c4358654d3e375d5da (diff)
downloadlua-74102bd7168698ea7fce423009d390fdf40ecb6c.tar.gz
lua-74102bd7168698ea7fce423009d390fdf40ecb6c.tar.bz2
lua-74102bd7168698ea7fce423009d390fdf40ecb6c.zip
small corrections.
-rw-r--r--fallback.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fallback.c b/fallback.c
index 62732f6b..dfbd2fd2 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.19 1996/02/08 19:08:34 roberto Exp roberto $"; 6char *rcs_fallback="$Id: fallback.c,v 1.20 1996/02/22 20:34:33 roberto Exp roberto $";
7 7
8#include <stdio.h> 8#include <stdio.h>
9#include <string.h> 9#include <string.h>
@@ -116,12 +116,12 @@ static void funcFB (void)
116*/ 116*/
117 117
118static Object *lockArray = NULL; 118static Object *lockArray = NULL;
119static Word lockSize = 0; 119static int lockSize = 0;
120 120
121int luaI_lock (Object *object) 121int luaI_lock (Object *object)
122{ 122{
123 Word i; 123 int i;
124 Word oldSize; 124 int oldSize;
125 if (tag(object) == LUA_T_NIL) 125 if (tag(object) == LUA_T_NIL)
126 return -1; /* special lock ref for nil */ 126 return -1; /* special lock ref for nil */
127 for (i=0; i<lockSize; i++) 127 for (i=0; i<lockSize; i++)
@@ -160,7 +160,7 @@ Object *luaI_getlocked (int ref)
160 160
161void luaI_travlock (int (*fn)(Object *)) 161void luaI_travlock (int (*fn)(Object *))
162{ 162{
163 Word i; 163 int i;
164 for (i=0; i<lockSize; i++) 164 for (i=0; i<lockSize; i++)
165 fn(&lockArray[i]); 165 fn(&lockArray[i]);
166} 166}
@@ -168,7 +168,7 @@ void luaI_travlock (int (*fn)(Object *))
168 168
169char *luaI_travfallbacks (int (*fn)(Object *)) 169char *luaI_travfallbacks (int (*fn)(Object *))
170{ 170{
171 Word i; 171 int i;
172 for (i=0; i<N_FB; i++) 172 for (i=0; i<N_FB; i++)
173 if (fn(&luaI_fallBacks[i].function)) 173 if (fn(&luaI_fallBacks[i].function))
174 return luaI_fallBacks[i].kind; 174 return luaI_fallBacks[i].kind;