Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Macros | |
#define | MEMERRMSG "not enough memory" |
#define | sizelstring(l) (offsetof(TString, contents) + ((l) + 1) * sizeof(char)) |
#define | luaS_newliteral(L, s) |
#define | isreserved(s) ((s)->tt == LUA_VSHRSTR && (s)->extra > 0) |
#define | eqshrstr(a, b) check_exp((a)->tt == LUA_VSHRSTR, (a) == (b)) |
Functions | |
LUAI_FUNC unsigned int | luaS_hash (const char *str, size_t l, unsigned int seed) |
LUAI_FUNC unsigned int | luaS_hashlongstr (TString *ts) |
LUAI_FUNC int | luaS_eqlngstr (TString *a, TString *b) |
LUAI_FUNC void | luaS_resize (lua_State *L, int newsize) |
LUAI_FUNC void | luaS_clearcache (global_State *g) |
LUAI_FUNC void | luaS_init (lua_State *L) |
LUAI_FUNC void | luaS_remove (lua_State *L, TString *ts) |
LUAI_FUNC Udata * | luaS_newudata (lua_State *L, size_t s, int nuvalue) |
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) |
LUAI_FUNC TString * | luaS_createlngstrobj (lua_State *L, size_t l) |
#define eqshrstr | ( | a, | |
b ) check_exp((a)->tt == LUA_VSHRSTR, (a) == (b)) |
Definition at line 41 of file lua-5.4.3/src/lstring.h.
#define isreserved | ( | s | ) | ((s)->tt == LUA_VSHRSTR && (s)->extra > 0) |
Definition at line 35 of file lua-5.4.3/src/lstring.h.
#define luaS_newliteral | ( | L, | |
s ) |
Definition at line 28 of file lua-5.4.3/src/lstring.h.
#define MEMERRMSG "not enough memory" |
Definition at line 19 of file lua-5.4.3/src/lstring.h.
Definition at line 26 of file lua-5.4.3/src/lstring.h.
LUAI_FUNC void luaS_clearcache | ( | global_State * | g | ) |
Definition at line 103 of file lua-5.3.6/src/lstring.c.
References iswhite, global_State::memerrmsg, global_State::strcache, STRCACHE_M, and STRCACHE_N.
Definition at line 147 of file lua-5.3.6/src/lstring.c.
References createstrobj(), createstrobj(), G, TString::lnglen, LUA_TLNGSTR, LUA_VLNGSTR, and TString::u.
Referenced by LoadString(), loadStringN(), luaS_newlstr(), and luaV_concat().
Definition at line 33 of file lua-5.2.4/src/lstring.c.
References getstr, TString::len, TString::lnglen, lua_assert, LUA_TLNGSTR, LUA_VLNGSTR, TString::tsv, and TString::u.
Referenced by equalkey(), luaS_eqstr(), luaV_equalobj(), and luaV_equalobj_().
LUAI_FUNC unsigned int luaS_hash | ( | const char * | str, |
size_t | l, | ||
unsigned int | seed ) |
Definition at line 51 of file lua-5.2.4/src/lstring.c.
References cast, cast_byte, cast_uint, and LUAI_HASHLIMIT.
Referenced by internshrstr(), internshrstr(), internshrstr(), luai_makeseed(), luaS_hashlongstr(), mainposition(), makeseed(), and makeseed().
Definition at line 58 of file lua-5.3.6/src/lstring.c.
References TString::extra, getstr, TString::hash, TString::lnglen, lua_assert, LUA_TLNGSTR, LUA_VLNGSTR, luaS_hash(), and TString::u.
Referenced by mainposition(), and mainposition().
Definition at line 116 of file lua-5.3.6/src/lstring.c.
References G, stringtable::hash, luaC_fix(), luaM_newvector, luaS_newliteral, luaS_resize(), global_State::memerrmsg, MEMERRMSG, MINSTRTABSIZE, obj2gco, stringtable::size, global_State::strcache, STRCACHE_M, STRCACHE_N, and tablerehash().
Referenced by f_luaopen(), and f_luaopen().
Definition at line 170 of file lua-5.2.4/src/lstring.c.
References G, getstr, luaS_newlstr(), point2uint, STRCACHE_M, and STRCACHE_N.
Definition at line 75 of file lua-5.1.5/src/lstring.c.
References cast, changewhite, createstrobj(), G, GCObject::gch, getstr, internshrstr(), internshrstr(), internshrstr(), isdead, TString::len, lmod, LUA_TLNGSTR, LUAI_MAXSHORTLEN, luaM_toobig(), luaS_createlngstrobj(), MAX_SIZE, MAX_SIZET, newlstr(), NULL, rawgco2ts, and TString::tsv.
Referenced by LoadString(), LoadString(), LoadString(), loadStringN(), lua_concat(), lua_pushlstring(), luaK_numberK(), luaO_pushvfstring(), luaO_tostring(), luaO_tostring(), luaS_new(), luaV_concat(), luaV_concat(), luaV_tostring(), luaX_newstring(), pushstr(), pushstr(), and pushstr().
Definition at line 258 of file lua-5.4.3/src/lstring.c.
References gco2u, Udata::len, LUA_VUSERDATA, luaC_newobj(), luaM_toobig(), MAX_SIZE, Udata::metatable, NULL, Udata::nuvalue, s, setnilvalue, sizeudata, udatamemoffset, and Udata::uv.
Definition at line 154 of file lua-5.3.6/src/lstring.c.
References G, TString::hash, stringtable::hash, TString::hnext, lmod, stringtable::nuse, stringtable::size, and TString::u.
Definition at line 22 of file lua-5.1.5/src/lstring.c.
References bitmask, cast_int, G, GCObject::gch, gch, gco2ts, GCSsweepstring, TString::hash, stringtable::hash, TString::hnext, lmod, lua_assert, luaC_runtilstate(), luaM_freearray, luaM_newvector, luaM_reallocvector, next, NULL, resetoldbit, stringtable::size, tablerehash(), and TString::u.
Referenced by checkSizes(), checkSizes(), checkSizes(), checkSizes(), f_luaopen(), f_luaopen(), growstrtab(), internshrstr(), luaS_init(), newlstr(), and newshrstr().