RetroArch
Macros | Functions | Variables
lobject.c File Reference
#include "lprefix.h"
#include <locale.h>
#include <math.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lctype.h"
#include "ldebug.h"
#include "ldo.h"
#include "lmem.h"
#include "lobject.h"
#include "lstate.h"
#include "lstring.h"
#include "lvm.h"
Include dependency graph for lobject.c:

Macros

#define lobject_c
 
#define LUA_CORE
 
#define L_MAXLENNUM   200
 
#define MAXBY10   cast(lua_Unsigned, LUA_MAXINTEGER / 10)
 
#define MAXLASTD   cast_int(LUA_MAXINTEGER % 10)
 
#define MAXNUMBER2STR   50
 
#define LL(x)   (sizeof(x)/sizeof(char) - 1)
 
#define RETS   "..."
 
#define PRE   "[string \""
 
#define POS   "\"]"
 
#define addstr(a, b, l)   ( memcpy(a,b,(l) * sizeof(char)), a += (l) )
 

Functions

int luaO_int2fb (unsigned int x)
 
int luaO_fb2int (int x)
 
int luaO_ceillog2 (unsigned int x)
 
static lua_Integer intarith (lua_State *L, int op, lua_Integer v1, lua_Integer v2)
 
static lua_Number numarith (lua_State *L, int op, lua_Number v1, lua_Number v2)
 
void luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2, TValue *res)
 
int luaO_hexavalue (int c)
 
static int isneg (const char **s)
 
static const char * l_str2dloc (const char *s, lua_Number *result, int mode)
 
static const char * l_str2d (const char *s, lua_Number *result)
 
static const char * l_str2int (const char *s, lua_Integer *result)
 
size_t luaO_str2num (const char *s, TValue *o)
 
int luaO_utf8esc (char *buff, unsigned long x)
 
void luaO_tostring (lua_State *L, StkId obj)
 
static void pushstr (lua_State *L, const char *str, size_t l)
 
const char * luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp)
 
const char * luaO_pushfstring (lua_State *L, const char *fmt,...)
 
void luaO_chunkid (char *out, const char *source, size_t bufflen)
 

Variables

LUAI_DDEF const TValue luaO_nilobject_ = {NILCONSTANT}
 

Macro Definition Documentation

◆ addstr

#define addstr (   a,
  b,
  l 
)    ( memcpy(a,b,(l) * sizeof(char)), a += (l) )

◆ L_MAXLENNUM

#define L_MAXLENNUM   200

◆ LL

#define LL (   x)    (sizeof(x)/sizeof(char) - 1)

◆ lobject_c

#define lobject_c

◆ LUA_CORE

#define LUA_CORE

◆ MAXBY10

#define MAXBY10   cast(lua_Unsigned, LUA_MAXINTEGER / 10)

◆ MAXLASTD

#define MAXLASTD   cast_int(LUA_MAXINTEGER % 10)

◆ MAXNUMBER2STR

#define MAXNUMBER2STR   50

◆ POS

#define POS   "\"]"

◆ PRE

#define PRE   "[string \""

◆ RETS

#define RETS   "..."

Function Documentation

◆ intarith()

static lua_Integer intarith ( lua_State L,
int  op,
lua_Integer  v1,
lua_Integer  v2 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isneg()

static int isneg ( const char **  s)
static
Here is the caller graph for this function:

◆ l_str2d()

static const char* l_str2d ( const char *  s,
lua_Number result 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ l_str2dloc()

static const char* l_str2dloc ( const char *  s,
lua_Number result,
int  mode 
)
static
Here is the caller graph for this function:

◆ l_str2int()

static const char* l_str2int ( const char *  s,
lua_Integer result 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaO_arith()

void luaO_arith ( lua_State L,
int  op,
const TValue p1,
const TValue p2,
TValue res 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaO_ceillog2()

int luaO_ceillog2 ( unsigned int  x)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaO_chunkid()

void luaO_chunkid ( char *  out,
const char *  source,
size_t  bufflen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaO_fb2int()

int luaO_fb2int ( int  x)
Here is the caller graph for this function:

◆ luaO_hexavalue()

int luaO_hexavalue ( int  c)
Here is the caller graph for this function:

◆ luaO_int2fb()

int luaO_int2fb ( unsigned int  x)
Here is the caller graph for this function:

◆ luaO_pushfstring()

const char* luaO_pushfstring ( lua_State L,
const char *  fmt,
  ... 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaO_pushvfstring()

const char* luaO_pushvfstring ( lua_State L,
const char *  fmt,
va_list  argp 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaO_str2num()

size_t luaO_str2num ( const char *  s,
TValue o 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaO_tostring()

void luaO_tostring ( lua_State L,
StkId  obj 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaO_utf8esc()

int luaO_utf8esc ( char *  buff,
unsigned long  x 
)
Here is the caller graph for this function:

◆ numarith()

static lua_Number numarith ( lua_State L,
int  op,
lua_Number  v1,
lua_Number  v2 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pushstr()

static void pushstr ( 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:

Variable Documentation

◆ luaO_nilobject_

LUAI_DDEF const TValue luaO_nilobject_ = {NILCONSTANT}