|
native Lua
0.4.0
Lua on the platform you use with the compiler you choose
|
#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"
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) |
| void | luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2, TValue *res) |
| int | luaO_hexavalue (int c) |
| 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) |
| 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} |
| #define addstr | ( | a, | |
| b, | |||
| l | |||
| ) | ( memcpy(a,b,(l) * sizeof(char)), a += (l) ) |
| #define L_MAXLENNUM 200 |
| #define LL | ( | x | ) | (sizeof(x)/sizeof(char) - 1) |
| #define lobject_c |
| #define LUA_CORE |
| #define MAXBY10 cast(lua_Unsigned, LUA_MAXINTEGER / 10) |
| #define MAXLASTD cast_int(LUA_MAXINTEGER % 10) |
| #define MAXNUMBER2STR 50 |
| #define POS "\"]" |
| #define PRE "[string \"" |
| #define RETS "..." |
| int luaO_ceillog2 | ( | unsigned int | x | ) |
| void luaO_chunkid | ( | char * | out, |
| const char * | source, | ||
| size_t | bufflen | ||
| ) |
| int luaO_fb2int | ( | int | x | ) |
| int luaO_hexavalue | ( | int | c | ) |
| int luaO_int2fb | ( | unsigned int | x | ) |
| const char* luaO_pushfstring | ( | lua_State * | L, |
| const char * | fmt, | ||
| ... | |||
| ) |
| const char* luaO_pushvfstring | ( | lua_State * | L, |
| const char * | fmt, | ||
| va_list | argp | ||
| ) |
| size_t luaO_str2num | ( | const char * | s, |
| TValue * | o | ||
| ) |
| int luaO_utf8esc | ( | char * | buff, |
| unsigned long | x | ||
| ) |
| LUAI_DDEF const TValue luaO_nilobject_ = {NILCONSTANT} |
1.8.20