mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
change in string table: string table is now independent of GC lists; all
strings live in 'normal' GC lists
This commit is contained in:
parent
8c68863960
commit
ae800656c9
7 changed files with 125 additions and 114 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lstring.h,v 1.49 2012/02/01 21:57:15 roberto Exp roberto $
|
||||
** $Id: lstring.h,v 1.50 2013/08/16 18:55:49 roberto Exp roberto $
|
||||
** String table (keep all strings handled by Lua)
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -38,6 +38,7 @@ LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed);
|
|||
LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b);
|
||||
LUAI_FUNC int luaS_eqstr (TString *a, TString *b);
|
||||
LUAI_FUNC void luaS_resize (lua_State *L, int newsize);
|
||||
LUAI_FUNC void luaS_remove (lua_State *L, TString *ts);
|
||||
LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e);
|
||||
LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
|
||||
LUAI_FUNC TString *luaS_new (lua_State *L, const char *str);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue