#include <limits.h>
#include <stddef.h>
#include <math.h>
Go to the source code of this file.
Defines | |
#define | LUA_PATH "LUA_PATH" |
#define | LUA_CPATH "LUA_CPATH" |
#define | LUA_INIT "LUA_INIT" |
#define | LUA_ROOT "/usr/local/" |
#define | LUA_LDIR LUA_ROOT "share/lua/5.1/" |
#define | LUA_CDIR LUA_ROOT "lib/lua/5.1/" |
#define | LUA_PATH_DEFAULT |
#define | LUA_CPATH_DEFAULT "./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so" |
#define | LUA_DIRSEP "/" |
#define | LUA_PATHSEP ";" |
#define | LUA_PATH_MARK "?" |
#define | LUA_EXECDIR "!" |
#define | LUA_IGMARK "-" |
#define | LUA_INTEGER ptrdiff_t |
#define | LUA_API extern |
#define | LUALIB_API LUA_API |
#define | LUAI_FUNC extern |
#define | LUAI_DATA extern |
#define | LUA_QL(x) "'" x "'" |
#define | LUA_QS LUA_QL("%s") |
#define | LUA_IDSIZE 60 |
#define | LUAI_GCPAUSE 200 |
#define | LUAI_GCMUL 200 |
#define | LUA_COMPAT_VARARG |
#define | LUA_COMPAT_MOD |
#define | LUA_COMPAT_LSTR 1 |
#define | LUA_COMPAT_GFIND |
#define | LUA_COMPAT_OPENLIB |
#define | luai_apicheck(L, o) { (void)L; } |
#define | LUAI_BITSINT 16 |
#define | LUAI_UINT32 unsigned long |
#define | LUAI_INT32 long |
#define | LUAI_MAXINT32 LONG_MAX |
#define | LUAI_UMEM unsigned long |
#define | LUAI_MEM long |
#define | LUAI_MAXCALLS 20000 |
#define | LUAI_MAXCSTACK 8000 |
#define | LUAI_MAXCCALLS 200 |
#define | LUAI_MAXVARS 200 |
#define | LUAI_MAXUPVALUES 60 |
#define | LUAL_BUFFERSIZE BUFSIZ |
#define | LUA_NUMBER_DOUBLE |
#define | LUA_NUMBER double |
#define | LUAI_UACNUMBER double |
#define | LUA_NUMBER_SCAN "%lf" |
#define | LUA_NUMBER_FMT "%.14g" |
#define | lua_number2str(s, n) sprintf((s), LUA_NUMBER_FMT, (n)) |
#define | LUAI_MAXNUMBER2STR 32 |
#define | lua_str2number(s, p) strtod((s), (p)) |
#define | luai_numadd(a, b) ((a)+(b)) |
#define | luai_numsub(a, b) ((a)-(b)) |
#define | luai_nummul(a, b) ((a)*(b)) |
#define | luai_numdiv(a, b) ((a)/(b)) |
#define | luai_nummod(a, b) ((a) - floor((a)/(b))*(b)) |
#define | luai_numpow(a, b) (pow(a,b)) |
#define | luai_numunm(a) (-(a)) |
#define | luai_numeq(a, b) ((a)==(b)) |
#define | luai_numlt(a, b) ((a)<(b)) |
#define | luai_numle(a, b) ((a)<=(b)) |
#define | luai_numisnan(a) (!luai_numeq((a), (a))) |
#define | lua_number2int(i, d) ((i)=(int)(d)) |
#define | lua_number2integer(i, d) ((i)=(lua_Integer)(d)) |
#define | LUAI_USER_ALIGNMENT_T union { double u; void *s; long l; } |
#define | LUAI_THROW(L, c) longjmp((c)->b, 1) |
#define | LUAI_TRY(L, c, a) if (setjmp((c)->b) == 0) { a } |
#define | luai_jmpbuf jmp_buf |
#define | LUA_MAXCAPTURES 32 |
#define | LUA_TMPNAMBUFSIZE L_tmpnam |
#define | lua_tmpnam(b, e) { e = (tmpnam(b) == NULL); } |
#define | lua_popen(L, c, m) |
#define | lua_pclose(L, file) ((void)((void)L, file), 0) |
#define | LUAI_EXTRASPACE 0 |
#define | luai_userstateopen(L) ((void)L) |
#define | luai_userstateclose(L) ((void)L) |
#define | luai_userstatethread(L, L1) ((void)L) |
#define | luai_userstatefree(L) ((void)L) |
#define | luai_userstateresume(L, n) ((void)L) |
#define | luai_userstateyield(L, n) ((void)L) |
#define | LUA_INTFRMLEN "l" |
#define | LUA_INTFRM_T long |
#define LUA_CPATH "LUA_CPATH" |
Definition at line 70 of file luaconf.h.
Referenced by luaopen_package().
#define LUA_CPATH_DEFAULT "./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so" |
Definition at line 103 of file luaconf.h.
Referenced by luaopen_package().
#define LUA_DIRSEP "/" |
Definition at line 116 of file luaconf.h.
Referenced by findfile(), and luaopen_package().
#define LUA_EXECDIR "!" |
Definition at line 134 of file luaconf.h.
Referenced by luaopen_package().
#define LUA_IDSIZE 60 |
Definition at line 210 of file luaconf.h.
Referenced by addinfo(), funcinfo(), and info_tailcall().
#define LUA_IGMARK "-" |
Definition at line 135 of file luaconf.h.
Referenced by luaopen_package(), and mkfuncname().
#define LUA_INTFRM_T long |
Definition at line 747 of file luaconf.h.
Referenced by str_format().
#define LUA_INTFRMLEN "l" |
Definition at line 746 of file luaconf.h.
Referenced by addintlen().
#define LUA_MAXCAPTURES 32 |
Definition at line 633 of file luaconf.h.
Referenced by start_capture().
Definition at line 580 of file luaconf.h.
Referenced by arrayindex(), and luaH_get().
#define lua_number2integer | ( | i, | |||
d | ) | ((i)=(lua_Integer)(d)) |
Definition at line 581 of file luaconf.h.
Referenced by lua_tointeger().
#define lua_number2str | ( | s, | |||
n | ) | sprintf((s), LUA_NUMBER_FMT, (n)) |
Definition at line 523 of file luaconf.h.
Referenced by luaV_tostring().
#define LUA_NUMBER_FMT "%.14g" |
Definition at line 522 of file luaconf.h.
Referenced by g_write(), and PrintConstant().
#define LUA_NUMBER_SCAN "%lf" |
Definition at line 521 of file luaconf.h.
Referenced by read_number().
#define LUA_PATH "LUA_PATH" |
Definition at line 69 of file luaconf.h.
Referenced by luaopen_package().
#define LUA_PATH_DEFAULT |
#define LUA_PATH_MARK "?" |
Definition at line 133 of file luaconf.h.
Referenced by findfile(), and luaopen_package().
#define LUA_PATHSEP ";" |
Definition at line 132 of file luaconf.h.
Referenced by luaopen_package(), pushnexttemplate(), and setpath().
#define lua_pclose | ( | L, | |||
file | ) | ((void)((void)L, file), 0) |
Definition at line 682 of file luaconf.h.
Referenced by io_pclose().
#define lua_popen | ( | L, | |||
c, | |||||
m | ) |
((void)((void)c, m), \ luaL_error(L, LUA_QL("popen") " not supported"), (FILE*)0)
Definition at line 680 of file luaconf.h.
Referenced by io_popen().
#define LUA_QL | ( | x | ) | "'" x "'" |
Definition at line 201 of file luaconf.h.
Referenced by addfield(), classend(), db_setfenv(), findfile(), findindex(), forstat(), gfind_nodef(), ll_require(), loader_preload(), luaB_print(), luaB_setfenv(), luaV_execute(), match(), parlist(), setfenv(), setn(), simpleexp(), str_format(), and tinsert().
#define LUA_QS LUA_QL("%s") |
Definition at line 202 of file luaconf.h.
Referenced by check_match(), db_errorfb(), error_expected(), findfile(), getfield(), ll_module(), ll_require(), loader_Croot(), loaderror(), luaG_typeerror(), luaI_openlib(), luaL_argerror(), luaL_checkoption(), and luaX_lexerror().
#define lua_str2number | ( | s, | |||
p | ) | strtod((s), (p)) |
Definition at line 525 of file luaconf.h.
Referenced by luaO_str2d().
#define lua_tmpnam | ( | b, | |||
e | ) | { e = (tmpnam(b) == NULL); } |
Definition at line 657 of file luaconf.h.
Referenced by os_tmpname().
#define LUA_TMPNAMBUFSIZE L_tmpnam |
Definition at line 656 of file luaconf.h.
Referenced by os_tmpname().
#define luai_apicheck | ( | L, | |||
o | ) | { (void)L; } |
Definition at line 381 of file luaconf.h.
Referenced by lua_getinfo().
#define LUAI_GCMUL 200 |
Definition at line 313 of file luaconf.h.
Referenced by lua_newstate().
#define LUAI_GCPAUSE 200 |
Definition at line 302 of file luaconf.h.
Referenced by lua_newstate().
#define LUAI_MAXCALLS 20000 |
Definition at line 435 of file luaconf.h.
Referenced by checkstacksizes(), growCI(), and restore_stack_limit().
#define LUAI_MAXCCALLS 200 |
Definition at line 468 of file luaconf.h.
Referenced by assignment(), enterlevel(), LoadFunction(), lua_resume(), and luaD_call().
#define LUAI_MAXCSTACK 8000 |
Definition at line 446 of file luaconf.h.
Referenced by lua_checkstack().
#define LUAI_MAXNUMBER2STR 32 |
Definition at line 524 of file luaconf.h.
Referenced by luaV_tostring().
#define LUAI_MAXUPVALUES 60 |
Definition at line 482 of file luaconf.h.
Referenced by indexupvalue().
#define LUAI_MAXVARS 200 |
Definition at line 475 of file luaconf.h.
Referenced by new_localvar().
#define luai_numadd | ( | a, | |||
b | ) | ((a)+(b)) |
Definition at line 533 of file luaconf.h.
Referenced by Arith(), constfolding(), and luaV_execute().
#define luai_numdiv | ( | a, | |||
b | ) | ((a)/(b)) |
Definition at line 536 of file luaconf.h.
Referenced by Arith(), constfolding(), and luaV_execute().
#define luai_numeq | ( | a, | |||
b | ) | ((a)==(b)) |
Definition at line 540 of file luaconf.h.
Referenced by arrayindex(), hashnum(), luaH_get(), luaH_getnum(), luaO_rawequalObj(), and luaV_equalval().
#define luai_numisnan | ( | a | ) | (!luai_numeq((a), (a))) |
Definition at line 543 of file luaconf.h.
Referenced by constfolding(), and luaH_set().
#define luai_numle | ( | a, | |||
b | ) | ((a)<=(b)) |
Definition at line 542 of file luaconf.h.
Referenced by lessequal(), and luaV_execute().
#define luai_numlt | ( | a, | |||
b | ) | ((a)<(b)) |
Definition at line 541 of file luaconf.h.
Referenced by luaV_execute(), and luaV_lessthan().
#define luai_nummod | ( | a, | |||
b | ) | ((a) - floor((a)/(b))*(b)) |
Definition at line 537 of file luaconf.h.
Referenced by Arith(), constfolding(), and luaV_execute().
#define luai_nummul | ( | a, | |||
b | ) | ((a)*(b)) |
Definition at line 535 of file luaconf.h.
Referenced by Arith(), constfolding(), and luaV_execute().
#define luai_numpow | ( | a, | |||
b | ) | (pow(a,b)) |
Definition at line 538 of file luaconf.h.
Referenced by Arith(), constfolding(), and luaV_execute().
#define luai_numsub | ( | a, | |||
b | ) | ((a)-(b)) |
Definition at line 534 of file luaconf.h.
Referenced by Arith(), constfolding(), and luaV_execute().
#define luai_numunm | ( | a | ) | (-(a)) |
Definition at line 539 of file luaconf.h.
Referenced by Arith(), constfolding(), and luaV_execute().
#define LUAI_THROW | ( | L, | |||
c | ) | longjmp((c)->b, 1) |
Definition at line 621 of file luaconf.h.
Referenced by luaD_throw().
#define LUAI_TRY | ( | L, | |||
c, | |||||
a | ) | if (setjmp((c)->b) == 0) { a } |
Definition at line 622 of file luaconf.h.
Referenced by luaD_rawrunprotected().
#define LUAI_USER_ALIGNMENT_T union { double u; void *s; long l; } |
#define luai_userstateclose | ( | L | ) | ((void)L) |
Definition at line 724 of file luaconf.h.
Referenced by lua_close().
#define luai_userstatefree | ( | L | ) | ((void)L) |
Definition at line 726 of file luaconf.h.
Referenced by luaE_freethread().
#define luai_userstateopen | ( | L | ) | ((void)L) |
Definition at line 723 of file luaconf.h.
Referenced by lua_newstate().
#define luai_userstateresume | ( | L, | |||
n | ) | ((void)L) |
Definition at line 727 of file luaconf.h.
Referenced by lua_resume().
#define luai_userstatethread | ( | L, | |||
L1 | ) | ((void)L) |
Definition at line 725 of file luaconf.h.
Referenced by lua_newthread().
#define luai_userstateyield | ( | L, | |||
n | ) | ((void)L) |
Definition at line 728 of file luaconf.h.
Referenced by lua_yield().
#define LUAL_BUFFERSIZE BUFSIZ |
Definition at line 488 of file luaconf.h.
Referenced by f_setvbuf(), read_chars(), and read_line().