Classes | Macros | Typedefs | Functions
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:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BuffFS
 

Macros

#define addsize(b, sz)   ((b)->blen += (sz))
 
#define addstr(a, b, l)   ( memcpy(a,b,(l) * sizeof(char)), a += (l) )
 
#define BUFVFS   200
 
#define L_MAXLENNUM   200
 
#define lobject_c
 
#define LUA_CORE
 
#define MAXBY10   cast(lua_Unsigned, LUA_MAXINTEGER / 10)
 
#define MAXLASTD   cast_int(LUA_MAXINTEGER % 10)
 
#define MAXNUMBER2STR   44
 
#define POS   "\"]"
 
#define PRE   "[string \""
 
#define RETS   "..."
 

Typedefs

typedef struct BuffFS BuffFS
 

Functions

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

Macro Definition Documentation

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

Definition at line 436 of file lobject.c.

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

Definition at line 555 of file lobject.c.

#define BUFVFS   200

Definition at line 390 of file lobject.c.

#define L_MAXLENNUM   200

Definition at line 220 of file lobject.c.

#define lobject_c

Definition at line 7 of file lobject.c.

#define LUA_CORE

Definition at line 8 of file lobject.c.

#define MAXBY10   cast(lua_Unsigned, LUA_MAXINTEGER / 10)

Definition at line 273 of file lobject.c.

#define MAXLASTD   cast_int(LUA_MAXINTEGER % 10)

Definition at line 274 of file lobject.c.

#define MAXNUMBER2STR   44

Definition at line 349 of file lobject.c.

#define POS   "\"]"

Definition at line 553 of file lobject.c.

#define PRE   "[string \""

Definition at line 552 of file lobject.c.

#define RETS   "..."

Definition at line 551 of file lobject.c.

Typedef Documentation

typedef struct BuffFS BuffFS

Function Documentation

static void addnum2buff ( BuffFS buff,
TValue num 
)
static

Definition at line 459 of file lobject.c.

static void addstr2buff ( BuffFS buff,
const char *  str,
size_t  slen 
)
static

Definition at line 443 of file lobject.c.

static void clearbuff ( BuffFS buff)
static

Definition at line 418 of file lobject.c.

static char* getbuff ( BuffFS buff,
int  sz 
)
static

Definition at line 428 of file lobject.c.

static lua_Integer intarith ( lua_State L,
int  op,
lua_Integer  v1,
lua_Integer  v2 
)
static

Definition at line 53 of file lobject.c.

static int isneg ( const char **  s)
static

Definition at line 141 of file lobject.c.

static const char* l_str2d ( const char *  s,
lua_Number result 
)
static

Definition at line 251 of file lobject.c.

static const char* l_str2dloc ( const char *  s,
lua_Number result,
int  mode 
)
static

Definition at line 228 of file lobject.c.

static const char* l_str2int ( const char *  s,
lua_Integer result 
)
static

Definition at line 276 of file lobject.c.

void luaO_arith ( lua_State L,
int  op,
const TValue p1,
const TValue p2,
StkId  res 
)

Definition at line 126 of file lobject.c.

int luaO_ceillog2 ( unsigned int  x)

Definition at line 35 of file lobject.c.

void luaO_chunkid ( char *  out,
const char *  source,
size_t  srclen 
)

Definition at line 557 of file lobject.c.

int luaO_hexavalue ( int  c)

Definition at line 135 of file lobject.c.

const char* luaO_pushfstring ( lua_State L,
const char *  fmt,
  ... 
)

Definition at line 539 of file lobject.c.

const char* luaO_pushvfstring ( lua_State L,
const char *  fmt,
va_list  argp 
)

Definition at line 470 of file lobject.c.

int luaO_rawarith ( lua_State L,
int  op,
const TValue p1,
const TValue p2,
TValue res 
)

Definition at line 89 of file lobject.c.

size_t luaO_str2num ( const char *  s,
TValue o 
)

Definition at line 308 of file lobject.c.

void luaO_tostring ( lua_State L,
TValue obj 
)

Definition at line 374 of file lobject.c.

int luaO_utf8esc ( char *  buff,
unsigned long  x 
)

Definition at line 323 of file lobject.c.

static lua_Number numarith ( lua_State L,
int  op,
lua_Number  v1,
lua_Number  v2 
)
static

Definition at line 73 of file lobject.c.

static void pushstr ( BuffFS buff,
const char *  str,
size_t  l 
)
static

Definition at line 405 of file lobject.c.

static int tostringbuff ( TValue obj,
char *  buff 
)
static

Definition at line 355 of file lobject.c.



plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:48