Home
last modified time | relevance | path

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

/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlstring.c33 int luaS_eqlngstr (TString *a, TString *b) { in luaS_eqlngstr()
45 int luaS_eqstr (TString *a, TString *b) { in luaS_eqstr()
98 static TString *createstrobj (lua_State *L, const char *str, size_t l, in createstrobj()
100 TString *ts; in createstrobj()
102 totalsize = sizeof(TString) + ((l + 1) * sizeof(char)); in createstrobj()
116 static TString *newshrstr (lua_State *L, const char *str, size_t l, in newshrstr()
120 TString *s; in newshrstr()
133 static TString *internshrstr (lua_State *L, const char *str, size_t l) { in internshrstr()
140 TString *ts = rawgco2ts(o); in internshrstr()
156 TString *luaS_newlstr (lua_State *L, const char *str, size_t l) { in luaS_newlstr()
[all …]
H A Dlstring.h15 #define sizestring(s) (sizeof(union TString)+((s)->len+1)*sizeof(char))
38 LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b);
39 LUAI_FUNC int luaS_eqstr (TString *a, TString *b);
42 LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
43 LUAI_FUNC TString *luaS_new (lua_State *L, const char *str);
H A Dllex.h39 TString *ts;
62 TString *source; /* current source name */
63 TString *envn; /* environment variable name */
70 TString *source, int firstchar);
71 LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l);
H A Dlparser.c63 TString *ts = ls->t.seminfo.ts; in anchor_token()
138 static TString *str_checkname (LexState *ls) { in str_checkname()
139 TString *ts; in str_checkname()
154 static void codestring (LexState *ls, expdesc *e, TString *s) { in codestring()
164 static int registerlocalvar (LexState *ls, TString *varname) { in registerlocalvar()
177 static void new_localvar (LexState *ls, TString *name) { in new_localvar()
220 static int searchupvalue (FuncState *fs, TString *name) { in searchupvalue()
230 static int newupvalue (FuncState *fs, TString *name, expdesc *v) { in newupvalue()
245 static int searchvar (FuncState *fs, TString *n) { in searchvar()
270 static int singlevaraux (FuncState *fs, TString *n, expdesc *var, int base) { in singlevaraux()
[all …]
H A Dlstate.h145 TString *memerrmsg; /* memory-error message */
146 TString *tmname[TM_N]; /* array with tag-method names */
187 union TString ts;
H A Dlobject.h206 TString *x_ = (x); \
409 typedef union TString { union
417 } TString; typedef
446 TString *name; /* upvalue name (for debug information) */
457 TString *varname;
475 TString *source; /* used for debug information */
H A Dllex.c66 TString *ts = luaS_new(L, luaX_tokens[i]); in luaX_init()
122 TString *luaX_newstring (LexState *ls, const char *str, size_t l) { in luaX_newstring()
125 TString *ts = luaS_newlstr(L, str, l); /* create new string */ in luaX_newstring()
157 void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source, in luaX_setinput()
489 TString *ts; in llex()
H A Dltm.h52 LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
H A Dltm.c52 const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { in luaT_gettm()
H A Dlparser.h64 TString *name; /* label identifier */
H A Dltable.h27 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
H A Dlcode.h54 LUAI_FUNC int luaK_stringK (FuncState *fs, TString *s);
H A Dlgc.h32 #define GCSTEPSIZE (cast_int(100 * sizeof(TString)))
H A Dldump.c61 static void DumpString(const TString* s, DumpState* D) in DumpString()
H A Dltable.c102 TString *s = rawtsvalue(key); in mainposition()
466 const TValue *luaH_getstr (Table *t, TString *key) { in luaH_getstr()
H A Dldebug.c108 TString *s = check_exp(uv < p->sizeupvalues, p->upvalues[uv].name); in upvalname()
576 TString *src = ci_func(ci)->p->source; in addinfo()
H A Dlundump.c72 static TString* LoadString(LoadState* S) in LoadString()
H A Dlapi.c501 TString *ts; in lua_pushlstring()
518 TString *ts; in lua_pushstring()
1199 TString *name; in aux_upvalue()
H A Dlvm.c209 static int l_strcmp (const TString *ls, const TString *rs) { in l_strcmp()
H A Dlcode.c318 int luaK_stringK (FuncState *fs, TString *s) { in luaK_stringK()
H A Dlgc.c31 #define GCSWEEPCOST ((sizeof(TString) + 4) / 4)