aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-23 14:17:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-23 14:17:25 -0300
commit39b79783297bee79db9853b63d199e120a009a8f (patch)
treec738c621c4c28d8822c2f785400786301985273b /lobject.h
parentd164e2294f73d8e69f00d95a66014514b2dd0ec0 (diff)
downloadlua-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.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/lobject.h b/lobject.h
index 74f3c616..245a5d29 100644
--- a/lobject.h
+++ b/lobject.h
@@ -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 {
220extern const TObject luaO_nilobject; 220extern const TObject luaO_nilobject;
221 221
222 222
223char *luaO_openspace (lua_State *L, size_t n); 223l_char *luaO_openspace (lua_State *L, size_t n);
224 224
225int luaO_equalObj (const TObject *t1, const TObject *t2); 225int luaO_equalObj (const TObject *t1, const TObject *t2);
226int luaO_str2d (const char *s, lua_Number *result); 226int luaO_str2d (const l_char *s, lua_Number *result);
227 227
228void luaO_verror (lua_State *L, const char *fmt, ...); 228void luaO_verror (lua_State *L, const l_char *fmt, ...);
229void luaO_chunkid (char *out, const char *source, int len); 229void luaO_chunkid (l_char *out, const l_char *source, int len);
230 230
231 231
232#endif 232#endif