#include "lobject.h"
#include "lstate.h"
Go to the source code of this file.
Defines | |
#define | sizestring(l) |
#define | sizeudata(l) (cast(lu_mem, sizeof(union Udata))+(l)) |
#define | luaS_new(L, s) (luaS_newlstr(L, s, strlen(s))) |
#define | luaS_newliteral(L, s) |
#define | luaS_fix(s) ((s)->tsv.marked |= (1<<4)) |
Functions | |
void | luaS_resize (lua_State *L, int newsize) |
Udata * | luaS_newudata (lua_State *L, size_t s) |
void | luaS_freeall (lua_State *L) |
TString * | luaS_newlstr (lua_State *L, const char *str, size_t l) |
#define luaS_fix | ( | s | ) | ((s)->tsv.marked |= (1<<4)) |
#define luaS_new | ( | L, | |||
s | ) | (luaS_newlstr(L, s, strlen(s))) |
Definition at line 21 of file lstring.h.
Referenced by luaT_init(), luaV_tostring(), luaX_init(), luaY_parser(), new_localvarstr(), pushstr(), resume_error(), and seterrorobj().
#define luaS_newliteral | ( | L, | |||
s | ) |
Value:
(luaS_newlstr(L, "" s, \ (sizeof(s)/sizeof(char))-1))
Definition at line 22 of file lstring.h.
Referenced by adjust_varargs(), and f_luaopen().
#define sizestring | ( | l | ) |
Definition at line 19 of file lstring.h.
Referenced by freeobj(), luaC_separateudata(), and luaS_newudata().
void luaS_freeall | ( | lua_State * | L | ) |
Definition at line 21 of file lstring.c.
References G, lua_assert, and luaM_freearray.
Referenced by close_state().
Definition at line 75 of file lstring.c.
References G, GCObject::gch, gcotots, getstr, lmod, and GCheader::next.
Referenced by LoadString(), lua_concat(), lua_pushlstring(), luaO_pushvfstring(), luaV_concat(), luaX_lex(), and read_string().
Definition at line 93 of file lstring.c.
References cast, defaultmeta, G, hvalue, Udata::len, luaM_malloc, Udata::marked, Udata::metatable, Udata::next, sizeudata, Udata::tt, Udata::uv, and valtogco.
Referenced by lua_newuserdata().
void luaS_resize | ( | lua_State * | L, | |
int | newsize | |||
) |
Definition at line 27 of file lstring.c.
References cast, G, gcotots, stringtable::hash, lmod, lua_assert, luaM_freearray, luaM_newvector, next, and stringtable::size.
Referenced by checkSizes(), f_luaopen(), and newlstr().