diff options
Diffstat (limited to 'lstring.h')
-rw-r--r-- | lstring.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstring.h,v 1.22 2000/09/29 12:42:13 roberto Exp roberto $ | 2 | ** $Id: lstring.h,v 1.23 2000/10/26 12:47:05 roberto Exp roberto $ |
3 | ** String table (keep all strings handled by Lua) | 3 | ** String table (keep all strings handled by Lua) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -20,7 +20,8 @@ | |||
20 | #define RESERVEDMARK 3 | 20 | #define RESERVEDMARK 3 |
21 | 21 | ||
22 | 22 | ||
23 | #define sizestring(l) (sizeof(TString)+(lint32)(l)*sizeof(char)) | 23 | #define sizestring(l) ((long)sizeof(TString) + \ |
24 | ((long)(l+1)-TSPACK)*(long)sizeof(char)) | ||
24 | 25 | ||
25 | 26 | ||
26 | void luaS_init (lua_State *L); | 27 | void luaS_init (lua_State *L); |