Github User Fetcher 1.0.0
C Application with Server and GUI
|
#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 <math.h>
Go to the source code of this file.
Macros | |
#define | lobject_c |
#define | LUA_CORE |
#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) |
lua_Number | luaO_arith (int op, lua_Number v1, lua_Number v2) |
int | luaO_hexavalue (int c) |
static int | isneg (const char **s) |
static lua_Number | readhexa (const char **s, lua_Number r, int *count) |
static lua_Number | lua_strx2number (const char *s, char **endptr) |
int | luaO_str2d (const char *s, size_t len, lua_Number *result) |
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 250 of file lua-5.2.4/src/lobject.c.
Referenced by luaO_chunkid().
#define LL | ( | x | ) | (sizeof(x)/sizeof(char) - 1) |
Definition at line 244 of file lua-5.2.4/src/lobject.c.
Referenced by funcinfo(), luaO_chunkid(), and luaO_chunkid().
#define lobject_c |
Definition at line 12 of file lua-5.2.4/src/lobject.c.
#define LUA_CORE |
Definition at line 13 of file lua-5.2.4/src/lobject.c.
#define POS "\"]" |
Definition at line 248 of file lua-5.2.4/src/lobject.c.
Referenced by luaO_chunkid().
#define PRE "[string \"" |
Definition at line 247 of file lua-5.2.4/src/lobject.c.
Referenced by luaO_chunkid().
#define RETS "..." |
Definition at line 246 of file lua-5.2.4/src/lobject.c.
Referenced by luaO_chunkid().
|
static |
Definition at line 98 of file lua-5.2.4/src/lobject.c.
References s.
Referenced by lua_strx2number().
|
static |
Definition at line 118 of file lua-5.2.4/src/lobject.c.
References cast, cast_uchar, exp1(), isneg(), l_mathop, lisdigit, lisspace, readhexa(), and s.
lua_Number luaO_arith | ( | int | op, |
lua_Number | v1, | ||
lua_Number | v2 ) |
Definition at line 73 of file lua-5.2.4/src/lobject.c.
References lua_assert, LUA_OPADD, LUA_OPDIV, LUA_OPMOD, LUA_OPMUL, LUA_OPPOW, LUA_OPSUB, LUA_OPUNM, luai_numadd, luai_numdiv, luai_nummod, luai_nummul, luai_numpow, luai_numsub, luai_numunm, and NULL.
Referenced by constfolding(), constfolding(), lua_arith(), and luaV_arith().
int luaO_ceillog2 | ( | unsigned int | x | ) |
Definition at line 55 of file lua-5.2.4/src/lobject.c.
Referenced by countint(), countint(), countint(), luaK_settablesize(), setnodevector(), setnodevector(), and setnodevector().
void luaO_chunkid | ( | char * | out, |
const char * | source, | ||
size_t | bufflen ) |
Definition at line 252 of file lua-5.2.4/src/lobject.c.
int luaO_fb2int | ( | int | x | ) |
Definition at line 48 of file lua-5.2.4/src/lobject.c.
int luaO_hexavalue | ( | int | c | ) |
Definition at line 87 of file lua-5.2.4/src/lobject.c.
References lisdigit, and ltolower.
Referenced by gethexa(), gethexa(), readhexa(), readhexaesc(), readutf8esc(), and readutf8esc().
int luaO_int2fb | ( | unsigned int | x | ) |
Definition at line 36 of file lua-5.2.4/src/lobject.c.
References cast_int.
const char * luaO_pushfstring | ( | lua_State * | L, |
const char * | fmt, | ||
... ) |
Definition at line 233 of file lua-5.2.4/src/lobject.c.
References luaO_pushvfstring().
const char * luaO_pushvfstring | ( | lua_State * | L, |
const char * | fmt, | ||
va_list | argp ) |
Definition at line 179 of file lua-5.2.4/src/lobject.c.
References cast, cast_num, LUA_QL, luaD_checkstack, luaG_runerror(), luaV_concat(), NULL, pushstr(), s, setnvalue, svalue, and lua_State::top.
Referenced by luaO_pushfstring().
int luaO_str2d | ( | const char * | s, |
size_t | len, | ||
lua_Number * | result ) |
Definition at line 158 of file lua-5.2.4/src/lobject.c.
References cast_uchar, lisspace, lua_str2number, lua_strx2number, and s.
|
static |
Definition at line 173 of file lua-5.2.4/src/lobject.c.
References luaS_newlstr(), setsvalue2s, and lua_State::top.
Referenced by luaO_pushvfstring().
|
static |
Definition at line 105 of file lua-5.2.4/src/lobject.c.
References cast_num, cast_uchar, lisxdigit, luaO_hexavalue(), and s.
Referenced by lua_strx2number().
LUAI_DDEF const TValue luaO_nilobject_ = {NILCONSTANT} |
Definition at line 28 of file lua-5.2.4/src/lobject.c.