better control of integer types and their limits

This commit is contained in:
Roberto Ierusalimschy
1994-12-20 19:20:36 -02:00
parent fe8338335d
commit 8cb8594a3b
14 changed files with 148 additions and 143 deletions

View File

@@ -3,7 +3,7 @@
** TecCGraf - PUC-Rio
*/
char *rcs_fallback="$Id: fallback.c,v 1.8 1994/11/21 13:30:15 roberto Exp roberto $";
char *rcs_fallback="$Id: fallback.c,v 1.9 1994/11/21 18:22:58 roberto Stab roberto $";
#include <stdio.h>
@@ -116,12 +116,12 @@ static void funcFB (void)
*/
static Object *lockArray = NULL;
static int lockSize = 0;
static Word lockSize = 0;
int luaI_lock (Object *object)
{
int i;
int oldSize;
Word i;
Word oldSize;
if (tag(object) == LUA_T_NIL)
return -1;
for (i=0; i<lockSize; i++)
@@ -163,7 +163,7 @@ Object *luaI_getlocked (int ref)
void luaI_travlock (void (*fn)(Object *))
{
int i;
Word i;
for (i=0; i<lockSize; i++)
fn(&lockArray[i]);
}