diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 17:32:32 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 17:32:32 -0300 |
| commit | 1e40b4dc615b7838305ea738bdd8e069adc0180f (patch) | |
| tree | 705bf8873e8e30fc042d3457e466309901de9e4f /lobject.h | |
| parent | dfd7ce74cf040dba710657963db0144201823670 (diff) | |
| download | lua-1e40b4dc615b7838305ea738bdd8e069adc0180f.tar.gz lua-1e40b4dc615b7838305ea738bdd8e069adc0180f.tar.bz2 lua-1e40b4dc615b7838305ea738bdd8e069adc0180f.zip | |
buffer should be void *, as char now is not that neutral...
+ little bug in pointer arithmetic
Diffstat (limited to 'lobject.h')
| -rw-r--r-- | lobject.h | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lobject.h,v 1.97 2001/02/20 18:28:11 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.98 2001/02/23 17:17:25 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 | */ |
| @@ -117,7 +117,7 @@ union L_UTString { | |||
| 117 | 117 | ||
| 118 | 118 | ||
| 119 | 119 | ||
| 120 | #define getstr(ts) ((l_char *)(ts) + sizeof(union L_UTString)) | 120 | #define getstr(ts) ((l_char *)((lu_byte *)(ts) + sizeof(union L_UTString))) |
| 121 | #define svalue(o) getstr(tsvalue(o)) | 121 | #define svalue(o) getstr(tsvalue(o)) |
| 122 | 122 | ||
| 123 | 123 | ||
| @@ -220,7 +220,8 @@ typedef struct CallInfo { | |||
| 220 | extern const TObject luaO_nilobject; | 220 | extern const TObject luaO_nilobject; |
| 221 | 221 | ||
| 222 | 222 | ||
| 223 | l_char *luaO_openspace (lua_State *L, size_t n); | 223 | #define luaO_openspace(L,n,t) ((t *)luaO_openspaceaux(L,(n)*sizeof(t))) |
| 224 | void *luaO_openspaceaux (lua_State *L, size_t n); | ||
| 224 | 225 | ||
| 225 | int luaO_equalObj (const TObject *t1, const TObject *t2); | 226 | int luaO_equalObj (const TObject *t1, const TObject *t2); |
| 226 | int luaO_str2d (const l_char *s, lua_Number *result); | 227 | int luaO_str2d (const l_char *s, lua_Number *result); |
