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.
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} |
Definition at line 485 of file lua-5.3.6/src/lobject.c.
Referenced by luaO_chunkid().
#define L_MAXLENNUM 200 |
Definition at line 248 of file lua-5.3.6/src/lobject.c.
Referenced by l_str2d().
#define LL | ( | x | ) | (sizeof(x)/sizeof(char) - 1) |
Definition at line 479 of file lua-5.3.6/src/lobject.c.
Referenced by luaO_chunkid().
#define lobject_c |
Definition at line 7 of file lua-5.3.6/src/lobject.c.
#define LUA_CORE |
Definition at line 8 of file lua-5.3.6/src/lobject.c.
#define MAXBY10 cast(lua_Unsigned, LUA_MAXINTEGER / 10) |
Definition at line 296 of file lua-5.3.6/src/lobject.c.
Referenced by l_str2int().
#define MAXLASTD cast_int(LUA_MAXINTEGER % 10) |
Definition at line 297 of file lua-5.3.6/src/lobject.c.
Referenced by l_str2int().
#define MAXNUMBER2STR 50 |
Definition at line 365 of file lua-5.3.6/src/lobject.c.
Referenced by luaO_tostring().
#define POS "\"]" |
Definition at line 483 of file lua-5.3.6/src/lobject.c.
Referenced by luaO_chunkid().
#define PRE "[string \"" |
Definition at line 482 of file lua-5.3.6/src/lobject.c.
Referenced by luaO_chunkid().
#define RETS "..." |
Definition at line 481 of file lua-5.3.6/src/lobject.c.
Referenced by luaO_chunkid().
|
static |
Definition at line 83 of file lua-5.3.6/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_div(), luaV_mod(), and luaV_shiftl().
Referenced by luaO_arith().
|
static |
Definition at line 169 of file lua-5.3.6/src/lobject.c.
References s.
Referenced by l_str2int().
|
static |
Definition at line 274 of file lua-5.3.6/src/lobject.c.
References cast_uchar, L_MAXLENNUM, l_str2dloc(), ltolower, lua_getlocaledecpoint, NULL, and s.
Referenced by luaO_str2num().
|
static |
Definition at line 251 of file lua-5.3.6/src/lobject.c.
References cast_uchar, lisspace, lua_str2number, lua_strx2number, NULL, and s.
Referenced by l_str2d().
|
static |
Definition at line 299 of file lua-5.3.6/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 123 of file lua-5.3.6/src/lobject.c.
References cast, intarith(), ivalue, lua_assert, LUA_OPADD, LUA_OPBAND, LUA_OPBNOT, LUA_OPBOR, LUA_OPBXOR, LUA_OPDIV, LUA_OPPOW, LUA_OPSHL, LUA_OPSHR, luaT_trybinTM(), NULL, numarith(), setfltvalue, setivalue, TM_ADD, tointeger, tonumber, and ttisinteger.
int luaO_ceillog2 | ( | unsigned int | x | ) |
Definition at line 65 of file lua-5.3.6/src/lobject.c.
void luaO_chunkid | ( | char * | out, |
const char * | source, | ||
size_t | bufflen ) |
Definition at line 487 of file lua-5.3.6/src/lobject.c.
int luaO_fb2int | ( | int | x | ) |
Definition at line 57 of file lua-5.3.6/src/lobject.c.
int luaO_hexavalue | ( | int | c | ) |
Definition at line 163 of file lua-5.3.6/src/lobject.c.
References lisdigit, and ltolower.
Referenced by l_str2int().
int luaO_int2fb | ( | unsigned int | x | ) |
Definition at line 41 of file lua-5.3.6/src/lobject.c.
References cast_int.
const char * luaO_pushfstring | ( | lua_State * | L, |
const char * | fmt, | ||
... ) |
Definition at line 468 of file lua-5.3.6/src/lobject.c.
References luaO_pushvfstring().
Referenced by luaO_pushvfstring().
const char * luaO_pushvfstring | ( | lua_State * | L, |
const char * | fmt, | ||
va_list | argp ) |
Definition at line 400 of file lua-5.3.6/src/lobject.c.
References cast, cast_num, cast_uchar, lisprint, lua_pointer2str, luaD_checkstack, luaD_inctop(), luaG_runerror(), luaO_pushfstring(), luaO_tostring(), luaO_utf8esc(), luaV_concat(), NULL, pushstr(), s, setfltvalue, setivalue, svalue, lua_State::top, and UTF8BUFFSZ.
Referenced by luaO_pushfstring().
size_t luaO_str2num | ( | const char * | s, |
TValue * | o ) |
Definition at line 331 of file lua-5.3.6/src/lobject.c.
References l_str2d(), l_str2int(), NULL, s, setfltvalue, and setivalue.
Referenced by l_strton(), lua_stringtonumber(), luaV_tointeger(), luaV_tonumber_(), read_numeral(), and read_numeral().
Definition at line 371 of file lua-5.3.6/src/lobject.c.
References fltvalue, ivalue, lua_assert, lua_getlocaledecpoint, lua_integer2str, lua_number2str, luaS_newlstr(), MAXNUMBER2STR, setsvalue2s, ttisinteger, and ttisnumber.
Referenced by lua_tolstring(), and luaO_pushvfstring().
int luaO_utf8esc | ( | char * | buff, |
unsigned long | x ) |
Definition at line 346 of file lua-5.3.6/src/lobject.c.
References cast, lua_assert, and UTF8BUFFSZ.
Referenced by luaO_pushvfstring(), utf8esc(), and utf8esc().
|
static |
Definition at line 103 of file lua-5.3.6/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_nummod, luai_nummul, luai_numpow, luai_numsub, and luai_numunm.
Referenced by luaO_arith().
|
static |
Definition at line 390 of file lua-5.3.6/src/lobject.c.
References luaD_inctop(), luaS_newlstr(), setsvalue2s, and lua_State::top.
Referenced by luaO_pushvfstring().
LUAI_DDEF const TValue luaO_nilobject_ = {NILCONSTANT} |
Definition at line 33 of file lua-5.3.6/src/lobject.c.