/netbsd-src/external/mit/lua/dist/src/ |
H A D | lstring.c | 32 #define MAXSTRTB cast_int(luaM_limitN(MAX_INT, TString*)) 38 int luaS_eqlngstr (TString *a, TString *b) { in luaS_eqlngstr() 55 unsigned int luaS_hashlongstr (TString *ts) { in luaS_hashlongstr() 66 static void tablerehash (TString **vect, int osize, int nsize) { in tablerehash() 71 TString *p = vect[i]; in tablerehash() 74 TString *hnext = p->u.hnext; /* save next */ in tablerehash() 92 TString **newvect; in luaS_resize() 95 newvect = luaM_reallocvector(L, tb->hash, osize, nsize, TString*); in luaS_resize() 131 tb->hash = luaM_newvector(L, MINSTRTABSIZE, TString*); in luaS_init() 147 static TString *createstrobj (lua_State *L, size_t l, int tag, unsigned int h) { in createstrobj() [all …]
|
H A D | lstring.h | 28 #define sizelstring(l) (offsetof(TString, contents) + ((l) + 1) * sizeof(char)) 47 LUAI_FUNC unsigned int luaS_hashlongstr (TString *ts); 48 LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b); 52 LUAI_FUNC void luaS_remove (lua_State *L, TString *ts); 54 LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); 55 LUAI_FUNC TString *luaS_new (lua_State *L, const char *str); 56 LUAI_FUNC TString *luaS_createlngstrobj (lua_State *L, size_t l);
|
H A D | llex.h | 60 TString *ts; 84 TString *source; /* current source name */ 85 TString *envn; /* environment variable name */ 91 TString *source, int firstchar); 92 LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l);
|
H A D | lstate.h | 158 TString **hash; 299 TString *memerrmsg; /* message for memory-allocation errors */ 300 TString *tmname[TM_N]; /* array with tag-method names */ 302 TString *strcache[STRCACHE_N][STRCACHE_M]; /* cache for strings in API */ 357 struct TString ts;
|
H A D | lparser.h | 77 TString *strval; /* for VKSTR */ 106 TString *name; /* variable name */ 115 TString *name; /* label identifier */
|
H A D | lundump.c | 114 static TString *loadStringN (LoadState *S, Proto *p) { in loadStringN() 116 TString *ts; in loadStringN() 140 static TString *loadString (LoadState *S, Proto *p) { in loadString() 141 TString *st = loadStringN(S, p); in loadString() 156 static void loadFunction(LoadState *S, Proto *f, TString *psource); 264 static void loadFunction (LoadState *S, Proto *f, TString *psource) { in loadFunction()
|
H A D | lparser.c | 147 static TString *str_checkname (LexState *ls) { in str_checkname() 148 TString *ts; in str_checkname() 163 static void codestring (expdesc *e, TString *s) { in codestring() 179 static int registerlocalvar (LexState *ls, FuncState *fs, TString *varname) { in registerlocalvar() 197 static int new_localvar (LexState *ls, TString *name) { in new_localvar() 283 TString *varname = NULL; /* to be set if variable is const */ in check_readonly() 346 static int searchupvalue (FuncState *fs, TString *name) { in searchupvalue() 368 static int newupvalue (FuncState *fs, TString *name, expdesc *v) { in newupvalue() 394 static int searchvar (FuncState *fs, TString *n, expdesc *var) { in searchvar() 439 static void singlevaraux (FuncState *fs, TString *n, expdesc *var, int base) { in singlevaraux() [all …]
|
H A D | llex.c | 76 TString *e = luaS_newliteral(L, LUA_ENV); /* create env name */ in luaX_init() 79 TString *ts = luaS_new(L, luaX_tokens[i]); in luaX_init() 142 TString *luaX_newstring (LexState *ls, const char *str, size_t l) { in luaX_newstring() 144 TString *ts = luaS_newlstr(L, str, l); /* create new string */ in luaX_newstring() 175 void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source, in luaX_setinput() 576 TString *ts; in llex()
|
H A D | lobject.h | 384 { TValue *io = (obj); TString *x_ = (x); \ 398 typedef struct TString { struct 405 struct TString *hnext; /* linked list for hash table */ argument 408 } TString; argument 528 TString *name; /* upvalue name (for debug information) */ 540 TString *varname; 585 TString *source; /* used for debug information */
|
H A D | ltable.h | 43 LUAI_FUNC const TValue *luaH_getshortstr (Table *t, TString *key); 44 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
|
H A D | ldump.c | 103 static void dumpString (DumpState *D, const TString *s) { in dumpString() 121 static void dumpFunction(DumpState *D, const Proto *f, TString *psource); 196 static void dumpFunction (DumpState *D, const Proto *f, TString *psource) { in dumpFunction()
|
H A D | ldebug.h | 60 TString *src, int line);
|
H A D | ltable.c | 170 TString *ts = tsvalue(key); in mainpositionTV() 174 TString *ts = tsvalue(key); in mainpositionTV() 772 const TValue *luaH_getshortstr (Table *t, TString *key) { in luaH_getshortstr() 788 const TValue *luaH_getstr (Table *t, TString *key) { in luaH_getstr()
|
H A D | ltm.h | 81 LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
|
H A D | lvm.c | 400 static int l_strcmp (const TString *ls, const TString *rs) { 701 TString *ts; 1342 TString *key = tsvalue(rc); /* key must be a string */ 1385 TString *key = tsvalue(rc); /* key must be a string */ 1398 TString *key = tsvalue(rb); /* key must be a string */ 1441 TString *key = tsvalue(rb); /* key must be a string */ 1473 TString *key = tsvalue(rc); /* key must be a string */
|
H A D | lapi.c | 537 TString *ts; in lua_pushlstring() 553 TString *ts; in lua_pushstring() 651 TString *str = luaS_new(L, k); in auxgetstr() 841 TString *str = luaS_new(L, k); in auxsetstr() 1380 TString *name; in aux_upvalue()
|
H A D | luac.c | 42 static TString **tmname; 222 static void PrintString(const TString* ts) in PrintString()
|
H A D | ltm.c | 69 const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { in luaT_gettm()
|
H A D | ldebug.c | 182 TString *s = check_exp(uv < p->sizeupvalues, p->upvalues[uv].name); in upvalname() 801 const char *luaG_addinfo (lua_State *L, const char *msg, TString *src, in luaG_addinfo()
|
H A D | lgc.c | 803 TString *ts = gco2ts(o); in freeobj() 809 TString *ts = gco2ts(o); in freeobj()
|
H A D | lcode.c | 581 static int stringK (FuncState *fs, TString *s) { in stringK()
|