Github User Fetcher 1.0.0
C Application with Server and GUI
|
#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"
Go to the source code of this file.
Data Structures | |
struct | BuffFS |
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 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) ) |
Typedefs | |
typedef struct BuffFS | BuffFS |
Functions | |
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) |
#define addsize | ( | b, | |
sz ) ((b)->blen += (sz)) |
Definition at line 436 of file lua-5.4.3/src/lobject.c.
Referenced by addnum2buff(), addstr2buff(), and luaO_pushvfstring().
Definition at line 555 of file lua-5.4.3/src/lobject.c.
Referenced by luaO_chunkid().
#define BUFVFS 200 |
Definition at line 390 of file lua-5.4.3/src/lobject.c.
Referenced by addstr2buff(), and getbuff().
#define L_MAXLENNUM 200 |
Definition at line 220 of file lua-5.4.3/src/lobject.c.
Referenced by l_str2d().
#define lobject_c |
Definition at line 7 of file lua-5.4.3/src/lobject.c.
#define LUA_CORE |
Definition at line 8 of file lua-5.4.3/src/lobject.c.
#define MAXBY10 cast(lua_Unsigned, LUA_MAXINTEGER / 10) |
Definition at line 273 of file lua-5.4.3/src/lobject.c.
Referenced by l_str2int().
#define MAXLASTD cast_int(LUA_MAXINTEGER % 10) |
Definition at line 274 of file lua-5.4.3/src/lobject.c.
Referenced by l_str2int().
#define MAXNUMBER2STR 44 |
Definition at line 349 of file lua-5.4.3/src/lobject.c.
Referenced by addnum2buff(), luaO_tostring(), and tostringbuff().
#define POS "\"]" |
Definition at line 553 of file lua-5.4.3/src/lobject.c.
Referenced by luaO_chunkid().
#define PRE "[string \"" |
Definition at line 552 of file lua-5.4.3/src/lobject.c.
Referenced by luaO_chunkid().
#define RETS "..." |
Definition at line 551 of file lua-5.4.3/src/lobject.c.
Referenced by luaO_chunkid().
typedef struct BuffFS BuffFS |
Definition at line 459 of file lua-5.4.3/src/lobject.c.
References addsize, getbuff(), MAXNUMBER2STR, and tostringbuff().
Referenced by luaO_pushvfstring().
|
static |
Definition at line 443 of file lua-5.4.3/src/lobject.c.
References addsize, BUFVFS, cast_int, clearbuff(), getbuff(), and pushstr().
Referenced by luaO_pushvfstring().
|
static |
Definition at line 418 of file lua-5.4.3/src/lobject.c.
References BuffFS::blen, pushstr(), and BuffFS::space.
Referenced by addstr2buff(), getbuff(), and luaO_pushvfstring().
|
static |
Definition at line 428 of file lua-5.4.3/src/lobject.c.
References BuffFS::blen, BUFVFS, clearbuff(), lua_assert, and BuffFS::space.
Referenced by addnum2buff(), addstr2buff(), and luaO_pushvfstring().
|
static |
Definition at line 53 of file lua-5.4.3/src/lobject.c.
References intop, l_castS2U, lua_assert, LUA_OPADD, LUA_OPBAND, LUA_OPBNOT, LUA_OPBOR, LUA_OPBXOR, LUA_OPIDIV, LUA_OPMOD, LUA_OPMUL, LUA_OPSHL, LUA_OPSHR, LUA_OPSUB, LUA_OPUNM, luaV_idiv(), luaV_mod(), and luaV_shiftl().
Referenced by luaO_rawarith().
|
static |
Definition at line 141 of file lua-5.4.3/src/lobject.c.
References s.
Referenced by l_str2int().
|
static |
Definition at line 251 of file lua-5.4.3/src/lobject.c.
References cast_uchar, L_MAXLENNUM, l_str2dloc(), ltolower, lua_getlocaledecpoint, NULL, and s.
Referenced by luaO_str2num().
|
static |
Definition at line 228 of file lua-5.4.3/src/lobject.c.
References cast_uchar, lisspace, lua_str2number, lua_strx2number, NULL, and s.
Referenced by l_str2d().
|
static |
Definition at line 276 of file lua-5.4.3/src/lobject.c.
References cast_uchar, isneg(), l_castU2S, lisdigit, lisspace, lisxdigit, luaO_hexavalue(), MAXBY10, MAXLASTD, NULL, and s.
Referenced by luaO_str2num().
Definition at line 126 of file lua-5.4.3/src/lobject.c.
References cast, LUA_OPADD, luaO_rawarith(), luaT_trybinTM(), s2v, and TM_ADD.
int luaO_ceillog2 | ( | unsigned int | x | ) |
Definition at line 35 of file lua-5.4.3/src/lobject.c.
void luaO_chunkid | ( | char * | out, |
const char * | source, | ||
size_t | srclen ) |
Definition at line 557 of file lua-5.4.3/src/lobject.c.
References addstr, bufflen, LL, LUA_IDSIZE, NULL, POS, PRE, and RETS.
int luaO_hexavalue | ( | int | c | ) |
Definition at line 135 of file lua-5.4.3/src/lobject.c.
References lisdigit, and ltolower.
Referenced by l_str2int().
const char * luaO_pushfstring | ( | lua_State * | L, |
const char * | fmt, | ||
... ) |
Definition at line 539 of file lua-5.4.3/src/lobject.c.
References luaO_pushvfstring().
const char * luaO_pushvfstring | ( | lua_State * | L, |
const char * | fmt, | ||
va_list | argp ) |
Definition at line 470 of file lua-5.4.3/src/lobject.c.
References addnum2buff(), addsize, addstr2buff(), BuffFS::blen, cast, cast_num, cast_uchar, clearbuff(), getbuff(), BuffFS::L, lua_assert, lua_pointer2str, luaG_runerror(), luaO_utf8esc(), NULL, BuffFS::pushed, s, s2v, setfltvalue, setivalue, svalue, lua_State::top, and UTF8BUFFSZ.
Referenced by luaO_pushfstring().
Definition at line 89 of file lua-5.4.3/src/lobject.c.
References intarith(), ivalue, LUA_OPBAND, LUA_OPBNOT, LUA_OPBOR, LUA_OPBXOR, LUA_OPDIV, LUA_OPPOW, LUA_OPSHL, LUA_OPSHR, numarith(), setfltvalue, setivalue, tointegerns, tonumberns, and ttisinteger.
Referenced by constfolding(), and luaO_arith().
size_t luaO_str2num | ( | const char * | s, |
TValue * | o ) |
Definition at line 308 of file lua-5.4.3/src/lobject.c.
References l_str2d(), l_str2int(), NULL, s, setfltvalue, and setivalue.
Definition at line 374 of file lua-5.4.3/src/lobject.c.
References luaS_newlstr(), MAXNUMBER2STR, setsvalue, and tostringbuff().
int luaO_utf8esc | ( | char * | buff, |
unsigned long | x ) |
Definition at line 323 of file lua-5.4.3/src/lobject.c.
References cast_char, lua_assert, and UTF8BUFFSZ.
Referenced by luaO_pushvfstring().
|
static |
Definition at line 73 of file lua-5.4.3/src/lobject.c.
References lua_assert, LUA_OPADD, LUA_OPDIV, LUA_OPIDIV, LUA_OPMOD, LUA_OPMUL, LUA_OPPOW, LUA_OPSUB, LUA_OPUNM, luai_numadd, luai_numdiv, luai_numidiv, luai_nummul, luai_numpow, luai_numsub, luai_numunm, and luaV_modf().
Referenced by luaO_rawarith().
|
static |
Definition at line 405 of file lua-5.4.3/src/lobject.c.
References BuffFS::L, luaS_newlstr(), luaV_concat(), BuffFS::pushed, setsvalue2s, and lua_State::top.
Referenced by addstr2buff(), and clearbuff().
|
static |
Definition at line 355 of file lua-5.4.3/src/lobject.c.
References fltvalue, ivalue, lua_assert, lua_getlocaledecpoint, lua_integer2str, lua_number2str, MAXNUMBER2STR, ttisinteger, and ttisnumber.
Referenced by addnum2buff(), and luaO_tostring().