/freebsd/contrib/lua/src/ |
H A D | lstring.c | 28 #define MAXSTRTB cast_int(luaM_limitN(MAX_INT, TString*)) 34 int luaS_eqlngstr (TString *a, TString *b) { in luaS_eqlngstr() 51 unsigned int luaS_hashlongstr (TString *ts) { in luaS_hashlongstr() 62 static void tablerehash (TString **vect, int osize, int nsize) { in tablerehash() 67 TString *p = vect[i]; in tablerehash() 70 TString *hnext = p->u.hnext; /* save next */ in tablerehash() 88 TString **newvect; in luaS_resize() 91 newvect = luaM_reallocvector(L, tb->hash, osize, nsize, TString*); in luaS_resize() 127 tb->hash = luaM_newvector(L, MINSTRTABSIZE, TString*); in luaS_init() 143 static TString *createstrobj (lua_State *L, size_t l, int tag, unsigned int h) { in createstrobj() [all …]
|
H A D | lstring.h | 26 #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 D | llex.h | 52 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 D | lparser.h | 73 TString *strval; /* for VKSTR */ 102 TString *name; /* variable name */ 111 TString *name; /* label identifier */
|
H A D | lstate.h | 156 TString **hash; 297 TString *memerrmsg; /* message for memory-allocation errors */ 298 TString *tmname[TM_N]; /* array with tag-method names */ 300 TString *strcache[STRCACHE_N][STRCACHE_M]; /* cache for strings in API */ 355 struct TString ts;
|
H A D | lundump.c | 110 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); 258 static void loadFunction (LoadState *S, Proto *f, TString *psource) { in loadFunction()
|
H A D | llex.c | 72 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() 134 TString *luaX_newstring (LexState *ls, const char *str, size_t l) { in luaX_newstring() 136 TString *ts = luaS_newlstr(L, str, l); /* create new string */ in luaX_newstring() 167 void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source, in luaX_setinput() 541 TString *ts; in llex()
|
H A D | lparser.c | 143 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() 175 static int registerlocalvar (LexState *ls, FuncState *fs, TString *varname) { in registerlocalvar() 193 static int new_localvar (LexState *ls, TString *name) { in new_localvar() 279 TString *varname = NULL; /* to be set if variable is const */ in check_readonly() 342 static int searchupvalue (FuncState *fs, TString *name) { in searchupvalue() 364 static int newupvalue (FuncState *fs, TString *name, expdesc *v) { in newupvalue() 390 static int searchvar (FuncState *fs, TString *n, expdesc *var) { in searchvar() 435 static void singlevaraux (FuncState *fs, TString *n, expdesc *var, int base) { in singlevaraux() [all …]
|
H A D | lobject.h | 372 { TValue *io = (obj); TString *x_ = (x); \ 386 typedef struct TString { struct 393 struct TString *hnext; /* linked list for hash table */ argument 396 } TString; argument 516 TString *name; /* upvalue name (for debug information) */ 528 TString *varname; 573 TString *source; /* used for debug information */
|
H A D | ltable.h | 41 LUAI_FUNC const TValue *luaH_getshortstr (Table *t, TString *key); 42 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
|
H A D | ldump.c | 92 static void dumpString (DumpState *D, const TString *s) { in dumpString() 110 static void dumpFunction(DumpState *D, const Proto *f, TString *psource); 183 static void dumpFunction (DumpState *D, const Proto *f, TString *psource) { in dumpFunction()
|
H A D | ldebug.h | 58 TString *src, int line);
|
H A D | ltable.c | 162 TString *ts = tsvalue(key); in mainpositionTV() 166 TString *ts = tsvalue(key); in mainpositionTV() 758 const TValue *luaH_getshortstr (Table *t, TString *key) { in luaH_getshortstr() 774 const TValue *luaH_getstr (Table *t, TString *key) { in luaH_getstr()
|
H A D | ltm.h | 77 LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
|
/freebsd/sys/contrib/openzfs/module/lua/ |
H A D | lstring.c | 31 int luaS_eqlngstr (TString *a, TString *b) { in luaS_eqlngstr() 43 int luaS_eqstr (TString *a, TString *b) { in luaS_eqstr() 96 static TString *createstrobj (lua_State *L, const char *str, size_t l, in createstrobj() 98 TString *ts; in createstrobj() 101 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 D | lstring.h | 15 #define sizestring(s) (sizeof(struct 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 D | llex.h | 39 TString *ts; 65 TString *source; /* current source name */ 66 TString *envn; /* environment variable name */ 73 TString *source, int firstchar); 74 LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l);
|
H A D | lparser.c | 61 TString *ts = ls->t.seminfo.ts; in anchor_token() 136 static TString *str_checkname (LexState *ls) { in str_checkname() 137 TString *ts; in str_checkname() 152 static void codestring (LexState *ls, expdesc *e, TString *s) { in codestring() 162 static int registerlocalvar (LexState *ls, TString *varname) { in registerlocalvar() 175 static void new_localvar (LexState *ls, TString *name) { in new_localvar() 218 static int searchupvalue (FuncState *fs, TString *name) { in searchupvalue() 228 static int newupvalue (FuncState *fs, TString *name, expdesc *v) { in newupvalue() 243 static int searchvar (FuncState *fs, TString *n) { in searchvar() 268 static int singlevaraux (FuncState *fs, TString *n, expdesc *var, int base) { in singlevaraux() [all …]
|
H A D | lstate.h | 145 TString *memerrmsg; /* memory-error message */ 146 TString *tmname[TM_N]; /* array with tag-method names */ 188 struct TString ts;
|
H A D | lobject.h | 204 TString *x_ = (x); \ 407 typedef struct TString { struct 418 } TString; argument 447 TString *name; /* upvalue name (for debug information) */ 458 TString *varname; 476 TString *source; /* used for debug information */
|
H A D | llex.c | 64 TString *ts = luaS_new(L, luaX_tokens[i]); in luaX_init() 120 TString *luaX_newstring (LexState *ls, const char *str, size_t l) { in luaX_newstring() 123 TString *ts = luaS_newlstr(L, str, l); /* create new string */ in luaX_newstring() 155 void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source, in luaX_setinput() 490 TString *ts; in llex()
|
H A D | ltm.h | 52 LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
|
H A D | ltm.c | 50 const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { in luaT_gettm()
|
H A D | lparser.h | 64 TString *name; /* label identifier */
|
H A D | ltable.h | 27 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
|