#include <ctype.h>#include <stdarg.h>#include <stdlib.h>#include <string.h>#include "lua.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.
Defines | |
| #define | lobject_c |
| #define | lua_str2number(s, p) strtod((s), (p)) |
Functions | |
| int | luaO_int2fb (unsigned int x) |
| int | luaO_log2 (unsigned int x) |
| int | luaO_rawequalObj (const TObject *t1, const TObject *t2) |
| int | luaO_str2d (const char *s, lua_Number *result) |
| static void | pushstr (lua_State *L, const char *str) |
| 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, int bufflen) |
Variables | |
| const TObject | luaO_nilobject = {LUA_TNIL, {NULL}} |
| #define lua_str2number | ( | s, | |||
| p | ) | strtod((s), (p)) |
| void luaO_chunkid | ( | char * | out, | |
| const char * | source, | |||
| int | bufflen | |||
| ) |
Definition at line 165 of file lobject.c.
Referenced by addinfo(), funcinfo(), info_tailcall(), and luaX_errorline().
| int luaO_int2fb | ( | unsigned int | x | ) |
| int luaO_log2 | ( | unsigned int | x | ) |
| const char* luaO_pushfstring | ( | lua_State * | L, | |
| const char * | fmt, | |||
| ... | ||||
| ) |
Definition at line 155 of file lobject.c.
References luaO_pushvfstring().
Referenced by addinfo(), check_match(), error_expected(), luaX_checklimit(), luaX_errorline(), luaX_lex(), and luaX_token2str().
| const char* luaO_pushvfstring | ( | lua_State * | L, | |
| const char * | fmt, | |||
| va_list | argp | |||
| ) |
Definition at line 113 of file lobject.c.
References lua_State::base, cast, incr_top, lua_assert, luaS_newlstr(), luaV_concat(), pushstr(), setnvalue, setsvalue2s, svalue, and lua_State::top.
Referenced by lua_pushfstring(), lua_pushvfstring(), luaG_runerror(), and luaO_pushfstring().
Definition at line 74 of file lobject.c.
References bvalue, gcvalue, iscollectable, lua_assert, nvalue, pvalue, and ttype.
Referenced by addk(), call_orderTM(), get_compTM(), lua_rawequal(), luaH_getany(), and travglobals().
| int luaO_str2d | ( | const char * | s, | |
| lua_Number * | result | |||
| ) |
Definition at line 92 of file lobject.c.
References lua_str2number.
Referenced by luaV_tonumber(), and read_numeral().
| static void pushstr | ( | lua_State * | L, | |
| const char * | str | |||
| ) | [static] |
Definition at line 104 of file lobject.c.
References incr_top, luaS_new, setsvalue2s, and lua_State::top.
Referenced by luaO_pushvfstring().
| const TObject luaO_nilobject = {LUA_TNIL, {NULL}} |
Definition at line 30 of file lobject.c.
Referenced by luaH_getany(), luaH_getnum(), luaH_getstr(), luaH_index(), luaH_set(), luaH_setnum(), luaT_gettmbyobj(), and luaV_index().
1.5.2