mirror of
https://github.com/lua/lua
synced 2024-11-26 22:59:35 +03:00
no more "Bool" type
This commit is contained in:
parent
a0ef046ef1
commit
995a9f7188
4
hash.c
4
hash.c
@ -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
4
hash.h
@ -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);
|
||||
|
4
types.h
4
types.h
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user