Home
last modified time | relevance | path

Searched refs:TString (Results 1 – 21 of 21) sorted by relevance

/netbsd-src/external/mit/lua/dist/src/
H A Dlstring.c32 #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 Dlstring.h28 #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 Dllex.h60 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 Dlstate.h158 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 Dlparser.h77 TString *strval; /* for VKSTR */
106 TString *name; /* variable name */
115 TString *name; /* label identifier */
H A Dlundump.c114 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 Dlparser.c147 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 Dllex.c76 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 Dlobject.h384 { 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 Dltable.h43 LUAI_FUNC const TValue *luaH_getshortstr (Table *t, TString *key);
44 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
H A Dldump.c103 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 Dldebug.h60 TString *src, int line);
H A Dltable.c170 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 Dltm.h81 LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
H A Dlvm.c400 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 Dlapi.c537 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 Dluac.c42 static TString **tmname;
222 static void PrintString(const TString* ts) in PrintString()
H A Dltm.c69 const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { in luaT_gettm()
H A Dldebug.c182 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 Dlgc.c803 TString *ts = gco2ts(o); in freeobj()
809 TString *ts = gco2ts(o); in freeobj()
H A Dlcode.c581 static int stringK (FuncState *fs, TString *s) { in stringK()