lua5.4
| 宏定义 | 类型定义 | 函数
lobject.c 文件参考
#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"
lobject.c 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

struct  BuffFS
 

宏定义

#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   44
 
#define BUFVFS   200
 
#define addsize(b, sz)   ((b)->blen += (sz))
 
#define RETS   "..."
 
#define PRE   "[string \""
 
#define POS   "\"]"
 
#define addstr(a, b, l)   ( memcpy(a,b,(l) * sizeof(char)), a += (l) )
 

类型定义

typedef struct BuffFS BuffFS
 

函数

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)
 
int luaO_rawarith (lua_State *L, int op, const TValue *p1, const TValue *p2, TValue *res)
 
void luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2, StkId 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)
 
static int tostringbuff (TValue *obj, char *buff)
 
void luaO_tostring (lua_State *L, TValue *obj)
 
static void pushstr (BuffFS *buff, const char *str, size_t l)
 
static void clearbuff (BuffFS *buff)
 
static char * getbuff (BuffFS *buff, int sz)
 
static void addstr2buff (BuffFS *buff, const char *str, size_t slen)
 
static void addnum2buff (BuffFS *buff, TValue *num)
 
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 srclen)
 

宏定义说明

◆ addsize

#define addsize (   b,
  sz 
)    ((b)->blen += (sz))

◆ addstr

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

◆ BUFVFS

#define BUFVFS   200

◆ L_MAXLENNUM

#define L_MAXLENNUM   200

◆ 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   44

◆ POS

#define POS   "\"]"

◆ PRE

#define PRE   "[string \""

◆ RETS

#define RETS   "..."

类型定义说明

◆ BuffFS

typedef struct BuffFS BuffFS

函数说明

◆ addnum2buff()

static void addnum2buff ( BuffFS buff,
TValue num 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ addstr2buff()

static void addstr2buff ( BuffFS buff,
const char *  str,
size_t  slen 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ clearbuff()

static void clearbuff ( BuffFS buff)
static
函数调用图:
这是这个函数的调用关系图:

◆ getbuff()

static char* getbuff ( BuffFS buff,
int  sz 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ intarith()

static lua_Integer intarith ( lua_State L,
int  op,
lua_Integer  v1,
lua_Integer  v2 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ isneg()

static int isneg ( const char **  s)
static
这是这个函数的调用关系图:

◆ l_str2d()

static const char* l_str2d ( const char *  s,
lua_Number result 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ l_str2dloc()

static const char* l_str2dloc ( const char *  s,
lua_Number result,
int  mode 
)
static
这是这个函数的调用关系图:

◆ l_str2int()

static const char* l_str2int ( const char *  s,
lua_Integer result 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ luaO_arith()

void luaO_arith ( lua_State L,
int  op,
const TValue p1,
const TValue p2,
StkId  res 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaO_ceillog2()

int luaO_ceillog2 ( unsigned int  x)
这是这个函数的调用关系图:

◆ luaO_chunkid()

void luaO_chunkid ( char *  out,
const char *  source,
size_t  srclen 
)
这是这个函数的调用关系图:

◆ luaO_hexavalue()

int luaO_hexavalue ( int  c)
这是这个函数的调用关系图:

◆ luaO_pushfstring()

const char* luaO_pushfstring ( lua_State L,
const char *  fmt,
  ... 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaO_pushvfstring()

const char* luaO_pushvfstring ( lua_State L,
const char *  fmt,
va_list  argp 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaO_rawarith()

int luaO_rawarith ( lua_State L,
int  op,
const TValue p1,
const TValue p2,
TValue res 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaO_str2num()

size_t luaO_str2num ( const char *  s,
TValue o 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaO_tostring()

void luaO_tostring ( lua_State L,
TValue obj 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaO_utf8esc()

int luaO_utf8esc ( char *  buff,
unsigned long  x 
)
这是这个函数的调用关系图:

◆ numarith()

static lua_Number numarith ( lua_State L,
int  op,
lua_Number  v1,
lua_Number  v2 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ pushstr()

static void pushstr ( BuffFS buff,
const char *  str,
size_t  l 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ tostringbuff()

static int tostringbuff ( TValue obj,
char *  buff 
)
static
这是这个函数的调用关系图: