Go to the documentation of this file.
28 #define MAXSTRTB cast_int(luaM_limitN(MAX_INT, TString*))
43 unsigned int luaS_hash (
const char *str,
size_t l,
unsigned int seed) {
46 h ^= ((h<<5) + (h>>2) +
cast_byte(str[l - 1]));
64 for (i = osize; i < nsize; i++)
66 for (i = 0; i < osize; i++) {
71 unsigned int h =
lmod(p->
hash, nsize);
92 if (l_unlikely(newvect == NULL)) {
195 for (ts = *list; ts != NULL; ts = ts->
u.
hnext) {
196 if (l == ts->
shrlen && (memcmp(str,
getstr(ts), l *
sizeof(
char)) == 0)) {
209 memcpy(
getstr(ts), str, l *
sizeof(
char));
229 memcpy(
getstr(ts), str, l *
sizeof(
char));
246 if (strcmp(str,
getstr(p[j])) == 0)
267 u->nuvalue = nuvalue;
269 for (i = 0; i < nuvalue; i++)
GCObject * luaC_newobj(lua_State *L, int tt, size_t sz)
void luaS_init(lua_State *L)
TString * luaS_newlstr(lua_State *L, const char *str, size_t l)
TString * luaS_new(lua_State *L, const char *str)
void luaC_fix(lua_State *L, GCObject *o)
void luaS_remove(lua_State *L, TString *ts)
#define luaM_newvector(L, n, t)
static TString * internshrstr(lua_State *L, const char *str, size_t l)
#define udatamemoffset(nuv)
unsigned int luaS_hashlongstr(TString *ts)
static void tablerehash(TString **vect, int osize, int nsize)
#define luaM_reallocvector(L, v, oldn, n, t)
Udata * luaS_newudata(lua_State *L, size_t s, int nuvalue)
static TString * createstrobj(lua_State *L, size_t l, int tag, unsigned int h)
unsigned int luaS_hash(const char *str, size_t l, unsigned int seed)
TString * strcache[STRCACHE_N][STRCACHE_M]
#define sizeudata(nuv, nb)
static void growstrtab(lua_State *L, stringtable *tb)
void luaS_clearcache(global_State *g)
void luaC_fullgc(lua_State *L, int isemergency)
TString * luaS_createlngstrobj(lua_State *L, size_t l)
int luaS_eqlngstr(TString *a, TString *b)
void luaS_resize(lua_State *L, int nsize)
#define luaS_newliteral(L, s)
l_noret luaM_toobig(lua_State *L)
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45