diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 14:17:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 14:17:25 -0300 |
commit | 39b79783297bee79db9853b63d199e120a009a8f (patch) | |
tree | c738c621c4c28d8822c2f785400786301985273b /lobject.h | |
parent | d164e2294f73d8e69f00d95a66014514b2dd0ec0 (diff) | |
download | lua-39b79783297bee79db9853b63d199e120a009a8f.tar.gz lua-39b79783297bee79db9853b63d199e120a009a8f.tar.bz2 lua-39b79783297bee79db9853b63d199e120a009a8f.zip |
first (big) step to support wide chars
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 1.96 2001/02/20 18:15:33 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.97 2001/02/20 18:28:11 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) ((char *)(ts) + sizeof(union L_UTString)) | 120 | #define getstr(ts) ((l_char *)(ts) + sizeof(union L_UTString)) |
121 | #define svalue(o) getstr(tsvalue(o)) | 121 | #define svalue(o) getstr(tsvalue(o)) |
122 | 122 | ||
123 | 123 | ||
@@ -200,7 +200,7 @@ typedef struct Hash { | |||
200 | 200 | ||
201 | 201 | ||
202 | /* | 202 | /* |
203 | ** "module" operation for hashing (size is always a power of 2) | 203 | ** `module' operation for hashing (size is always a power of 2) |
204 | */ | 204 | */ |
205 | #define lmod(s,size) ((int)((s) & ((size)-1))) | 205 | #define lmod(s,size) ((int)((s) & ((size)-1))) |
206 | 206 | ||
@@ -220,13 +220,13 @@ typedef struct CallInfo { | |||
220 | extern const TObject luaO_nilobject; | 220 | extern const TObject luaO_nilobject; |
221 | 221 | ||
222 | 222 | ||
223 | char *luaO_openspace (lua_State *L, size_t n); | 223 | l_char *luaO_openspace (lua_State *L, size_t n); |
224 | 224 | ||
225 | int luaO_equalObj (const TObject *t1, const TObject *t2); | 225 | int luaO_equalObj (const TObject *t1, const TObject *t2); |
226 | int luaO_str2d (const char *s, lua_Number *result); | 226 | int luaO_str2d (const l_char *s, lua_Number *result); |
227 | 227 | ||
228 | void luaO_verror (lua_State *L, const char *fmt, ...); | 228 | void luaO_verror (lua_State *L, const l_char *fmt, ...); |
229 | void luaO_chunkid (char *out, const char *source, int len); | 229 | void luaO_chunkid (l_char *out, const l_char *source, int len); |
230 | 230 | ||
231 | 231 | ||
232 | #endif | 232 | #endif |