diff options
Diffstat (limited to 'apps/plugins/lua/lobject.h')
-rw-r--r-- | apps/plugins/lua/lobject.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugins/lua/lobject.h b/apps/plugins/lua/lobject.h index 93288fe0fb..26d2a81b49 100644 --- a/apps/plugins/lua/lobject.h +++ b/apps/plugins/lua/lobject.h | |||
@@ -201,13 +201,14 @@ typedef union TString { | |||
201 | struct { | 201 | struct { |
202 | CommonHeader; | 202 | CommonHeader; |
203 | lu_byte reserved; | 203 | lu_byte reserved; |
204 | lu_byte type; | ||
204 | unsigned int hash; | 205 | unsigned int hash; |
205 | size_t len; | 206 | size_t len; |
206 | } tsv; | 207 | } tsv; |
207 | } TString; | 208 | } TString; |
208 | 209 | ||
209 | 210 | ||
210 | #define getstr(ts) cast(const char *, (ts) + 1) | 211 | #define getstr(ts) (luaO_getstring(ts)) /* ROCKLUA ADDED */ |
211 | #define svalue(o) getstr(rawtsvalue(o)) | 212 | #define svalue(o) getstr(rawtsvalue(o)) |
212 | 213 | ||
213 | 214 | ||
@@ -371,6 +372,7 @@ LUAI_FUNC int luaO_int2fb (unsigned int x); | |||
371 | LUAI_FUNC int luaO_fb2int (int x); | 372 | LUAI_FUNC int luaO_fb2int (int x); |
372 | LUAI_FUNC int luaO_rawequalObj (const TValue *t1, const TValue *t2); | 373 | LUAI_FUNC int luaO_rawequalObj (const TValue *t1, const TValue *t2); |
373 | LUAI_FUNC int luaO_str2d (const char *s, lua_Number *result); | 374 | LUAI_FUNC int luaO_str2d (const char *s, lua_Number *result); |
375 | LUAI_FUNC const char *luaO_getstring(const TString * ts); /* ROCKLUA ADDED */ | ||
374 | LUAI_FUNC const char *luaO_pushvfstring (lua_State *L, const char *fmt, | 376 | LUAI_FUNC const char *luaO_pushvfstring (lua_State *L, const char *fmt, |
375 | va_list argp); | 377 | va_list argp); |
376 | LUAI_FUNC const char *luaO_pushfstring (lua_State *L, const char *fmt, ...); | 378 | LUAI_FUNC const char *luaO_pushfstring (lua_State *L, const char *fmt, ...); |