better support for 64-bit machines (avoid excessive use of longs)

This commit is contained in:
Roberto Ierusalimschy
2000-11-24 15:39:56 -02:00
parent 35d6b15057
commit 96253ed8ce
15 changed files with 85 additions and 72 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lstate.h,v 1.40 2000/09/29 12:42:13 roberto Exp roberto $
** $Id: lstate.h,v 1.41 2000/10/05 13:00:17 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -37,7 +37,7 @@ struct TM; /* defined in ltm.h */
typedef struct stringtable {
int size;
lint32 nuse; /* number of elements */
luint32 nuse; /* number of elements */
TString **hash;
} stringtable;
@@ -65,8 +65,8 @@ struct lua_State {
struct Ref *refArray; /* locked objects */
int refSize; /* size of refArray */
int refFree; /* list of free positions in refArray */
unsigned long GCthreshold;
unsigned long nblocks; /* number of `bytes' currently allocated */
mem_int GCthreshold;
mem_int nblocks; /* number of `bytes' currently allocated */
lua_Hook callhook;
lua_Hook linehook;
int allowhooks;