mirror of
https://github.com/holub/mame
synced 2025-06-06 21:03:47 +03:00
98 lines
1.8 KiB
C
98 lines
1.8 KiB
C
/*
|
|
* one.c -- Lua core, libraries, and interpreter in a single file
|
|
*/
|
|
|
|
/* default is to build the full interpreter */
|
|
#ifndef MAKE_LIB
|
|
#ifndef MAKE_LUAC
|
|
#ifndef MAKE_LUA
|
|
#define MAKE_LIB
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
/* choose suitable platform-specific features */
|
|
/* some of these may need extra libraries such as -ldl -lreadline -lncurses */
|
|
#if 0
|
|
#define LUA_USE_LINUX
|
|
#define LUA_USE_MACOSX
|
|
#define LUA_USE_POSIX
|
|
#define LUA_ANSI
|
|
#endif
|
|
|
|
/* no need to change anything below this line ----------------------------- */
|
|
|
|
/* setup for luaconf.h */
|
|
#if HAVE_LPREFIX
|
|
# include "lprefix.h"
|
|
#endif
|
|
|
|
#define LUA_CORE
|
|
#define LUA_LIB
|
|
#define ltable_c
|
|
#define lvm_c
|
|
#include "luaconf.h"
|
|
|
|
/* do not export internal symbols */
|
|
#undef LUAI_FUNC
|
|
#undef LUAI_DDEC
|
|
#undef LUAI_DDEF
|
|
#define LUAI_FUNC static
|
|
#define LUAI_DDEC static
|
|
#define LUAI_DDEF static
|
|
|
|
/* core -- used by all */
|
|
#include "lapi.c"
|
|
#include "lcode.c"
|
|
#include "lctype.c"
|
|
#include "ldebug.c"
|
|
#include "ldo.c"
|
|
#include "ldump.c"
|
|
#include "lfunc.c"
|
|
#include "lgc.c"
|
|
#include "llex.c"
|
|
#include "lmem.c"
|
|
#include "lobject.c"
|
|
#include "lopcodes.c"
|
|
#include "lparser.c"
|
|
#include "lstate.c"
|
|
#include "lstring.c"
|
|
#include "ltable.c"
|
|
#include "ltm.c"
|
|
#include "lundump.c"
|
|
#include "lvm.c"
|
|
#include "lzio.c"
|
|
|
|
/* auxiliary library -- used by all */
|
|
#include "lauxlib.c"
|
|
|
|
/* standard library -- not used by luac */
|
|
#ifndef MAKE_LUAC
|
|
#include "lbaselib.c"
|
|
#if LUA_VERSION_NUM == 502
|
|
# include "lbitlib.c"
|
|
#endif
|
|
#include "lcorolib.c"
|
|
#include "ldblib.c"
|
|
#include "liolib.c"
|
|
#include "lmathlib.c"
|
|
#include "loadlib.c"
|
|
#include "loslib.c"
|
|
#include "lstrlib.c"
|
|
#include "ltablib.c"
|
|
#if LUA_VERSION_NUM >= 503
|
|
# include "lutf8lib.c"
|
|
#endif
|
|
#include "linit.c"
|
|
#endif
|
|
|
|
/* lua */
|
|
#ifdef MAKE_LUA
|
|
#include "lua.c"
|
|
#endif
|
|
|
|
/* luac */
|
|
#ifdef MAKE_LUAC
|
|
#include "luac.c"
|
|
#endif
|