diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-03-04 10:29:10 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-03-04 10:29:10 -0300 |
commit | 74102bd7168698ea7fce423009d390fdf40ecb6c (patch) | |
tree | 56884e2ca715890dd6d683bd6ab205cff5ccfa6c | |
parent | 8d82aa821a399fc08f87c5c4358654d3e375d5da (diff) | |
download | lua-74102bd7168698ea7fce423009d390fdf40ecb6c.tar.gz lua-74102bd7168698ea7fce423009d390fdf40ecb6c.tar.bz2 lua-74102bd7168698ea7fce423009d390fdf40ecb6c.zip |
small corrections.
-rw-r--r-- | fallback.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** TecCGraf - PUC-Rio | 3 | ** TecCGraf - PUC-Rio |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_fallback="$Id: fallback.c,v 1.19 1996/02/08 19:08:34 roberto Exp roberto $"; | 6 | char *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 | ||
118 | static Object *lockArray = NULL; | 118 | static Object *lockArray = NULL; |
119 | static Word lockSize = 0; | 119 | static int lockSize = 0; |
120 | 120 | ||
121 | int luaI_lock (Object *object) | 121 | int 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 | ||
161 | void luaI_travlock (int (*fn)(Object *)) | 161 | void 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 | ||
169 | char *luaI_travfallbacks (int (*fn)(Object *)) | 169 | char *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; |