RetroArch
Macros | Functions
lstring.c File Reference
#include "lprefix.h"
#include <string.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lmem.h"
#include "lobject.h"
#include "lstate.h"
#include "lstring.h"
Include dependency graph for lstring.c:

Macros

#define lstring_c
 
#define LUA_CORE
 
#define MEMERRMSG   "not enough memory"
 
#define LUAI_HASHLIMIT   5
 

Functions

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

Macro Definition Documentation

◆ lstring_c

#define lstring_c

◆ LUA_CORE

#define LUA_CORE

◆ LUAI_HASHLIMIT

#define LUAI_HASHLIMIT   5

◆ MEMERRMSG

#define MEMERRMSG   "not enough memory"

Function Documentation

◆ createstrobj()

static TString* createstrobj ( lua_State L,
size_t  l,
int  tag,
unsigned int  h 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ internshrstr()

static TString* internshrstr ( lua_State L,
const char *  str,
size_t  l 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaS_clearcache()

void luaS_clearcache ( global_State g)
Here is the caller graph for this function:

◆ luaS_createlngstrobj()

TString* luaS_createlngstrobj ( lua_State L,
size_t  l 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaS_eqlngstr()

int luaS_eqlngstr ( TString a,
TString b 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaS_hash()

unsigned int luaS_hash ( const char *  str,
size_t  l,
unsigned int  seed 
)
Here is the caller graph for this function:

◆ luaS_hashlongstr()

unsigned int luaS_hashlongstr ( TString ts)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaS_init()

void luaS_init ( lua_State L)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaS_new()

TString* luaS_new ( lua_State L,
const char *  str 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaS_newlstr()

TString* luaS_newlstr ( lua_State L,
const char *  str,
size_t  l 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaS_newudata()

Udata* luaS_newudata ( lua_State L,
size_t  s 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaS_remove()

void luaS_remove ( lua_State L,
TString ts 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaS_resize()

void luaS_resize ( lua_State L,
int  newsize 
)
Here is the call graph for this function:
Here is the caller graph for this function: