no more "Bool" type

This commit is contained in:
Roberto Ierusalimschy 1996-02-07 12:13:17 -02:00
parent a0ef046ef1
commit 995a9f7188
3 changed files with 5 additions and 7 deletions

4
hash.c
View File

@ -3,7 +3,7 @@
** hash manager for lua
*/
char *rcs_hash="$Id: hash.c,v 2.25 1995/05/02 18:43:03 roberto Exp $";
char *rcs_hash="$Id: hash.c,v 2.26 1995/10/04 14:20:26 roberto Exp roberto $";
#include <string.h>
@ -80,7 +80,7 @@ static Word hashindex (Hash *t, Object *ref) /* hash function */
}
}
Bool lua_equalObj (Object *t1, Object *t2)
int lua_equalObj (Object *t1, Object *t2)
{
if (tag(t1) != tag(t2)) return 0;
switch (tag(t1))

4
hash.h
View File

@ -2,7 +2,7 @@
** hash.h
** hash manager for lua
** Luiz Henrique de Figueiredo - 17 Aug 90
** $Id: hash.h,v 2.7 1994/12/20 21:20:36 roberto Exp roberto $
** $Id: hash.h,v 2.8 1995/01/12 14:19:04 roberto Exp roberto $
*/
#ifndef hash_h
@ -26,7 +26,7 @@ typedef struct Hash
} Hash;
Bool lua_equalObj (Object *t1, Object *t2);
int lua_equalObj (Object *t1, Object *t2);
Hash *lua_createarray (Word nhash);
void lua_hashmark (Hash *h);
Long lua_hashcollector (void);

View File

@ -1,6 +1,6 @@
/*
** TeCGraf - PUC-Rio
** $Id: types.h,v 1.2 1994/12/27 20:41:47 celes Exp roberto $
** $Id: types.h,v 1.3 1995/02/06 19:32:43 roberto Exp roberto $
*/
#ifndef types_h
@ -12,8 +12,6 @@
#define real float
#endif
typedef int Bool; /* boolean values */
#define Byte lua_Byte /* some systems have Byte as a predefined type */
typedef unsigned char Byte; /* unsigned 8 bits */