sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
lstring.h File Reference
#include "lgc.h"
#include "lobject.h"
#include "lstate.h"

Go to the source code of this file.

Macros

#define MEMERRMSG   "not enough memory"
#define sizelstring(l)
#define luaS_newliteral(L, s)
#define isreserved(s)
#define eqshrstr(a, b)

Functions

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 int luaS_eqlngstr (TString *a, TString *b)
LUAI_FUNC void luaS_resize (lua_State *L, int newsize)
LUAI_FUNC void luaS_clearcache (global_State *g)
LUAI_FUNC void luaS_init (lua_State *L)
LUAI_FUNC void luaS_remove (lua_State *L, TString *ts)
LUAI_FUNC Udata * luaS_newudata (lua_State *L, size_t s, int nuvalue)
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)
LUAI_FUNC TString * luaS_createlngstrobj (lua_State *L, size_t l)

Macro Definition Documentation

◆ eqshrstr

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

Definition at line 45 of file lstring.h.

◆ isreserved

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

Definition at line 39 of file lstring.h.

◆ luaS_newliteral

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

Definition at line 32 of file lstring.h.

◆ MEMERRMSG

#define MEMERRMSG   "not enough memory"

Definition at line 23 of file lstring.h.

◆ sizelstring

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

Definition at line 30 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.