Ardour  9.0-pre0-386-g96ef4d20f2
lstring.h File Reference
#include "lgc.h"
#include "lobject.h"
#include "lstate.h"
Include dependency graph for lstring.h:

Go to the source code of this file.

Macros

#define sizelstring(l)   (sizeof(union UTString) + ((l) + 1) * sizeof(char))
 
#define sizeludata(l)   (sizeof(union UUdata) + (l))
 
#define sizeudata(u)   sizeludata((u)->len)
 
#define luaS_newliteral(L, s)
 
#define isreserved(s)   ((s)->tt == LUA_TSHRSTR && (s)->extra > 0)
 
#define eqshrstr(a, b)   check_exp((a)->tt == LUA_TSHRSTR, (a) == (b))
 

Functions

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

Macro Definition Documentation

◆ eqshrstr

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

Definition at line 33 of file lstring.h.

◆ isreserved

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

Definition at line 27 of file lstring.h.

◆ luaS_newliteral

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

Definition at line 20 of file lstring.h.

◆ sizelstring

#define sizelstring (   l)    (sizeof(union UTString) + ((l) + 1) * sizeof(char))

Definition at line 15 of file lstring.h.

◆ sizeludata

#define sizeludata (   l)    (sizeof(union UUdata) + (l))

Definition at line 17 of file lstring.h.

◆ sizeudata

#define sizeudata (   u)    sizeludata((u)->len)

Definition at line 18 of file lstring.h.

Function Documentation

◆ luaS_clearcache()

void luaS_clearcache ( global_State g)

◆ luaS_createlngstrobj()

TString* luaS_createlngstrobj ( lua_State L,
size_t  l 
)

◆ luaS_eqlngstr()

int luaS_eqlngstr ( TString a,
TString b 
)

◆ luaS_hash()

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

◆ luaS_hashlongstr()

unsigned int luaS_hashlongstr ( TString ts)

◆ luaS_init()

void luaS_init ( lua_State L)

◆ luaS_new()

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

◆ luaS_newlstr()

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

◆ luaS_newudata()

Udata* luaS_newudata ( lua_State L,
size_t  s 
)

◆ luaS_remove()

void luaS_remove ( lua_State L,
TString ts 
)

◆ luaS_resize()

void luaS_resize ( lua_State L,
int  newsize 
)