Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include <string.h>
#include "lua.h"
#include "lmem.h"
#include "lobject.h"
#include "lstate.h"
#include "lstring.h"
Go to the source code of this file.
Macros | |
#define | lstring_c |
#define | LUA_CORE |
#define | LUAI_HASHLIMIT 5 |
Functions | |
int | luaS_eqlngstr (TString *a, TString *b) |
int | luaS_eqstr (TString *a, TString *b) |
unsigned int | luaS_hash (const char *str, size_t l, unsigned int seed) |
void | luaS_resize (lua_State *L, int newsize) |
static TString * | createstrobj (lua_State *L, const char *str, size_t l, int tag, unsigned int h, GCObject **list) |
static TString * | newshrstr (lua_State *L, const char *str, size_t l, unsigned int h) |
static TString * | internshrstr (lua_State *L, const char *str, size_t l) |
TString * | luaS_newlstr (lua_State *L, const char *str, size_t l) |
TString * | luaS_new (lua_State *L, const char *str) |
Udata * | luaS_newudata (lua_State *L, size_t s, Table *e) |
#define lstring_c |
Definition at line 10 of file lua-5.2.4/src/lstring.c.
#define LUA_CORE |
Definition at line 11 of file lua-5.2.4/src/lstring.c.
#define LUAI_HASHLIMIT 5 |
Definition at line 26 of file lua-5.2.4/src/lstring.c.
Referenced by luaS_hash().
|
static |
Definition at line 98 of file lua-5.2.4/src/lstring.c.
References TString::extra, TString::hash, TString::len, luaC_newobj(), GCObject::ts, and TString::tsv.
Referenced by luaS_newlstr(), and newshrstr().
Definition at line 133 of file lua-5.2.4/src/lstring.c.
References changewhite, G, gch, getstr, TString::hash, stringtable::hash, isdead, TString::len, lmod, luaS_hash(), newshrstr(), NULL, rawgco2ts, global_State::seed, stringtable::size, global_State::strt, and TString::tsv.
Referenced by luaS_newlstr().
Definition at line 33 of file lua-5.2.4/src/lstring.c.
References getstr, TString::len, lua_assert, LUA_TLNGSTR, and TString::tsv.
Referenced by equalkey(), luaS_eqstr(), luaV_equalobj(), and luaV_equalobj_().
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().
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, and LUAI_HASHLIMIT.
Referenced by internshrstr(), luai_makeseed(), mainposition(), makeseed(), and makeseed().
Definition at line 170 of file lua-5.2.4/src/lstring.c.
References luaS_newlstr().
Definition at line 156 of file lua-5.2.4/src/lstring.c.
References createstrobj(), G, internshrstr(), LUA_TLNGSTR, LUAI_MAXSHORTLEN, luaM_toobig(), MAX_SIZET, and NULL.
Referenced by luaS_new().
Definition at line 175 of file lua-5.2.4/src/lstring.c.
References Udata::env, Udata::len, LUA_TUSERDATA, luaC_newobj(), luaM_toobig(), MAX_SIZET, Udata::metatable, NULL, s, GCObject::u, and Udata::uv.
void luaS_resize | ( | lua_State * | L, |
int | newsize ) |
Definition at line 64 of file lua-5.2.4/src/lstring.c.
References bitmask, G, gch, gco2ts, GCSsweepstring, stringtable::hash, lmod, lua_assert, luaC_runtilstate(), luaM_reallocvector, next, NULL, resetoldbit, and stringtable::size.
Referenced by newshrstr().
Definition at line 116 of file lua-5.2.4/src/lstring.c.
References cast, createstrobj(), G, stringtable::hash, lmod, LUA_TSHRSTR, luaS_resize(), MAX_INT, stringtable::nuse, s, and stringtable::size.
Referenced by internshrstr().