Macros | Functions
lstring.h File Reference
#include "lgc.h"
#include "lobject.h"
#include "lstate.h"
Include dependency graph for lstring.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define eqshrstr(a, b)   check_exp((a)->tt == LUA_VSHRSTR, (a) == (b))
 
#define isreserved(s)   ((s)->tt == LUA_VSHRSTR && (s)->extra > 0)
 
#define luaS_newliteral(L, s)
 
#define MEMERRMSG   "not enough memory"
 
#define sizelstring(l)   (offsetof(TString, contents) + ((l) + 1) * sizeof(char))
 

Functions

LUAI_FUNC void luaS_clearcache (global_State *g)
 
LUAI_FUNC TStringluaS_createlngstrobj (lua_State *L, size_t l)
 
LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b)
 
LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed, size_t step)
 
LUAI_FUNC unsigned int luaS_hashlongstr (TString *ts)
 
LUAI_FUNC void luaS_init (lua_State *L)
 
LUAI_FUNC TStringluaS_new (lua_State *L, const char *str)
 
LUAI_FUNC TStringluaS_newlstr (lua_State *L, const char *str, size_t l)
 
LUAI_FUNC UdataluaS_newudata (lua_State *L, size_t s, int nuvalue)
 
LUAI_FUNC void luaS_remove (lua_State *L, TString *ts)
 
LUAI_FUNC void luaS_resize (lua_State *L, int newsize)
 

Macro Definition Documentation

#define eqshrstr (   a,
 
)    check_exp((a)->tt == LUA_VSHRSTR, (a) == (b))

Definition at line 41 of file lstring.h.

#define isreserved (   s)    ((s)->tt == LUA_VSHRSTR && (s)->extra > 0)

Definition at line 35 of file lstring.h.

#define luaS_newliteral (   L,
 
)
Value:
(luaS_newlstr(L, "" s, \
(sizeof(s)/sizeof(char))-1))
LUAI_FUNC TString * luaS_newlstr(lua_State *L, const char *str, size_t l)
Definition: lstring.c:233

Definition at line 28 of file lstring.h.

#define MEMERRMSG   "not enough memory"

Definition at line 19 of file lstring.h.

#define sizelstring (   l)    (offsetof(TString, contents) + ((l) + 1) * sizeof(char))

Definition at line 26 of file lstring.h.

Function Documentation

LUAI_FUNC void luaS_clearcache ( global_State g)

Definition at line 122 of file lstring.c.

LUAI_FUNC TString* luaS_createlngstrobj ( lua_State L,
size_t  l 
)

Definition at line 169 of file lstring.c.

LUAI_FUNC int luaS_eqlngstr ( TString a,
TString b 
)

Definition at line 44 of file lstring.c.

LUAI_FUNC unsigned int luaS_hash ( const char *  str,
size_t  l,
unsigned int  seed,
size_t  step 
)

Definition at line 53 of file lstring.c.

LUAI_FUNC unsigned int luaS_hashlongstr ( TString ts)

Definition at line 62 of file lstring.c.

LUAI_FUNC void luaS_init ( lua_State L)

Definition at line 135 of file lstring.c.

LUAI_FUNC TString* luaS_new ( lua_State L,
const char *  str 
)

Definition at line 253 of file lstring.c.

LUAI_FUNC TString* luaS_newlstr ( lua_State L,
const char *  str,
size_t  l 
)

Definition at line 233 of file lstring.c.

LUAI_FUNC Udata* luaS_newudata ( lua_State L,
size_t  s,
int  nuvalue 
)

Definition at line 270 of file lstring.c.

LUAI_FUNC void luaS_remove ( lua_State L,
TString ts 
)

Definition at line 176 of file lstring.c.

LUAI_FUNC void luaS_resize ( lua_State L,
int  newsize 
)

Definition at line 97 of file lstring.c.



plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:48