TString
TString *name;
TString *ts;
TString *ts;
int luaK_stringK (FuncState *fs, TString *s) {
LUAI_FUNC int luaK_stringK (FuncState *fs, TString *s);
TString *s = check_exp(uv < p->sizeupvalues, p->upvalues[uv].name);
TString *src = ci_func(ci)->p->source;
static void DumpString(const TString* s, DumpState* D)
#define GCSWEEPCOST ((sizeof(TString) + 4) / 4)
#define GCSTEPSIZE (cast_int(100 * sizeof(TString)))
TString *luaX_newstring (LexState *ls, const char *str, size_t l) {
TString *ts = luaS_newlstr(L, str, l); /* create new string */
void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source,
TString *ts;
TString *ts = luaS_new(L, luaX_tokens[i]);
TString *ts;
TString *source; /* current source name */
TString *envn; /* environment variable name */
TString *source, int firstchar);
LUAI_FUNC TString *luaX_newstring (LexState *ls, const char *str, size_t l);
TString *x_ = (x); \
TString *name; /* upvalue name (for debug information) */
TString *varname;
TString *source; /* used for debug information */
TString *label;
static void checkrepeated (FuncState *fs, Labellist *ll, TString *label) {
static void labelstat (LexState *ls, TString *label, int line) {
static void fornum (LexState *ls, TString *varname, int line) {
static void forlist (LexState *ls, TString *indexname) {
TString *varname;
static TString *str_checkname (LexState *ls) {
TString *ts;
static void codestring (LexState *ls, expdesc *e, TString *s) {
static int registerlocalvar (LexState *ls, TString *varname) {
static void new_localvar (LexState *ls, TString *name) {
static int searchupvalue (FuncState *fs, TString *name) {
static int newupvalue (FuncState *fs, TString *name, expdesc *v) {
static int searchvar (FuncState *fs, TString *n) {
static int singlevaraux (FuncState *fs, TString *n, expdesc *var, int base) {
TString *varname = str_checkname(ls);
TString *vname = getlocvar(fs, gt->nactvar)->varname;
static int newlabelentry (LexState *ls, Labellist *l, TString *name,
TString *n = luaS_new(ls->L, "break");
TString *ts = ls->t.seminfo.ts;
TString *name; /* label identifier */
TString *memerrmsg; /* memory-error message */
TString *tmname[TM_N]; /* array with tag-method names */
union TString ts;
TString *ts;
totalsize = sizeof(TString) + ((l + 1) * sizeof(char));
static TString *newshrstr (lua_State *L, const char *str, size_t l,
TString *s;
static TString *internshrstr (lua_State *L, const char *str, size_t l) {
TString *ts = rawgco2ts(o);
TString *luaS_newlstr (lua_State *L, const char *str, size_t l) {
if (l + 1 > (MAX_SIZET - sizeof(TString))/sizeof(char))
TString *luaS_new (lua_State *L, const char *str) {
int luaS_eqlngstr (TString *a, TString *b) {
int luaS_eqstr (TString *a, TString *b) {
static TString *createstrobj (lua_State *L, const char *str, size_t l,
#define sizestring(s) (sizeof(union TString)+((s)->len+1)*sizeof(char))
LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b);
LUAI_FUNC int luaS_eqstr (TString *a, TString *b);
LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
LUAI_FUNC TString *luaS_new (lua_State *L, const char *str);
TString *s = rawtsvalue(key);
const TValue *luaH_getstr (Table *t, TString *key) {
LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
const TValue *luaT_gettm (Table *events, TMS event, TString *ename) {
LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
static TString* LoadString(LoadState* S)
static int l_strcmp (const TString *ls, const TString *rs) {