diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-11-24 15:39:56 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-11-24 15:39:56 -0200 |
| commit | 96253ed8ceb38afa50887ccb5500442b5b220f08 (patch) | |
| tree | 4b42b80f781b0cbe95782f8e8ebec06d85e80ae4 /lobject.h | |
| parent | 35d6b1505702b0f4a2eee0e6d2f8dfc50943a1a7 (diff) | |
| download | lua-96253ed8ceb38afa50887ccb5500442b5b220f08.tar.gz lua-96253ed8ceb38afa50887ccb5500442b5b220f08.tar.bz2 lua-96253ed8ceb38afa50887ccb5500442b5b220f08.zip | |
better support for 64-bit machines (avoid excessive use of longs)
Diffstat (limited to 'lobject.h')
| -rw-r--r-- | lobject.h | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lobject.h,v 1.81 2000/10/30 16:29:59 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.82 2000/10/30 17:49:19 roberto Exp roberto $ |
| 3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -82,7 +82,7 @@ typedef struct lua_TObject { | |||
| 82 | typedef struct TString { | 82 | typedef struct TString { |
| 83 | union { | 83 | union { |
| 84 | struct { /* for strings */ | 84 | struct { /* for strings */ |
| 85 | unsigned long hash; | 85 | luint32 hash; |
| 86 | int constindex; /* hint to reuse constants */ | 86 | int constindex; /* hint to reuse constants */ |
| 87 | } s; | 87 | } s; |
| 88 | struct { /* for userdata */ | 88 | struct { /* for userdata */ |
| @@ -191,7 +191,7 @@ extern const char *const luaO_typenames[]; | |||
| 191 | #define luaO_typename(o) (luaO_typenames[ttype(o)]) | 191 | #define luaO_typename(o) (luaO_typenames[ttype(o)]) |
| 192 | 192 | ||
| 193 | 193 | ||
| 194 | lint32 luaO_power2 (lint32 n); | 194 | luint32 luaO_power2 (luint32 n); |
| 195 | char *luaO_openspace (lua_State *L, size_t n); | 195 | char *luaO_openspace (lua_State *L, size_t n); |
| 196 | 196 | ||
| 197 | int luaO_equalObj (const TObject *t1, const TObject *t2); | 197 | int luaO_equalObj (const TObject *t1, const TObject *t2); |
