Searched refs:TString (Results 1 - 25 of 44) sorted by relevance

12

/freebsd-12-stable/contrib/lua/src/
H A Dlstring.h37 LUAI_FUNC unsigned int luaS_hashlongstr (TString *ts);
38 LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b);
42 LUAI_FUNC void luaS_remove (lua_State *L, TString *ts);
44 LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
45 LUAI_FUNC TString *luaS_new (lua_State *L, const char *str);
46 LUAI_FUNC TString *luaS_createlngstrobj (lua_State *L, size_t l);
H A Dllex.h46 TString *ts;
70 TString *source; /* current source name */
71 TString *envn; /* environment variable name */
77 TString *source, int firstchar);
78 LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l);
H A Dlstring.c40 int luaS_eqlngstr (TString *a, TString *b) {
58 unsigned int luaS_hashlongstr (TString *ts) {
75 luaM_reallocvector(L, tb->hash, tb->size, newsize, TString *);
80 TString *p = tb->hash[i];
83 TString *hnext = p->u.hnext; /* save next */
93 luaM_reallocvector(L, tb->hash, tb->size, newsize, TString *);
133 static TString *createstrobj (lua_State *L, size_t l, int tag, unsigned int h) {
134 TString *ts;
136 size_t totalsize; /* total size of TString objec
[all...]
H A Dlstate.h77 TString **hash;
168 TString *memerrmsg; /* memory-error message */
169 TString *tmname[TM_N]; /* array with tag-method names */
171 TString *strcache[STRCACHE_N][STRCACHE_M]; /* cache for strings in API */
213 struct TString ts;
H A Dltable.h46 LUAI_FUNC const TValue *luaH_getshortstr (Table *t, TString *key);
47 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
H A Dldebug.h34 TString *src, int line);
H A Dlparser.h79 TString *name; /* label identifier */
H A Dllex.c72 TString *e = luaS_newliteral(L, LUA_ENV); /* create env name */
75 TString *ts = luaS_new(L, luaX_tokens[i]);
127 TString *luaX_newstring (LexState *ls, const char *str, size_t l) {
130 TString *ts = luaS_newlstr(L, str, l); /* create new string */
162 void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source,
528 TString *ts;
H A Dlobject.h226 { TValue *io = (obj); TString *x_ = (x); \
303 typedef struct TString { struct
310 struct TString *hnext; /* linked list for hash table */
312 } TString; typedef in typeref:struct:TString
320 TString tsv;
325 ** Get the actual string (array of bytes) from a 'TString'.
326 ** (Access to 'extra' ensures that value is really a 'TString'.)
335 /* get string length from 'TString *s' */
387 TString *name; /* upvalue name (for debug information) */
398 TString *varnam
[all...]
H A Dltm.h60 LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
H A Dlundump.c88 static TString *LoadString (LoadState *S, Proto *p) {
91 TString *ts;
121 static void LoadFunction(LoadState *S, Proto *f, TString *psource);
209 static void LoadFunction (LoadState *S, Proto *f, TString *psource) {
H A Dldump.c73 static void DumpString (const TString *s, DumpState *D) {
96 static void DumpFunction(const Proto *f, TString *psource, DumpState *D);
166 static void DumpFunction (const Proto *f, TString *psource, DumpState *D) {
H A Dlparser.c135 static TString *str_checkname (LexState *ls) {
136 TString *ts;
151 static void codestring (LexState *ls, expdesc *e, TString *s) {
161 static int registerlocalvar (LexState *ls, TString *varname) {
175 static void new_localvar (LexState *ls, TString *name) {
218 static int searchupvalue (FuncState *fs, TString *name) {
228 static int newupvalue (FuncState *fs, TString *name, expdesc *v) {
244 static int searchvar (FuncState *fs, TString *n) {
270 static void singlevaraux (FuncState *fs, TString *n, expdesc *var, int base) {
296 TString *varnam
[all...]
H A Dlcode.h59 LUAI_FUNC int luaK_stringK (FuncState *fs, TString *s);
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/
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 Dlstring.c33 int luaS_eqlngstr (TString *a, TString *b) {
45 int luaS_eqstr (TString *a, TString *b) {
98 static TString *createstrobj (lua_State *L, const char *str, size_t l,
100 TString *ts;
101 size_t totalsize; /* total size of TString object */
102 totalsize = sizeof(TString) + ((l + 1) * sizeof(char));
116 static TString *newshrstr (lua_State *L, const char *str, size_t l,
120 TString *
[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 Dlparser.h64 TString *name; /* label identifier */
H A Dltm.c52 const TValue *luaT_gettm (Table *events, TMS event, TString *ename) {
H A Dltm.h52 LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
H A Dltable.h27 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
H A Dlparser.c63 TString *ts = ls->t.seminfo.ts;
138 static TString *str_checkname (LexState *ls) {
139 TString *ts;
154 static void codestring (LexState *ls, expdesc *e, TString *s) {
164 static int registerlocalvar (LexState *ls, TString *varname) {
177 static void new_localvar (LexState *ls, TString *name) {
220 static int searchupvalue (FuncState *fs, TString *name) {
230 static int newupvalue (FuncState *fs, TString *name, expdesc *v) {
245 static int searchvar (FuncState *fs, TString *n) {
270 static int singlevaraux (FuncState *fs, TString *
[all...]
H A Dlobject.h206 TString *x_ = (x); \
409 typedef union TString { union
417 } TString; typedef in typeref:union:TString
420 /* get the actual string (array of bytes) from a TString */
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]);
122 TString *luaX_newstring (LexState *ls, const char *str, size_t l) {
125 TString *ts = luaS_newlstr(L, str, l); /* create new string */
157 void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source,
489 TString *ts;

Completed in 143 milliseconds

12