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)
 
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

◆ eqshrstr

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

Definition at line 41 of file lstring.h.

◆ isreserved

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

Definition at line 35 of file lstring.h.

◆ luaS_newliteral

#define luaS_newliteral (   L,
  s 
)
Value:
(luaS_newlstr(L, "" s, \
(sizeof(s)/sizeof(char))-1))

Definition at line 28 of file lstring.h.

◆ MEMERRMSG

#define MEMERRMSG   "not enough memory"

Definition at line 19 of file lstring.h.

◆ sizelstring

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

Definition at line 26 of file lstring.h.

Function Documentation

◆ luaS_clearcache()

LUAI_FUNC void luaS_clearcache ( global_State g)

Definition at line 110 of file lstring.c.

◆ luaS_createlngstrobj()

LUAI_FUNC TString* luaS_createlngstrobj ( lua_State L,
size_t  l 
)

Definition at line 157 of file lstring.c.

◆ luaS_eqlngstr()

LUAI_FUNC int luaS_eqlngstr ( TString a,
TString b 
)

Definition at line 34 of file lstring.c.

◆ luaS_hash()

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

Definition at line 43 of file lstring.c.

◆ luaS_hashlongstr()

LUAI_FUNC unsigned int luaS_hashlongstr ( TString ts)

Definition at line 51 of file lstring.c.

◆ luaS_init()

LUAI_FUNC void luaS_init ( lua_State L)

Definition at line 123 of file lstring.c.

◆ luaS_new()

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

Definition at line 241 of file lstring.c.

◆ luaS_newlstr()

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

Definition at line 221 of file lstring.c.

◆ luaS_newudata()

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

Definition at line 258 of file lstring.c.

◆ luaS_remove()

LUAI_FUNC void luaS_remove ( lua_State L,
TString ts 
)

Definition at line 164 of file lstring.c.

◆ luaS_resize()

LUAI_FUNC void luaS_resize ( lua_State L,
int  newsize 
)

Definition at line 85 of file lstring.c.

luaS_newlstr
LUAI_FUNC TString * luaS_newlstr(lua_State *L, const char *str, size_t l)
Definition: lstring.c:221


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:49