diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-04 10:31:21 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-04 10:31:21 -0300 |
| commit | a80cada9142f9e967c710e37934067a708224161 (patch) | |
| tree | b6ecc44201408c9e9cf520f47f15413531c51161 /lstring.h | |
| parent | a00013c8d0d268616e004715da499e88e03b534c (diff) | |
| download | lua-a80cada9142f9e967c710e37934067a708224161.tar.gz lua-a80cada9142f9e967c710e37934067a708224161.tar.bz2 lua-a80cada9142f9e967c710e37934067a708224161.zip | |
new cache for interning strings
Diffstat (limited to 'lstring.h')
| -rw-r--r-- | lstring.h | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstring.h,v 1.56 2014/07/18 14:46:47 roberto Exp roberto $ | 2 | ** $Id: lstring.h,v 1.57 2015/01/16 16:54:37 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 | */ |
| @@ -36,6 +36,7 @@ | |||
| 36 | LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed); | 36 | LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed); |
| 37 | LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b); | 37 | LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b); |
| 38 | LUAI_FUNC void luaS_resize (lua_State *L, int newsize); | 38 | LUAI_FUNC void luaS_resize (lua_State *L, int newsize); |
| 39 | LUAI_FUNC void luaS_init (lua_State *L); | ||
| 39 | LUAI_FUNC void luaS_remove (lua_State *L, TString *ts); | 40 | LUAI_FUNC void luaS_remove (lua_State *L, TString *ts); |
| 40 | LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s); | 41 | LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s); |
| 41 | LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); | 42 | LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); |
