Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Macros | |
#define | sizestring(s) (sizeof(union TString)+((s)->len+1)*sizeof(char)) |
#define | sizeudata(u) (sizeof(union Udata)+(u)->len) |
#define | luaS_newliteral(L, s) |
#define | luaS_fix(s) l_setbit((s)->tsv.marked, FIXEDBIT) |
#define | isreserved(s) ((s)->tsv.tt == LUA_TSHRSTR && (s)->tsv.extra > 0) |
#define | eqshrstr(a, b) check_exp((a)->tsv.tt == LUA_TSHRSTR, (a) == (b)) |
Functions | |
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 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) |
#define eqshrstr | ( | a, | |
b ) check_exp((a)->tsv.tt == LUA_TSHRSTR, (a) == (b)) |
Definition at line 34 of file lua-5.2.4/src/lstring.h.
Referenced by lua_error(), luaH_getshortstr(), luaH_getstr(), luaS_eqstr(), luaV_equalobj(), and luaV_equalobj_().
#define isreserved | ( | s | ) | ((s)->tsv.tt == LUA_TSHRSTR && (s)->tsv.extra > 0) |
Definition at line 28 of file lua-5.2.4/src/lstring.h.
Referenced by llex(), llex(), llex(), undefgoto(), and undefgoto().
Definition at line 22 of file lua-5.2.4/src/lstring.h.
#define luaS_newliteral | ( | L, | |
s ) |
Definition at line 19 of file lua-5.2.4/src/lstring.h.
Definition at line 15 of file lua-5.2.4/src/lstring.h.
#define sizeudata | ( | u | ) | (sizeof(union Udata)+(u)->len) |
Definition at line 17 of file lua-5.2.4/src/lstring.h.
Definition at line 33 of file lua-5.2.4/src/lstring.c.
Definition at line 45 of file lua-5.2.4/src/lstring.c.
References eqshrstr, LUA_TSHRSTR, luaS_eqlngstr(), and TString::tsv.
Referenced by checkrepeated(), closegoto(), findgotos(), findlabel(), searchupvalue(), and searchvar().
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.
Definition at line 170 of file lua-5.2.4/src/lstring.c.
Definition at line 75 of file lua-5.1.5/src/lstring.c.
Definition at line 96 of file lua-5.1.5/src/lstring.c.
References cast, Udata::env, G, Udata::len, LUA_TUSERDATA, luaC_newobj(), luaC_white, luaM_malloc, luaM_toobig(), MAX_SIZET, Udata::metatable, NULL, obj2gco, s, GCObject::u, and Udata::uv.
Referenced by lua_newuserdata(), and lua_newuserdatauv().
Definition at line 22 of file lua-5.1.5/src/lstring.c.