Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/lua/src/
H A Dlstring.c34 int luaS_eqlngstr (TString *a, TString *b) { in luaS_eqlngstr()
51 unsigned int luaS_hashlongstr (TString *ts) { in luaS_hashlongstr()
67 TString *p = vect[i]; in tablerehash()
70 TString *hnext = p->u.hnext; /* save next */ in tablerehash()
88 TString **newvect; in luaS_resize()
144 TString *ts; in createstrobj()
164 void luaS_remove (lua_State *L, TString *ts) { in luaS_remove()
189 TString *ts; in internshrstr()
193 TString **list = &tb->hash[lmod(h, tb->size)]; in internshrstr()
225 TString *ts; in luaS_newlstr()
[all …]
H A Dlstring.h26 #define sizelstring(l) (offsetof(TString, contents) + ((l) + 1) * sizeof(char))
45 LUAI_FUNC unsigned int luaS_hashlongstr (TString *ts);
46 LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b);
50 LUAI_FUNC void luaS_remove (lua_State *L, TString *ts);
52 LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
53 LUAI_FUNC TString *luaS_new (lua_State *L, const char *str);
54 LUAI_FUNC TString *luaS_createlngstrobj (lua_State *L, size_t l);
H A Dllex.h52 TString *ts;
76 TString *source; /* current source name */
77 TString *envn; /* environment variable name */
83 TString *source, int firstchar);
84 LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l);
H A Dlparser.h73 TString *strval; /* for VKSTR */
102 TString *name; /* variable name */
111 TString *name; /* label identifier */
H A Dlstate.h151 TString **hash;
261 TString *memerrmsg; /* message for memory-allocation errors */
262 TString *tmname[TM_N]; /* array with tag-method names */
264 TString *strcache[STRCACHE_N][STRCACHE_M]; /* cache for strings in API */
312 struct TString ts;
H A Dlundump.c110 static TString *loadStringN (LoadState *S, Proto *p) { in loadStringN()
112 TString *ts; in loadStringN()
136 static TString *loadString (LoadState *S, Proto *p) { in loadString()
137 TString *st = loadStringN(S, p); in loadString()
152 static void loadFunction(LoadState *S, Proto *f, TString *psource);
256 static void loadFunction (LoadState *S, Proto *f, TString *psource) { in loadFunction()
H A Dllex.c72 TString *e = luaS_newliteral(L, LUA_ENV); /* create env name */ in luaX_init()
75 TString *ts = luaS_new(L, luaX_tokens[i]); in luaX_init()
129 TString *luaX_newstring (LexState *ls, const char *str, size_t l) { in luaX_newstring()
132 TString *ts = luaS_newlstr(L, str, l); /* create new string */ in luaX_newstring()
164 void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source, in luaX_setinput()
538 TString *ts; in llex()
H A Dltable.h41 LUAI_FUNC const TValue *luaH_getshortstr (Table *t, TString *key);
42 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
H A Dlparser.c143 static TString *str_checkname (LexState *ls) { in str_checkname()
144 TString *ts; in str_checkname()
159 static void codestring (expdesc *e, TString *s) { in codestring()
193 static int new_localvar (LexState *ls, TString *name) { in new_localvar()
342 static int searchupvalue (FuncState *fs, TString *name) { in searchupvalue()
453 TString *varname = str_checkname(ls); in singlevar()
532 static Labeldesc *findlabel (LexState *ls, TString *name) { in findlabel()
1407 TString *name = str_checkname(ls); /* label's name */ in gotostat()
1436 static void checkrepeated (LexState *ls, TString *name) { in checkrepeated()
1580 static void forlist (LexState *ls, TString *indexname) { in forlist()
[all …]
H A Dlobject.h350 { TValue *io = (obj); TString *x_ = (x); \
364 typedef struct TString { struct
371 struct TString *hnext; /* linked list for hash table */ argument
374 } TString; argument
494 TString *name; /* upvalue name (for debug information) */
506 TString *varname;
551 TString *source; /* used for debug information */
H A Dldump.c88 static void dumpString (DumpState *D, const TString *s) { in dumpString()
106 static void dumpFunction(DumpState *D, const Proto *f, TString *psource);
179 static void dumpFunction (DumpState *D, const Proto *f, TString *psource) { in dumpFunction()
H A Dldebug.h47 TString *src, int line);
H A Dltm.h76 LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
H A Dlvm.c385 static int l_strcmp (const TString *ls, const TString *rs) { in l_strcmp()
660 TString *ts; in luaV_concat()
1224 TString *key = tsvalue(rc); /* key must be a string */ in luaV_execute()
1264 TString *key = tsvalue(rc); /* key must be a string */ in luaV_execute()
1277 TString *key = tsvalue(rb); /* key must be a string */ in luaV_execute()
1317 TString *key = tsvalue(rb); /* key must be a string */ in luaV_execute()
1347 TString *key = tsvalue(rc); /* key must be a string */ in luaV_execute()
/freebsd-13.1/sys/contrib/openzfs/module/lua/
H A Dlstring.c32 int luaS_eqlngstr (TString *a, TString *b) { in luaS_eqlngstr()
44 int luaS_eqstr (TString *a, TString *b) { in luaS_eqstr()
99 TString *ts; in createstrobj()
102 totalsize = sizeof(TString) + ((l + 1) * sizeof(char)); in createstrobj()
107 sbuf = (char *)(TString *)(ts + 1); in createstrobj()
117 static TString *newshrstr (lua_State *L, const char *str, size_t l, in newshrstr()
121 TString *s; in newshrstr()
141 TString *ts = rawgco2ts(o); in internshrstr()
157 TString *luaS_newlstr (lua_State *L, const char *str, size_t l) { in luaS_newlstr()
161 if (l + 1 > (MAX_SIZET - sizeof(TString))/sizeof(char)) in luaS_newlstr()
[all …]
H A Dlstring.h16 #define sizestring(s) (sizeof(union TString)+((s)->len+1)*sizeof(char))
39 LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b);
40 LUAI_FUNC int luaS_eqstr (TString *a, TString *b);
43 LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
44 LUAI_FUNC TString *luaS_new (lua_State *L, const char *str);
H A Dllex.h40 TString *ts;
66 TString *source; /* current source name */
67 TString *envn; /* environment variable name */
74 TString *source, int firstchar);
75 LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l);
H A Dlparser.c62 TString *ts = ls->t.seminfo.ts; in anchor_token()
137 static TString *str_checkname (LexState *ls) { in str_checkname()
138 TString *ts; in str_checkname()
176 static void new_localvar (LexState *ls, TString *name) { in new_localvar()
219 static int searchupvalue (FuncState *fs, TString *name) { in searchupvalue()
244 static int searchvar (FuncState *fs, TString *n) { in searchvar()
296 TString *varname = str_checkname(ls); in singlevar()
345 TString *vname = getlocvar(fs, gt->nactvar)->varname; in closegoto()
452 TString *n = luaS_new(ls->L, "break"); in breaklabel()
1185 TString *label; in gotostat()
[all …]
H A Dlstate.h146 TString *memerrmsg; /* memory-error message */
147 TString *tmname[TM_N]; /* array with tag-method names */
189 union TString ts;
H A Dlobject.h205 TString *x_ = (x); \
408 typedef union TString { union
416 } TString; typedef
445 TString *name; /* upvalue name (for debug information) */
456 TString *varname;
474 TString *source; /* used for debug information */
H A Dllex.c65 TString *ts = luaS_new(L, luaX_tokens[i]); in luaX_init()
121 TString *luaX_newstring (LexState *ls, const char *str, size_t l) { in luaX_newstring()
124 TString *ts = luaS_newlstr(L, str, l); /* create new string */ in luaX_newstring()
156 void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source, in luaX_setinput()
491 TString *ts; in llex()
H A Dltm.h53 LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
H A Dltm.c51 const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { in luaT_gettm()
H A Dlparser.h65 TString *name; /* label identifier */
H A Dltable.h28 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);

12