├── .gitmodules ├── LICENSE ├── LibsTestProj ├── Assets │ ├── BuildInInit.cs │ ├── BuildInInit.cs.meta │ ├── Helloworld.meta │ ├── Helloworld │ │ ├── Helloworld.cs │ │ ├── Helloworld.cs.meta │ │ ├── Helloworld.unity │ │ ├── Helloworld.unity.meta │ │ ├── Resources.meta │ │ ├── idl.meta │ │ └── idl │ │ │ ├── User.pb │ │ │ ├── User.pb.meta │ │ │ ├── UserInfo.pb │ │ │ └── UserInfo.pb.meta │ ├── Plugins.meta │ ├── Plugins │ │ ├── Android.meta │ │ ├── Android │ │ │ ├── libs.meta │ │ │ └── libs │ │ │ │ ├── armeabi-v7a.meta │ │ │ │ ├── armeabi-v7a │ │ │ │ ├── libxlua.so │ │ │ │ └── libxlua.so.meta │ │ │ │ ├── x86.meta │ │ │ │ └── x86 │ │ │ │ ├── libxlua.so │ │ │ │ └── libxlua.so.meta │ │ ├── WSA.meta │ │ ├── WSA │ │ │ ├── ARM.meta │ │ │ ├── ARM │ │ │ │ ├── xlua.dll │ │ │ │ └── xlua.dll.meta │ │ │ ├── x64.meta │ │ │ ├── x64 │ │ │ │ ├── xlua.dll │ │ │ │ └── xlua.dll.meta │ │ │ ├── x86.meta │ │ │ └── x86 │ │ │ │ ├── xlua.dll │ │ │ │ └── xlua.dll.meta │ │ ├── WebGL.meta │ │ ├── WebGL │ │ │ ├── lpeg_webgl.cpp │ │ │ ├── lpeg_webgl.cpp.meta │ │ │ ├── pbc_webgl.cpp │ │ │ ├── pbc_webgl.cpp.meta │ │ │ ├── rapidjson_webgl.cpp │ │ │ ├── rapidjson_webgl.cpp.meta │ │ │ ├── xlua_webgl.cpp │ │ │ └── xlua_webgl.cpp.meta │ │ ├── iOS.meta │ │ ├── iOS │ │ │ ├── HotfixFlags.cpp │ │ │ ├── HotfixFlags.cpp.meta │ │ │ ├── libxlua.a │ │ │ └── libxlua.a.meta │ │ ├── x86.meta │ │ ├── x86 │ │ │ ├── libxlua.so │ │ │ ├── libxlua.so.meta │ │ │ ├── xlua.dll │ │ │ └── xlua.dll.meta │ │ ├── x86_64.meta │ │ ├── x86_64 │ │ │ ├── libxlua.so │ │ │ ├── libxlua.so.meta │ │ │ ├── xlua.dll │ │ │ └── xlua.dll.meta │ │ ├── xlua.bundle.meta │ │ └── xlua.bundle │ │ │ ├── Contents.meta │ │ │ └── Contents │ │ │ ├── Info.plist │ │ │ ├── Info.plist.meta │ │ │ ├── MacOS.meta │ │ │ └── MacOS │ │ │ ├── xlua │ │ │ └── xlua.meta │ ├── Resources.meta │ ├── Resources │ │ ├── protoc.lua.txt │ │ └── protoc.lua.txt.meta │ ├── XLua.meta │ └── XLua │ │ ├── CHANGELOG.txt │ │ ├── CHANGELOG.txt.meta │ │ ├── Doc.meta │ │ ├── Doc │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── logo.mat │ │ │ └── logo.mat.meta │ │ ├── XLua_API.doc │ │ ├── XLua_API.doc.meta │ │ ├── XLua增加删除第三方lua库.doc │ │ ├── XLua增加删除第三方lua库.doc.meta │ │ ├── XLua复杂值类型(struct)gc优化指南.doc │ │ ├── XLua复杂值类型(struct)gc优化指南.doc.meta │ │ ├── XLua性能分析工具.doc │ │ ├── XLua性能分析工具.doc.meta │ │ ├── XLua教程.doc │ │ ├── XLua教程.doc.meta │ │ ├── XLua的配置.doc │ │ ├── XLua的配置.doc.meta │ │ ├── custom_generate.md │ │ ├── custom_generate.md.meta │ │ ├── faq.md │ │ ├── faq.md.meta │ │ ├── features.md │ │ ├── features.md.meta │ │ ├── hotfix.md │ │ ├── hotfix.md.meta │ │ ├── logo.png │ │ ├── logo.png.meta │ │ ├── signature.md │ │ ├── signature.md.meta │ │ ├── xLua.png │ │ └── xLua.png.meta │ │ ├── Editor.meta │ │ ├── Editor │ │ ├── ExampleConfig.cs │ │ └── ExampleConfig.cs.meta │ │ ├── Resources.meta │ │ ├── Resources │ │ ├── perf.meta │ │ ├── perf │ │ │ ├── memory.lua.txt │ │ │ ├── memory.lua.txt.meta │ │ │ ├── profiler.lua.txt │ │ │ └── profiler.lua.txt.meta │ │ ├── tdr.meta │ │ ├── tdr │ │ │ ├── tdr.lua.txt │ │ │ └── tdr.lua.txt.meta │ │ ├── xlua.meta │ │ └── xlua │ │ │ ├── util.lua.txt │ │ │ └── util.lua.txt.meta │ │ ├── Src.meta │ │ └── Src │ │ ├── CodeEmit.cs │ │ ├── CodeEmit.cs.meta │ │ ├── CopyByValue.cs │ │ ├── CopyByValue.cs.meta │ │ ├── DelegateBridge.cs │ │ ├── DelegateBridge.cs.meta │ │ ├── Editor.meta │ │ ├── Editor │ │ ├── Generator.cs │ │ ├── Generator.cs.meta │ │ ├── Hotfix.cs │ │ ├── Hotfix.cs.meta │ │ ├── LinkXmlGen.meta │ │ ├── LinkXmlGen │ │ │ ├── LinkXmlGen.cs │ │ │ ├── LinkXmlGen.cs.meta │ │ │ ├── LinkXmlGen.tpl.txt │ │ │ └── LinkXmlGen.tpl.txt.meta │ │ ├── Template.meta │ │ ├── Template │ │ │ ├── LuaClassWrap.tpl.txt │ │ │ ├── LuaClassWrap.tpl.txt.meta │ │ │ ├── LuaClassWrapGCM.tpl.txt │ │ │ ├── LuaClassWrapGCM.tpl.txt.meta │ │ │ ├── LuaDelegateBridge.tpl.txt │ │ │ ├── LuaDelegateBridge.tpl.txt.meta │ │ │ ├── LuaDelegateWrap.tpl.txt │ │ │ ├── LuaDelegateWrap.tpl.txt.meta │ │ │ ├── LuaEnumWrap.tpl.txt │ │ │ ├── LuaEnumWrap.tpl.txt.meta │ │ │ ├── LuaEnumWrapGCM.tpl.txt │ │ │ ├── LuaEnumWrapGCM.tpl.txt.meta │ │ │ ├── LuaInterfaceBridge.tpl.txt │ │ │ ├── LuaInterfaceBridge.tpl.txt.meta │ │ │ ├── LuaRegister.tpl.txt │ │ │ ├── LuaRegister.tpl.txt.meta │ │ │ ├── LuaRegisterGCM.tpl.txt │ │ │ ├── LuaRegisterGCM.tpl.txt.meta │ │ │ ├── LuaWrapPusher.tpl.txt │ │ │ ├── LuaWrapPusher.tpl.txt.meta │ │ │ ├── PackUnpack.tpl.txt │ │ │ ├── PackUnpack.tpl.txt.meta │ │ │ ├── TemplateCommon.lua.txt │ │ │ └── TemplateCommon.lua.txt.meta │ │ ├── TemplateRef.cs │ │ └── TemplateRef.cs.meta │ │ ├── GenAttributes.cs │ │ ├── GenAttributes.cs.meta │ │ ├── GenConfig.cs │ │ ├── GenConfig.cs.meta │ │ ├── InternalGlobals.cs │ │ ├── InternalGlobals.cs.meta │ │ ├── LuaBase.cs │ │ ├── LuaBase.cs.meta │ │ ├── LuaDLL.cs │ │ ├── LuaDLL.cs.meta │ │ ├── LuaEnv.cs │ │ ├── LuaEnv.cs.meta │ │ ├── LuaException.cs │ │ ├── LuaException.cs.meta │ │ ├── LuaFunction.cs │ │ ├── LuaFunction.cs.meta │ │ ├── LuaTable.cs │ │ ├── LuaTable.cs.meta │ │ ├── MethodWarpsCache.cs │ │ ├── MethodWarpsCache.cs.meta │ │ ├── ObjectCasters.cs │ │ ├── ObjectCasters.cs.meta │ │ ├── ObjectPool.cs │ │ ├── ObjectPool.cs.meta │ │ ├── ObjectTranslator.cs │ │ ├── ObjectTranslator.cs.meta │ │ ├── ObjectTranslatorPool.cs │ │ ├── ObjectTranslatorPool.cs.meta │ │ ├── RawObject.cs │ │ ├── RawObject.cs.meta │ │ ├── SignatureLoader.cs │ │ ├── SignatureLoader.cs.meta │ │ ├── StaticLuaCallbacks.cs │ │ ├── StaticLuaCallbacks.cs.meta │ │ ├── TemplateEngine.meta │ │ ├── TemplateEngine │ │ ├── TemplateEngine.cs │ │ └── TemplateEngine.cs.meta │ │ ├── TypeExtensions.cs │ │ ├── TypeExtensions.cs.meta │ │ ├── Utils.cs │ │ └── Utils.cs.meta ├── Tools │ ├── FilesSignature.exe │ ├── FilesSignature.pdb │ ├── KeyPairsGen.exe │ ├── KeyPairsGen.pdb │ ├── Mono.Cecil.Mdb.dll │ ├── Mono.Cecil.Pdb.dll │ ├── Mono.Cecil.dll │ ├── Mono.Security.dll │ ├── System.Core.dll │ ├── System.Core.dll.mdb │ ├── System.dll │ ├── System.dll.mdb │ ├── XLuaHotfixInject.exe │ └── XLuaHotfixInject.pdb └── WebGLPlugins │ ├── alloc.c │ ├── alloc.h │ ├── array.c │ ├── array.h │ ├── bootstrap.c │ ├── bootstrap.h │ ├── context.c │ ├── context.h │ ├── decode.c │ ├── descriptor.pbc.h │ ├── i64lib.c │ ├── i64lib.h │ ├── lapi.c │ ├── lapi.h │ ├── lauxlib.c │ ├── lauxlib.h │ ├── lbaselib.c │ ├── lbitlib.c │ ├── lcode.c │ ├── lcode.h │ ├── lcorolib.c │ ├── lctype.c │ ├── lctype.h │ ├── ldblib.c │ ├── ldebug.c │ ├── ldebug.h │ ├── ldo.c │ ├── ldo.h │ ├── ldump.c │ ├── lfunc.c │ ├── lfunc.h │ ├── lgc.c │ ├── lgc.h │ ├── linit.c │ ├── liolib.c │ ├── llex.c │ ├── llex.h │ ├── llimits.h │ ├── lmathlib.c │ ├── lmem.c │ ├── lmem.h │ ├── loadlib.c │ ├── lobject.c │ ├── lobject.h │ ├── lopcodes.c │ ├── lopcodes.h │ ├── loslib.c │ ├── lparser.c │ ├── lparser.h │ ├── lpcap.c │ ├── lpcap.h │ ├── lpcode.c │ ├── lpcode.h │ ├── lpprint.c │ ├── lpprint.h │ ├── lprefix.h │ ├── lptree.c │ ├── lptree.h │ ├── lptypes.h │ ├── lpvm.c │ ├── lpvm.h │ ├── lstate.c │ ├── lstate.h │ ├── lstring.c │ ├── lstring.h │ ├── lstrlib.c │ ├── ltable.c │ ├── ltable.h │ ├── ltablib.c │ ├── ltm.c │ ├── ltm.h │ ├── lua.c │ ├── lua.h │ ├── lua.hpp │ ├── luac.c │ ├── luaconf.h │ ├── lualib.h │ ├── lundump.c │ ├── lundump.h │ ├── lutf8lib.c │ ├── lvm.c │ ├── lvm.h │ ├── lzio.c │ ├── lzio.h │ ├── map.c │ ├── map.h │ ├── pattern.c │ ├── pattern.h │ ├── pbc-lua53.c │ ├── pbc.h │ ├── perflib.c │ ├── proto.c │ ├── proto.h │ ├── rapidjson.cpp │ ├── rapidjson │ ├── allocators.h │ ├── document.h │ ├── encodedstream.h │ ├── encodings.h │ ├── error │ │ ├── en.h │ │ └── error.h │ ├── filereadstream.h │ ├── filewritestream.h │ ├── fwd.h │ ├── internal │ │ ├── biginteger.h │ │ ├── diyfp.h │ │ ├── dtoa.h │ │ ├── ieee754.h │ │ ├── itoa.h │ │ ├── meta.h │ │ ├── pow10.h │ │ ├── regex.h │ │ ├── stack.h │ │ ├── strfunc.h │ │ ├── strtod.h │ │ └── swap.h │ ├── istreamwrapper.h │ ├── memorybuffer.h │ ├── memorystream.h │ ├── msinttypes │ │ ├── inttypes.h │ │ └── stdint.h │ ├── ostreamwrapper.h │ ├── pointer.h │ ├── prettywriter.h │ ├── rapidjson.h │ ├── reader.h │ ├── schema.h │ ├── stream.h │ ├── stringbuffer.h │ └── writer.h │ ├── register.c │ ├── rmessage.c │ ├── stringpool.c │ ├── stringpool.h │ ├── varint.c │ ├── varint.h │ ├── wmessage.c │ └── xlua.c ├── README.md └── build ├── CMakeLists.txt ├── cmake ├── android.toolchain.cmake └── iOS.cmake ├── ffi ├── ctype.c ├── ffi.c ├── ffi.h └── parser.c ├── i64lib.c ├── i64lib.h ├── lpeg ├── .travis.yml ├── CMakeLists.txt ├── HISTORY ├── cmake │ ├── FindLua.cmake │ ├── dist.cmake │ └── lua.cmake ├── dist.info ├── lpcap.c ├── lpcap.h ├── lpcode.c ├── lpcode.h ├── lpeg-128.gif ├── lpeg.def ├── lpeg.html ├── lpprint.c ├── lpprint.h ├── lptree.c ├── lptree.h ├── lptypes.h ├── lpvm.c ├── lpvm.h ├── makefile ├── re.html ├── re.lua └── test.lua ├── lua-5.1.5 ├── COPYRIGHT ├── HISTORY ├── INSTALL ├── Makefile ├── README ├── doc │ ├── contents.html │ ├── cover.png │ ├── logo.gif │ ├── lua.1 │ ├── lua.css │ ├── lua.html │ ├── luac.1 │ ├── luac.html │ ├── manual.css │ ├── manual.html │ └── readme.html ├── etc │ ├── Makefile │ ├── README │ ├── all.c │ ├── lua.hpp │ ├── lua.ico │ ├── lua.pc │ ├── luavs.bat │ ├── min.c │ ├── noparser.c │ └── strict.lua └── src │ ├── Makefile │ ├── lapi.c │ ├── lapi.h │ ├── lauxlib.c │ ├── lauxlib.h │ ├── lbaselib.c │ ├── lcode.c │ ├── lcode.h │ ├── ldblib.c │ ├── ldebug.c │ ├── ldebug.h │ ├── ldo.c │ ├── ldo.h │ ├── ldump.c │ ├── lfunc.c │ ├── lfunc.h │ ├── lgc.c │ ├── lgc.h │ ├── linit.c │ ├── liolib.c │ ├── llex.c │ ├── llex.h │ ├── llimits.h │ ├── lmathlib.c │ ├── lmem.c │ ├── lmem.h │ ├── loadlib.c │ ├── lobject.c │ ├── lobject.h │ ├── lopcodes.c │ ├── lopcodes.h │ ├── loslib.c │ ├── lparser.c │ ├── lparser.h │ ├── lstate.c │ ├── lstate.h │ ├── lstring.c │ ├── lstring.h │ ├── lstrlib.c │ ├── ltable.c │ ├── ltable.h │ ├── ltablib.c │ ├── ltm.c │ ├── ltm.h │ ├── lua.c │ ├── lua.h │ ├── luac.c │ ├── luaconf.h │ ├── lualib.h │ ├── lundump.c │ ├── lundump.h │ ├── lvm.c │ ├── lvm.h │ ├── lzio.c │ ├── lzio.h │ └── print.c ├── lua-5.3.3 ├── CMakeLists.txt ├── Makefile ├── README ├── cmake │ ├── FindLua.cmake │ ├── FindReadline.cmake │ ├── dist.cmake │ └── lua.cmake ├── dist.info ├── doc │ ├── contents.html │ ├── index.css │ ├── logo.gif │ ├── lua.1 │ ├── lua.css │ ├── luac.1 │ ├── manual.css │ ├── manual.html │ ├── osi-certified-72x60.png │ └── readme.html ├── etc │ ├── lua.ico │ ├── lua.pc │ └── lua_lang.ico └── src │ ├── Makefile │ ├── lapi.c │ ├── lapi.h │ ├── lauxlib.c │ ├── lauxlib.h │ ├── lbaselib.c │ ├── lbitlib.c │ ├── lcode.c │ ├── lcode.h │ ├── lcorolib.c │ ├── lctype.c │ ├── lctype.h │ ├── ldblib.c │ ├── ldebug.c │ ├── ldebug.h │ ├── ldo.c │ ├── ldo.h │ ├── ldump.c │ ├── lfunc.c │ ├── lfunc.h │ ├── lgc.c │ ├── lgc.h │ ├── linit.c │ ├── liolib.c │ ├── llex.c │ ├── llex.h │ ├── llimits.h │ ├── lmathlib.c │ ├── lmem.c │ ├── lmem.h │ ├── loadlib.c │ ├── loadlib_rel.c │ ├── lobject.c │ ├── lobject.h │ ├── lopcodes.c │ ├── lopcodes.h │ ├── loslib.c │ ├── lparser.c │ ├── lparser.h │ ├── lprefix.h │ ├── lstate.c │ ├── lstate.h │ ├── lstring.c │ ├── lstring.h │ ├── lstrlib.c │ ├── ltable.c │ ├── ltable.h │ ├── ltablib.c │ ├── ltm.c │ ├── ltm.h │ ├── lua.c │ ├── lua.h │ ├── lua.hpp │ ├── lua.rc │ ├── luac.c │ ├── luac.rc │ ├── luaconf.h.in │ ├── lualib.h │ ├── lundump.c │ ├── lundump.h │ ├── lutf8lib.c │ ├── lvm.c │ ├── lvm.h │ ├── lzio.c │ ├── lzio.h │ └── wmain.c ├── lua-5.3.4 ├── Makefile ├── README ├── doc │ ├── contents.html │ ├── index.css │ ├── logo.gif │ ├── lua.1 │ ├── lua.css │ ├── luac.1 │ ├── manual.css │ ├── manual.html │ ├── osi-certified-72x60.png │ └── readme.html └── src │ ├── Makefile │ ├── lapi.c │ ├── lapi.h │ ├── lauxlib.c │ ├── lauxlib.h │ ├── lbaselib.c │ ├── lbitlib.c │ ├── lcode.c │ ├── lcode.h │ ├── lcorolib.c │ ├── lctype.c │ ├── lctype.h │ ├── ldblib.c │ ├── ldebug.c │ ├── ldebug.h │ ├── ldo.c │ ├── ldo.h │ ├── ldump.c │ ├── lfunc.c │ ├── lfunc.h │ ├── lgc.c │ ├── lgc.h │ ├── linit.c │ ├── liolib.c │ ├── llex.c │ ├── llex.h │ ├── llimits.h │ ├── lmathlib.c │ ├── lmem.c │ ├── lmem.h │ ├── loadlib.c │ ├── lobject.c │ ├── lobject.h │ ├── lopcodes.c │ ├── lopcodes.h │ ├── loslib.c │ ├── lparser.c │ ├── lparser.h │ ├── lprefix.h │ ├── lstate.c │ ├── lstate.h │ ├── lstring.c │ ├── lstring.h │ ├── lstrlib.c │ ├── ltable.c │ ├── ltable.h │ ├── ltablib.c │ ├── ltm.c │ ├── ltm.h │ ├── lua.c │ ├── lua.h │ ├── lua.hpp │ ├── luac.c │ ├── luaconf.h.in │ ├── lualib.h │ ├── lundump.c │ ├── lundump.h │ ├── lutf8lib.c │ ├── lvm.c │ ├── lvm.h │ ├── lzio.c │ └── lzio.h ├── lua-5.3.5 ├── Makefile ├── README ├── doc │ ├── contents.html │ ├── index.css │ ├── logo.gif │ ├── lua.1 │ ├── lua.css │ ├── luac.1 │ ├── manual.css │ ├── manual.html │ ├── osi-certified-72x60.png │ └── readme.html └── src │ ├── Makefile │ ├── lapi.c │ ├── lapi.h │ ├── lauxlib.c │ ├── lauxlib.h │ ├── lbaselib.c │ ├── lbitlib.c │ ├── lcode.c │ ├── lcode.h │ ├── lcorolib.c │ ├── lctype.c │ ├── lctype.h │ ├── ldblib.c │ ├── ldebug.c │ ├── ldebug.h │ ├── ldo.c │ ├── ldo.h │ ├── ldump.c │ ├── lfunc.c │ ├── lfunc.h │ ├── lgc.c │ ├── lgc.h │ ├── linit.c │ ├── liolib.c │ ├── llex.c │ ├── llex.h │ ├── llimits.h │ ├── lmathlib.c │ ├── lmem.c │ ├── lmem.h │ ├── loadlib.c │ ├── lobject.c │ ├── lobject.h │ ├── lopcodes.c │ ├── lopcodes.h │ ├── loslib.c │ ├── lparser.c │ ├── lparser.h │ ├── lprefix.h │ ├── lstate.c │ ├── lstate.h │ ├── lstring.c │ ├── lstring.h │ ├── lstrlib.c │ ├── ltable.c │ ├── ltable.h │ ├── ltablib.c │ ├── ltm.c │ ├── ltm.h │ ├── lua.c │ ├── lua.h │ ├── lua.hpp │ ├── luac.c │ ├── luaconf.h.in │ ├── lualib.h │ ├── lundump.c │ ├── lundump.h │ ├── lutf8lib.c │ ├── lvm.c │ ├── lvm.h │ ├── lzio.c │ └── lzio.h ├── lua-protobuf ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── luaunit.lua ├── pb.c ├── pb.h ├── protoc.lua ├── rockspecs │ └── lua-protobuf-scm-1.rockspec ├── serpent.lua └── test.lua ├── lua-rapidjson ├── include │ └── rapidjson │ │ ├── allocators.h │ │ ├── document.h │ │ ├── encodedstream.h │ │ ├── encodings.h │ │ ├── error │ │ ├── en.h │ │ └── error.h │ │ ├── filereadstream.h │ │ ├── filewritestream.h │ │ ├── fwd.h │ │ ├── internal │ │ ├── biginteger.h │ │ ├── diyfp.h │ │ ├── dtoa.h │ │ ├── ieee754.h │ │ ├── itoa.h │ │ ├── meta.h │ │ ├── pow10.h │ │ ├── regex.h │ │ ├── stack.h │ │ ├── strfunc.h │ │ ├── strtod.h │ │ └── swap.h │ │ ├── istreamwrapper.h │ │ ├── memorybuffer.h │ │ ├── memorystream.h │ │ ├── msinttypes │ │ ├── inttypes.h │ │ └── stdint.h │ │ ├── ostreamwrapper.h │ │ ├── pointer.h │ │ ├── prettywriter.h │ │ ├── rapidjson.h │ │ ├── reader.h │ │ ├── schema.h │ │ ├── stream.h │ │ ├── stringbuffer.h │ │ └── writer.h └── source │ └── rapidjson.cpp ├── luajit-2.1.0b2 ├── COPYRIGHT ├── Makefile ├── README ├── doc │ ├── bluequad-print.css │ ├── bluequad.css │ ├── changes.html │ ├── contact.html │ ├── ext_c_api.html │ ├── ext_ffi.html │ ├── ext_ffi_api.html │ ├── ext_ffi_semantics.html │ ├── ext_ffi_tutorial.html │ ├── ext_jit.html │ ├── ext_profiler.html │ ├── extensions.html │ ├── faq.html │ ├── img │ │ └── contact.png │ ├── install.html │ ├── luajit.html │ ├── running.html │ └── status.html ├── dynasm │ ├── dasm_arm.h │ ├── dasm_arm.lua │ ├── dasm_arm64.h │ ├── dasm_arm64.lua │ ├── dasm_mips.h │ ├── dasm_mips.lua │ ├── dasm_ppc.h │ ├── dasm_ppc.lua │ ├── dasm_proto.h │ ├── dasm_x64.lua │ ├── dasm_x86.h │ ├── dasm_x86.lua │ └── dynasm.lua ├── etc │ ├── luajit.1 │ └── luajit.pc └── src │ ├── Makefile │ ├── Makefile.dep │ ├── host │ ├── README │ ├── buildvm.c │ ├── buildvm.h │ ├── buildvm_asm.c │ ├── buildvm_fold.c │ ├── buildvm_lib.c │ ├── buildvm_libbc.h │ ├── buildvm_peobj.c │ ├── genlibbc.lua │ ├── genminilua.lua │ └── minilua.c │ ├── jit │ ├── bc.lua │ ├── bcsave.lua │ ├── dis_arm.lua │ ├── dis_mips.lua │ ├── dis_mipsel.lua │ ├── dis_ppc.lua │ ├── dis_x64.lua │ ├── dis_x86.lua │ ├── dump.lua │ ├── p.lua │ ├── v.lua │ └── zone.lua │ ├── lauxlib.h │ ├── lib_aux.c │ ├── lib_base.c │ ├── lib_bit.c │ ├── lib_debug.c │ ├── lib_ffi.c │ ├── lib_init.c │ ├── lib_io.c │ ├── lib_jit.c │ ├── lib_math.c │ ├── lib_os.c │ ├── lib_package.c │ ├── lib_string.c │ ├── lib_table.c │ ├── lj.supp │ ├── lj_alloc.c │ ├── lj_alloc.h │ ├── lj_api.c │ ├── lj_arch.h │ ├── lj_asm.c │ ├── lj_asm.h │ ├── lj_asm_arm.h │ ├── lj_asm_mips.h │ ├── lj_asm_ppc.h │ ├── lj_asm_x86.h │ ├── lj_bc.c │ ├── lj_bc.h │ ├── lj_bcdump.h │ ├── lj_bcread.c │ ├── lj_bcwrite.c │ ├── lj_buf.c │ ├── lj_buf.h │ ├── lj_carith.c │ ├── lj_carith.h │ ├── lj_ccall.c │ ├── lj_ccall.h │ ├── lj_ccallback.c │ ├── lj_ccallback.h │ ├── lj_cconv.c │ ├── lj_cconv.h │ ├── lj_cdata.c │ ├── lj_cdata.h │ ├── lj_char.c │ ├── lj_char.h │ ├── lj_clib.c │ ├── lj_clib.h │ ├── lj_cparse.c │ ├── lj_cparse.h │ ├── lj_crecord.c │ ├── lj_crecord.h │ ├── lj_ctype.c │ ├── lj_ctype.h │ ├── lj_debug.c │ ├── lj_debug.h │ ├── lj_def.h │ ├── lj_dispatch.c │ ├── lj_dispatch.h │ ├── lj_emit_arm.h │ ├── lj_emit_mips.h │ ├── lj_emit_ppc.h │ ├── lj_emit_x86.h │ ├── lj_err.c │ ├── lj_err.h │ ├── lj_errmsg.h │ ├── lj_ff.h │ ├── lj_ffrecord.c │ ├── lj_ffrecord.h │ ├── lj_frame.h │ ├── lj_func.c │ ├── lj_func.h │ ├── lj_gc.c │ ├── lj_gc.h │ ├── lj_gdbjit.c │ ├── lj_gdbjit.h │ ├── lj_ir.c │ ├── lj_ir.h │ ├── lj_ircall.h │ ├── lj_iropt.h │ ├── lj_jit.h │ ├── lj_lex.c │ ├── lj_lex.h │ ├── lj_lib.c │ ├── lj_lib.h │ ├── lj_load.c │ ├── lj_mcode.c │ ├── lj_mcode.h │ ├── lj_meta.c │ ├── lj_meta.h │ ├── lj_obj.c │ ├── lj_obj.h │ ├── lj_opt_dce.c │ ├── lj_opt_fold.c │ ├── lj_opt_loop.c │ ├── lj_opt_mem.c │ ├── lj_opt_narrow.c │ ├── lj_opt_sink.c │ ├── lj_opt_split.c │ ├── lj_parse.c │ ├── lj_parse.h │ ├── lj_profile.c │ ├── lj_profile.h │ ├── lj_record.c │ ├── lj_record.h │ ├── lj_snap.c │ ├── lj_snap.h │ ├── lj_state.c │ ├── lj_state.h │ ├── lj_str.c │ ├── lj_str.h │ ├── lj_strfmt.c │ ├── lj_strfmt.h │ ├── lj_strfmt_num.c │ ├── lj_strscan.c │ ├── lj_strscan.h │ ├── lj_tab.c │ ├── lj_tab.h │ ├── lj_target.h │ ├── lj_target_arm.h │ ├── lj_target_arm64.h │ ├── lj_target_mips.h │ ├── lj_target_ppc.h │ ├── lj_target_x86.h │ ├── lj_trace.c │ ├── lj_trace.h │ ├── lj_traceerr.h │ ├── lj_udata.c │ ├── lj_udata.h │ ├── lj_vm.h │ ├── lj_vmevent.c │ ├── lj_vmevent.h │ ├── lj_vmmath.c │ ├── ljamalg.c │ ├── lua.h │ ├── lua.hpp │ ├── luaconf.h │ ├── luajit.c │ ├── luajit.h │ ├── lualib.h │ ├── msvcbuild.bat │ ├── msvcbuild_mt.bat │ ├── msvcbuild_xlua.bat │ ├── ps4build.bat │ ├── psvitabuild.bat │ ├── vm_arm.dasc │ ├── vm_arm64.dasc │ ├── vm_mips.dasc │ ├── vm_ppc.dasc │ ├── vm_x64.dasc │ ├── vm_x86.dasc │ ├── xb1build.bat │ └── xedkbuild.bat ├── luajit-2.1.0b3 ├── COPYRIGHT ├── Makefile ├── README ├── doc │ ├── bluequad-print.css │ ├── bluequad.css │ ├── changes.html │ ├── contact.html │ ├── ext_c_api.html │ ├── ext_ffi.html │ ├── ext_ffi_api.html │ ├── ext_ffi_semantics.html │ ├── ext_ffi_tutorial.html │ ├── ext_jit.html │ ├── ext_profiler.html │ ├── extensions.html │ ├── faq.html │ ├── img │ │ └── contact.png │ ├── install.html │ ├── luajit.html │ ├── running.html │ └── status.html ├── dynasm │ ├── dasm_arm.h │ ├── dasm_arm.lua │ ├── dasm_arm64.h │ ├── dasm_arm64.lua │ ├── dasm_mips.h │ ├── dasm_mips.lua │ ├── dasm_mips64.lua │ ├── dasm_ppc.h │ ├── dasm_ppc.lua │ ├── dasm_proto.h │ ├── dasm_x64.lua │ ├── dasm_x86.h │ ├── dasm_x86.lua │ └── dynasm.lua ├── etc │ ├── luajit.1 │ └── luajit.pc └── src │ ├── Makefile │ ├── Makefile.dep │ ├── host │ ├── README │ ├── buildvm.c │ ├── buildvm.h │ ├── buildvm_asm.c │ ├── buildvm_fold.c │ ├── buildvm_lib.c │ ├── buildvm_libbc.h │ ├── buildvm_peobj.c │ ├── genlibbc.lua │ ├── genminilua.lua │ └── minilua.c │ ├── jit │ ├── bc.lua │ ├── bcsave.lua │ ├── dis_arm.lua │ ├── dis_arm64.lua │ ├── dis_arm64be.lua │ ├── dis_mips.lua │ ├── dis_mips64.lua │ ├── dis_mips64el.lua │ ├── dis_mipsel.lua │ ├── dis_ppc.lua │ ├── dis_x64.lua │ ├── dis_x86.lua │ ├── dump.lua │ ├── p.lua │ ├── v.lua │ └── zone.lua │ ├── lauxlib.h │ ├── lib_aux.c │ ├── lib_base.c │ ├── lib_bit.c │ ├── lib_debug.c │ ├── lib_ffi.c │ ├── lib_init.c │ ├── lib_io.c │ ├── lib_jit.c │ ├── lib_math.c │ ├── lib_os.c │ ├── lib_package.c │ ├── lib_string.c │ ├── lib_table.c │ ├── lj.supp │ ├── lj_alloc.c │ ├── lj_alloc.h │ ├── lj_api.c │ ├── lj_arch.h │ ├── lj_asm.c │ ├── lj_asm.h │ ├── lj_asm_arm.h │ ├── lj_asm_arm64.h │ ├── lj_asm_mips.h │ ├── lj_asm_ppc.h │ ├── lj_asm_x86.h │ ├── lj_bc.c │ ├── lj_bc.h │ ├── lj_bcdump.h │ ├── lj_bcread.c │ ├── lj_bcwrite.c │ ├── lj_buf.c │ ├── lj_buf.h │ ├── lj_carith.c │ ├── lj_carith.h │ ├── lj_ccall.c │ ├── lj_ccall.h │ ├── lj_ccallback.c │ ├── lj_ccallback.h │ ├── lj_cconv.c │ ├── lj_cconv.h │ ├── lj_cdata.c │ ├── lj_cdata.h │ ├── lj_char.c │ ├── lj_char.h │ ├── lj_clib.c │ ├── lj_clib.h │ ├── lj_cparse.c │ ├── lj_cparse.h │ ├── lj_crecord.c │ ├── lj_crecord.h │ ├── lj_ctype.c │ ├── lj_ctype.h │ ├── lj_debug.c │ ├── lj_debug.h │ ├── lj_def.h │ ├── lj_dispatch.c │ ├── lj_dispatch.h │ ├── lj_emit_arm.h │ ├── lj_emit_arm64.h │ ├── lj_emit_mips.h │ ├── lj_emit_ppc.h │ ├── lj_emit_x86.h │ ├── lj_err.c │ ├── lj_err.h │ ├── lj_errmsg.h │ ├── lj_ff.h │ ├── lj_ffrecord.c │ ├── lj_ffrecord.h │ ├── lj_frame.h │ ├── lj_func.c │ ├── lj_func.h │ ├── lj_gc.c │ ├── lj_gc.h │ ├── lj_gdbjit.c │ ├── lj_gdbjit.h │ ├── lj_ir.c │ ├── lj_ir.h │ ├── lj_ircall.h │ ├── lj_iropt.h │ ├── lj_jit.h │ ├── lj_lex.c │ ├── lj_lex.h │ ├── lj_lib.c │ ├── lj_lib.h │ ├── lj_load.c │ ├── lj_mcode.c │ ├── lj_mcode.h │ ├── lj_meta.c │ ├── lj_meta.h │ ├── lj_obj.c │ ├── lj_obj.h │ ├── lj_opt_dce.c │ ├── lj_opt_fold.c │ ├── lj_opt_loop.c │ ├── lj_opt_mem.c │ ├── lj_opt_narrow.c │ ├── lj_opt_sink.c │ ├── lj_opt_split.c │ ├── lj_parse.c │ ├── lj_parse.h │ ├── lj_profile.c │ ├── lj_profile.h │ ├── lj_record.c │ ├── lj_record.h │ ├── lj_snap.c │ ├── lj_snap.h │ ├── lj_state.c │ ├── lj_state.h │ ├── lj_str.c │ ├── lj_str.h │ ├── lj_strfmt.c │ ├── lj_strfmt.h │ ├── lj_strfmt_num.c │ ├── lj_strscan.c │ ├── lj_strscan.h │ ├── lj_tab.c │ ├── lj_tab.h │ ├── lj_target.h │ ├── lj_target_arm.h │ ├── lj_target_arm64.h │ ├── lj_target_mips.h │ ├── lj_target_ppc.h │ ├── lj_target_x86.h │ ├── lj_trace.c │ ├── lj_trace.h │ ├── lj_traceerr.h │ ├── lj_udata.c │ ├── lj_udata.h │ ├── lj_vm.h │ ├── lj_vmevent.c │ ├── lj_vmevent.h │ ├── lj_vmmath.c │ ├── ljamalg.c │ ├── lua.h │ ├── lua.hpp │ ├── luaconf.h │ ├── luajit.c │ ├── luajit.h │ ├── lualib.h │ ├── msvcbuild.bat │ ├── msvcbuild_mt.bat │ ├── ps4build.bat │ ├── psvitabuild.bat │ ├── vm_arm.dasc │ ├── vm_arm64.dasc │ ├── vm_mips.dasc │ ├── vm_mips64.dasc │ ├── vm_ppc.dasc │ ├── vm_x64.dasc │ ├── vm_x86.dasc │ ├── xb1build.bat │ └── xedkbuild.bat ├── luasocket ├── auxiliar.c ├── auxiliar.h ├── buffer.c ├── buffer.h ├── except.c ├── except.h ├── inet.c ├── inet.h ├── io.c ├── io.h ├── luasocket.c ├── luasocket.h ├── luasocket_scripts.c ├── luasocket_scripts.h ├── mime.c ├── mime.h ├── options.c ├── options.h ├── select.c ├── select.h ├── serial.c ├── socket.h ├── tcp.c ├── tcp.h ├── timeout.c ├── timeout.h ├── udp.c ├── udp.h ├── unix.c ├── unix.h ├── usocket.c ├── usocket.h ├── wsocket.c └── wsocket.h ├── make_android_lua53.bat ├── make_android_lua53.sh ├── make_android_luajit.sh ├── make_ios_lua53.sh ├── make_ios_luajit.sh ├── make_linux32_lua53.sh ├── make_linux32_luajit.sh ├── make_linux64_lua53.sh ├── make_linux64_luajit.sh ├── make_nx64_lua53.bat ├── make_nx64_luajit_gc64.bat ├── make_osx_lua53.sh ├── make_osx_luajit.sh ├── make_uwp.bat ├── make_win32_lua53.bat ├── make_win32_luajit.bat ├── make_win32_luajit_vs2017.bat ├── make_win64_lua53.bat ├── make_win64_lua53_compatiable.bat ├── make_win64_luajit.bat ├── make_win64_luajit_gc64.bat ├── make_win64_luajit_vs2017.bat ├── memory_leak_checker.c ├── pbc ├── .gitignore ├── .travis.yml ├── Android.mk ├── Makefile ├── README.md ├── binding │ ├── lua │ │ ├── Makefile │ │ ├── README.md │ │ ├── build_ios.sh │ │ ├── parser.lua │ │ ├── pbc-lua.c │ │ ├── protobuf.lua │ │ ├── test.lua │ │ ├── test2.lua │ │ └── testparser.lua │ └── lua53 │ │ ├── Makefile │ │ ├── build_ios.sh │ │ ├── pbc-lua53.c │ │ ├── protobuf.lua │ │ └── test.lua ├── build_ios.sh ├── license.txt ├── pbc.h ├── pbc.sln ├── pbc.vcxproj ├── pbc.vcxproj.filters ├── pbc.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── pbc │ └── pbc-Prefix.pch ├── src │ ├── alloc.c │ ├── alloc.h │ ├── array.c │ ├── array.h │ ├── bootstrap.c │ ├── bootstrap.h │ ├── context.c │ ├── context.h │ ├── decode.c │ ├── descriptor.pbc.h │ ├── map.c │ ├── map.h │ ├── pattern.c │ ├── pattern.h │ ├── proto.c │ ├── proto.h │ ├── register.c │ ├── rmessage.c │ ├── stringpool.c │ ├── stringpool.h │ ├── varint.c │ ├── varint.h │ └── wmessage.c ├── test │ ├── addressbook.c │ ├── addressbook.proto │ ├── array.c │ ├── decode.c │ ├── descriptor.proto │ ├── float.c │ ├── float.proto │ ├── map.c │ ├── pattern.c │ ├── pbc.c │ ├── readfile.h │ ├── test.c │ ├── test.proto │ └── varint.c └── tool │ └── dump.c ├── perflib.c ├── plugin_lua53 └── Plugins │ ├── Android │ └── libs │ │ ├── armeabi-v7a │ │ └── libxlua.so │ │ └── x86 │ │ └── libxlua.so │ ├── WSA │ ├── ARM │ │ └── xlua.dll │ ├── x64 │ │ └── xlua.dll │ └── x86 │ │ └── xlua.dll │ ├── iOS │ ├── HotfixFlags.cpp │ └── libxlua.a │ ├── x86 │ ├── libxlua.so │ └── xlua.dll │ ├── x86_64 │ ├── libxlua.so │ └── xlua.dll │ └── xlua.bundle │ └── Contents │ ├── Info.plist │ └── MacOS │ └── xlua ├── plugin_luajit └── Plugins │ ├── Android │ └── libs │ │ ├── armeabi-v7a │ │ └── libxlua.so │ │ └── x86 │ │ └── libxlua.so │ ├── iOS │ ├── HotfixFlags.cpp │ └── libxlua.a │ ├── x86 │ └── xlua.dll │ ├── x86_64 │ └── xlua.dll │ └── xlua.bundle │ └── Contents │ ├── Info.plist │ └── MacOS │ └── xlua └── xlua.c /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "build/lua-protobuf"] 2 | path = build/lua-protobuf 3 | url = https://github.com/starwing/lua-protobuf 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 chexiongsheng 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/BuildInInit.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ca5e47dad8402a47941c753c8a24633 3 | timeCreated: 1490757509 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Helloworld.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a0c7fd9ddf5f21b499cc6ca4f483bb78 3 | folderAsset: yes 4 | timeCreated: 1490757728 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Helloworld/Helloworld.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 480b23bd4e378f2499f8b31ae84b1c05 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Helloworld/Helloworld.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/Helloworld/Helloworld.unity -------------------------------------------------------------------------------- /LibsTestProj/Assets/Helloworld/Helloworld.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 58e2eda480b0c6e41a793391a9fb9a72 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Helloworld/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5470d4c3a5a512546be20a3bfe5aad09 3 | folderAsset: yes 4 | timeCreated: 1490759474 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Helloworld/idl.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec28330ab72e3b34c828514fdad822d3 3 | folderAsset: yes 4 | timeCreated: 1490774897 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Helloworld/idl/User.pb: -------------------------------------------------------------------------------- 1 | import "UserInfo.pb"; 2 | 3 | message User{ 4 | required int32 id = 1; 5 | repeated int32 status = 2; 6 | required string pwdMd5 = 3; 7 | required string regTime = 4; 8 | required UserInfo info = 5; 9 | } 10 | 11 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Helloworld/idl/User.pb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 95d4441490a7211449edd232df3515bf 3 | timeCreated: 1490763574 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Helloworld/idl/UserInfo.pb: -------------------------------------------------------------------------------- 1 | 2 | message UserInfo{ 3 | required string name = 1; 4 | required int64 diamond = 2; 5 | required int32 level = 3; 6 | } 7 | 8 | 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Helloworld/idl/UserInfo.pb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96cf3c6fa42dca647a964ce70a9e3eda 3 | timeCreated: 1490763574 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a16bb6756d0496e42a92390340cb94f5 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/Android.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0004c0a5ad641d4468ebb65779ee48b2 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/Android/libs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9cd62bafd75e7604daf2b561b80d136d 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/Android/libs/armeabi-v7a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8d0cd0f5702f0144af2498bce3ee3e9 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/Android/libs/armeabi-v7a/libxlua.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/Plugins/Android/libs/armeabi-v7a/libxlua.so -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/Android/libs/armeabi-v7a/libxlua.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e1b2e17cce240d4c8ff5457ac996e0d 3 | timeCreated: 1451443249 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Android: 12 | enabled: 1 13 | settings: 14 | CPU: ARMv7 15 | Any: 16 | enabled: 0 17 | settings: {} 18 | Editor: 19 | enabled: 0 20 | settings: 21 | DefaultValueInitialized: true 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/Android/libs/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 079ea0ed741ff194a80cce029630b5ac 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/Android/libs/x86/libxlua.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/Plugins/Android/libs/x86/libxlua.so -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/Android/libs/x86/libxlua.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 038a89637b659e346a7a712ce0c9271b 3 | timeCreated: 1451443249 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Android: 12 | enabled: 1 13 | settings: 14 | CPU: x86 15 | Any: 16 | enabled: 0 17 | settings: {} 18 | Editor: 19 | enabled: 0 20 | settings: 21 | DefaultValueInitialized: true 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WSA.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8c5688e381fddc4eb22e6f96f69541c 3 | folderAsset: yes 4 | timeCreated: 1489995541 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WSA/ARM.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e6375603a0a1e2647b0c426b27646eb7 3 | folderAsset: yes 4 | timeCreated: 1490146877 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WSA/ARM/xlua.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/Plugins/WSA/ARM/xlua.dll -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WSA/ARM/xlua.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb3d94d8757d66b40b20f0386b52d01d 3 | timeCreated: 1490146878 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: {} 15 | Editor: 16 | enabled: 0 17 | settings: 18 | DefaultValueInitialized: true 19 | WindowsStoreApps: 20 | enabled: 1 21 | settings: 22 | CPU: ARM 23 | userData: 24 | assetBundleName: 25 | assetBundleVariant: 26 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WSA/x64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d5a7116d7e9a33409205303635b8635 3 | folderAsset: yes 4 | timeCreated: 1490146877 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WSA/x64/xlua.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/Plugins/WSA/x64/xlua.dll -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WSA/x64/xlua.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a73864467778862409da51f9feb60004 3 | timeCreated: 1490146878 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: {} 15 | Editor: 16 | enabled: 0 17 | settings: 18 | DefaultValueInitialized: true 19 | WindowsStoreApps: 20 | enabled: 1 21 | settings: 22 | CPU: x64 23 | userData: 24 | assetBundleName: 25 | assetBundleVariant: 26 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WSA/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e0f35de38a8ed24fa8b20d444c9ee5e 3 | folderAsset: yes 4 | timeCreated: 1490146877 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WSA/x86/xlua.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/Plugins/WSA/x86/xlua.dll -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WSA/x86/xlua.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3fd23a6414095674493657a67a8043a1 3 | timeCreated: 1489995544 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: {} 15 | Editor: 16 | enabled: 0 17 | settings: 18 | DefaultValueInitialized: true 19 | WindowsStoreApps: 20 | enabled: 1 21 | settings: 22 | CPU: x86 23 | userData: 24 | assetBundleName: 25 | assetBundleVariant: 26 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WebGL.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7f3a5adb034d684cb13cb257c29a1c3 3 | folderAsset: yes 4 | timeCreated: 1504062948 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WebGL/lpeg_webgl.cpp: -------------------------------------------------------------------------------- 1 | extern "C" { 2 | #include "../../../WebGLPlugins/lpcap.c" 3 | #include "../../../WebGLPlugins/lpcode.c" 4 | #include "../../../WebGLPlugins/lpprint.c" 5 | #include "../../../WebGLPlugins/lptree.c" 6 | #include "../../../WebGLPlugins/lpvm.c" 7 | } 8 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WebGL/lpeg_webgl.cpp.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ca592c3bfa364bbb9b028b774672853 3 | timeCreated: 1505464943 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Facebook: WebGL 28 | second: 29 | enabled: 1 30 | settings: {} 31 | data: 32 | first: 33 | WebGL: WebGL 34 | second: 35 | enabled: 1 36 | settings: {} 37 | userData: 38 | assetBundleName: 39 | assetBundleVariant: 40 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WebGL/pbc_webgl.cpp: -------------------------------------------------------------------------------- 1 | extern "C" { 2 | #include "../../../WebGLPlugins/alloc.c" 3 | #include "../../../WebGLPlugins/array.c" 4 | #include "../../../WebGLPlugins/bootstrap.c" 5 | #include "../../../WebGLPlugins/context.c" 6 | #include "../../../WebGLPlugins/decode.c" 7 | #include "../../../WebGLPlugins/map.c" 8 | #include "../../../WebGLPlugins/pattern.c" 9 | #include "../../../WebGLPlugins/proto.c" 10 | #include "../../../WebGLPlugins/register.c" 11 | #include "../../../WebGLPlugins/rmessage.c" 12 | #include "../../../WebGLPlugins/stringpool.c" 13 | #include "../../../WebGLPlugins/varint.c" 14 | #include "../../../WebGLPlugins/wmessage.c" 15 | #include "../../../WebGLPlugins/pbc-lua53.c" 16 | } 17 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WebGL/pbc_webgl.cpp.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ebf5ab603650d4d08a431745c0e4bc95 3 | timeCreated: 1505465149 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Facebook: WebGL 28 | second: 29 | enabled: 1 30 | settings: {} 31 | data: 32 | first: 33 | WebGL: WebGL 34 | second: 35 | enabled: 1 36 | settings: {} 37 | userData: 38 | assetBundleName: 39 | assetBundleVariant: 40 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WebGL/rapidjson_webgl.cpp: -------------------------------------------------------------------------------- 1 | #include "../../../WebGLPlugins/rapidjson.cpp" 2 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WebGL/rapidjson_webgl.cpp.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06d27063a5963493db440a4430f59468 3 | timeCreated: 1505465581 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Facebook: WebGL 28 | second: 29 | enabled: 1 30 | settings: {} 31 | data: 32 | first: 33 | WebGL: WebGL 34 | second: 35 | enabled: 1 36 | settings: {} 37 | userData: 38 | assetBundleName: 39 | assetBundleVariant: 40 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/WebGL/xlua_webgl.cpp.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92f9773841d5ffd44b794b9b584a5c05 3 | timeCreated: 1504062948 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Facebook: WebGL 28 | second: 29 | enabled: 1 30 | settings: {} 31 | data: 32 | first: 33 | WebGL: WebGL 34 | second: 35 | enabled: 1 36 | settings: {} 37 | userData: 38 | assetBundleName: 39 | assetBundleVariant: 40 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/iOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a4ab2e5e00054b03a7bf96d03e5b4e1 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/iOS/HotfixFlags.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int* xlua_hotfix_flags = NULL; 5 | int xlua_hotfix_flags_len = 0; 6 | 7 | extern "C" { 8 | 9 | int xlua_get_hotfix_flag(int idx) { 10 | if (idx >= xlua_hotfix_flags_len) { 11 | return 0; 12 | } else { 13 | return xlua_hotfix_flags[idx]; 14 | } 15 | } 16 | 17 | void xlua_set_hotfix_flag(int idx, int flag) { 18 | int i = 0; 19 | int* new_hotfix_flags = NULL; 20 | if (idx >= xlua_hotfix_flags_len) { 21 | if (xlua_hotfix_flags == NULL) { 22 | xlua_hotfix_flags = (int*)malloc((idx + 1) * sizeof(int)); 23 | } else { 24 | new_hotfix_flags = (int*)realloc(xlua_hotfix_flags, (idx + 1) * sizeof(int)); 25 | if (NULL == new_hotfix_flags) { // just skip operation 26 | return; 27 | } 28 | xlua_hotfix_flags = new_hotfix_flags; 29 | } 30 | for(i = xlua_hotfix_flags_len; i < (idx + 1); i++) { 31 | xlua_hotfix_flags[i] = 0; 32 | } 33 | xlua_hotfix_flags_len = idx + 1; 34 | } 35 | xlua_hotfix_flags[idx] = flag; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/iOS/HotfixFlags.cpp.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25d0902ca77abcc48994681f1548ff7f 3 | timeCreated: 1500449822 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 1 13 | settings: {} 14 | userData: 15 | assetBundleName: 16 | assetBundleVariant: 17 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/iOS/libxlua.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/Plugins/iOS/libxlua.a -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/iOS/libxlua.a.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d65468f3356ca741b3fbebea91dfb6c 3 | timeCreated: 1451443249 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 0 13 | settings: {} 14 | Editor: 15 | enabled: 0 16 | settings: 17 | DefaultValueInitialized: true 18 | iOS: 19 | enabled: 1 20 | settings: {} 21 | userData: 22 | assetBundleName: 23 | assetBundleVariant: 24 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b0b0c4ffe67d2f4292c5211de91e55f 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/x86/libxlua.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/Plugins/x86/libxlua.so -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/x86/xlua.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/Plugins/x86/xlua.dll -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/x86_64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8dba1dfb80e5b7d40bd214fc4ed2ed6b 3 | folderAsset: yes 4 | timeCreated: 1451020766 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/x86_64/libxlua.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/Plugins/x86_64/libxlua.so -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/x86_64/xlua.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/Plugins/x86_64/xlua.dll -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/xlua.bundle/Contents.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e4b7549f5e4a4e71806e3ec8e428b15 3 | folderAsset: yes 4 | timeCreated: 1457422691 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/xlua.bundle/Contents/Info.plist.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac30af4fb2add4d41a9f50fe4f8292a3 3 | timeCreated: 1457422749 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/xlua.bundle/Contents/MacOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c9d8e68fa0fd1465294f1255f6ed8563 3 | folderAsset: yes 4 | timeCreated: 1457422691 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/xlua.bundle/Contents/MacOS/xlua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/Plugins/xlua.bundle/Contents/MacOS/xlua -------------------------------------------------------------------------------- /LibsTestProj/Assets/Plugins/xlua.bundle/Contents/MacOS/xlua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f3b1cda03ac84924b1ee0595fc019f5 3 | timeCreated: 1457422749 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1fa9e64df3d90e543b710451256c6d41 3 | folderAsset: yes 4 | timeCreated: 1490759992 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/Resources/protoc.lua.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4aee6decfa7324569b19e83e3cef8086 3 | timeCreated: 1525312171 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d2d240998b7a9a44b7402136c946623 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/CHANGELOG.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: be3fe4ee249c5274693e7b6f8053e861 3 | timeCreated: 1470364015 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67edfc4b640373846b14362bf8769576 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee1eae11fbe87b04193ab2c3d15ba2b3 3 | folderAsset: yes 4 | timeCreated: 1481715983 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/Materials/logo.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/XLua/Doc/Materials/logo.mat -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/Materials/logo.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 953e2ba39b9a2d54388919b75877efb7 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/XLua_API.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/XLua/Doc/XLua_API.doc -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/XLua_API.doc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f05e875da3e1b3844b2360d177d617c9 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/XLua增加删除第三方lua库.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/XLua/Doc/XLua增加删除第三方lua库.doc -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/XLua增加删除第三方lua库.doc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40e0633beaaf4dd49aca86e58539a814 3 | timeCreated: 1469709930 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/XLua复杂值类型(struct)gc优化指南.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/XLua/Doc/XLua复杂值类型(struct)gc优化指南.doc -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/XLua复杂值类型(struct)gc优化指南.doc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 11d97e567c78f3147b86070c103f3d2d 3 | timeCreated: 1472455442 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/XLua性能分析工具.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/XLua/Doc/XLua性能分析工具.doc -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/XLua性能分析工具.doc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e83c211c4c43834b9c8027b7480ab5f 3 | timeCreated: 1462265117 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/XLua教程.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/XLua/Doc/XLua教程.doc -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/XLua教程.doc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9678cc58c9b40e147b514f7f5122ee20 3 | timeCreated: 1456291064 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/XLua的配置.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/XLua/Doc/XLua的配置.doc -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/XLua的配置.doc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57c6cf634c35eb146b95206d498cbf99 3 | timeCreated: 1480488641 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/custom_generate.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6436d38981b6f5a4d8a2255ea3145ed1 3 | timeCreated: 1486519283 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/faq.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13645b7c8597d7840adaff65764ad40f 3 | timeCreated: 1481765808 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/features.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6dcae34981e53564ea1ad644fe0b2f7c 3 | timeCreated: 1481768591 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/hotfix.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a96cb06c040f28c4aab024ca7634360b 3 | timeCreated: 1482837382 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/XLua/Doc/logo.png -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/signature.md: -------------------------------------------------------------------------------- 1 | ## 源代码签名的用处 2 | 3 | 可以防止文件传输的过程被黑客篡改。 4 | 5 | ## xLua的签名功能的使用 6 | 7 | * 用Tools/KeyPairsGen.exe生成公私钥对,key_ras文件保存的是私钥,key_ras.pub保存的是公钥,这两个文件请妥善保存,私钥关系到游戏安全,请做好保密工作; 8 | * 用Tools/FilesSignature.exe对源代码进行签名: 9 | * key_ras文件要放到执行目录; 10 | * 参数是源目录和目标目录,这个工具会自动把源目录及其子目录下所有lua后缀的文件签名,按同样的目录结构放到目标目录下; 11 | * 通过SignatureLoader对自己原有的CustomLoader包装后使用; 12 | * SignatureLoader的构造函数有两个,一个是公钥,也就是key_ras.pub里头的内容,一个是原来的Loader; 13 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/signature.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 54ea702ea6cb89a46b7986dc7fa8482e 3 | timeCreated: 1489376033 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Doc/xLua.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/XLua/Doc/xLua.png -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f890416e958ceb54694b165fb109582a 3 | folderAsset: yes 4 | timeCreated: 1534492498 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Editor/ExampleConfig.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b852d3c62124624888d03e611f7b1fc 3 | timeCreated: 1534126175 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa4f7e825d6ae9742bd6f88af5865c13 3 | folderAsset: yes 4 | timeCreated: 1458812833 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Resources/perf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 866368b69ae1a2040943783fa31d2f74 3 | folderAsset: yes 4 | timeCreated: 1461553627 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Resources/perf/memory.lua.txt: -------------------------------------------------------------------------------- 1 | -- Tencent is pleased to support the open source community by making xLua available. 2 | -- Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. 3 | -- Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at 4 | -- http://opensource.org/licenses/MIT 5 | -- Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 6 | 7 | local function snapshot() 8 | error('use memory leak checker instead!') 9 | end 10 | 11 | --returns the total memory in use by Lua (in Kbytes). 12 | local function total() 13 | error('use memory leak checker instead!') 14 | end 15 | 16 | 17 | return { 18 | snapshot = snapshot, 19 | total = total 20 | } 21 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Resources/perf/memory.lua.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a5cba5df35473342b614686c15f8a4c 3 | timeCreated: 1461833890 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Resources/perf/profiler.lua.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4841b87b13a684649aab9de0e72132b7 3 | timeCreated: 1461553714 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Resources/tdr.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f08dfe3f4634334ea0810ea31d8b593 3 | folderAsset: yes 4 | timeCreated: 1454039150 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Resources/tdr/tdr.lua.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e05f05f4a331bc45a04832062650a9e 3 | timeCreated: 1458812943 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Resources/xlua.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0924e56a40ddb34e9b004c2056288fa 3 | folderAsset: yes 4 | timeCreated: 1463477791 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Resources/xlua/util.lua.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4397ec772c2d41e46a9766cf46b8bec6 3 | timeCreated: 1463477791 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac2f50d02ed9ec24b8fcc1921bfb244c 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/CodeEmit.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 93ce5fd372271b04199841c920eb0268 3 | timeCreated: 1470883945 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/CopyByValue.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aba23a1792dbc49438a2357566447979 3 | timeCreated: 1467189953 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/DelegateBridge.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8c4165852e3e92468656dc6efb30a28 3 | timeCreated: 1452574309 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e53aa922da0a00469e5760902833e71 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/Generator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e866a5f1000c29940843aece98d0c706 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/Hotfix.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9f175d9e85601f4da903e391b8b7c77 3 | timeCreated: 1482299911 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/LinkXmlGen.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f94464b9267f9b4cbf2f98681e22880 3 | folderAsset: yes 4 | timeCreated: 1479105499 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/LinkXmlGen/LinkXmlGen.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5fa8c6bd6daed854c98654418f48a830 3 | timeCreated: 1482482561 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: 8 | - Template: {fileID: 4900000, guid: 384feb229d259f549bbbac9e910b782b, type: 3} 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/LinkXmlGen/LinkXmlGen.tpl.txt: -------------------------------------------------------------------------------- 1 | <% 2 | require "TemplateCommon" 3 | %> 4 | 5 | 6 | <%ForEachCsList(assembly_infos, function(assembly_info)%> 7 | 8 | <%ForEachCsList(assembly_info.Types, function(type) 9 | %> 10 | <%end)%> 11 | 12 | <%end)%> 13 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/LinkXmlGen/LinkXmlGen.tpl.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 384feb229d259f549bbbac9e910b782b 3 | timeCreated: 1481621844 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/Template.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c7307955fb71fc4090eb2a906a78a0a 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/Template/LuaClassWrap.tpl.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8503038eabbabe44dac0f5f749d4411a 3 | timeCreated: 1481620508 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/Template/LuaClassWrapGCM.tpl.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2bd79d95fd859724283926ad8fa4df30 3 | timeCreated: 1501232428 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/Template/LuaDelegateBridge.tpl.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d992756e2469044484be75f78e4e556 3 | timeCreated: 1481620508 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/Template/LuaDelegateWrap.tpl.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 33b33e1cd617f794b8c801a32f3b2539 3 | timeCreated: 1481620508 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/Template/LuaEnumWrap.tpl.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae16c73aad9a21a44aef65decb7e4928 3 | timeCreated: 1481620508 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/Template/LuaEnumWrapGCM.tpl.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ea84a5ee7abf8e347a810eb7848add46 3 | timeCreated: 1501232428 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/Template/LuaInterfaceBridge.tpl.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7165d08e91378494dadeb10e5338accb 3 | timeCreated: 1481620508 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/Template/LuaRegister.tpl.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e416b82ec9fe340458f97cf1e3468ef7 3 | timeCreated: 1481620508 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/Template/LuaRegisterGCM.tpl.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46c7366d55afbf1459674448d92c44c8 3 | timeCreated: 1501232428 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/Template/LuaWrapPusher.tpl.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1a916469d261d447972d287b6c5b7a0 3 | timeCreated: 1481620508 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/Template/PackUnpack.tpl.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c9ef7e8f2a3b37744aad49b99370c16b 3 | timeCreated: 1481620508 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/Template/TemplateCommon.lua.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb41d53afe75a9443b182e284298feeb 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Editor/TemplateRef.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | namespace XLua 4 | { 5 | public class TemplateRef : ScriptableObject 6 | { 7 | public TextAsset LuaClassWrap; 8 | public TextAsset LuaClassWrapGCM; 9 | public TextAsset LuaDelegateBridge; 10 | public TextAsset LuaDelegateWrap; 11 | public TextAsset LuaEnumWrap; 12 | public TextAsset LuaEnumWrapGCM; 13 | public TextAsset LuaInterfaceBridge; 14 | public TextAsset LuaRegister; 15 | public TextAsset LuaRegisterGCM; 16 | public TextAsset LuaWrapPusher; 17 | public TextAsset PackUnpack; 18 | public TextAsset TemplateCommon; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/GenAttributes.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4455254bac5b6644893ae8183b9eb87c 3 | timeCreated: 1452509750 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/GenConfig.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e8efc8f9c8e9474c8a67ba7e285861a 3 | timeCreated: 1459508849 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/InternalGlobals.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bacb817c6d0b48644892c8dc3cb6cfc1 3 | timeCreated: 1496994941 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/LuaBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 36f6e0ab03586ce4493d45dbc2a0ff5c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/LuaDLL.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/XLua/Src/LuaDLL.cs -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/LuaDLL.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d60cef534e986e849a829838fbeb74b5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/LuaEnv.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Assets/XLua/Src/LuaEnv.cs -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/LuaEnv.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a72df23459239b4d901cdacabd469d1 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/LuaException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Tencent is pleased to support the open source community by making xLua available. 3 | * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. 4 | * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at 5 | * http://opensource.org/licenses/MIT 6 | * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 7 | */ 8 | 9 | using System; 10 | 11 | namespace XLua 12 | { 13 | [Serializable] 14 | public class LuaException : Exception 15 | { 16 | public LuaException(string message) : base(message) 17 | {} 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/LuaException.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b209468b680ef7d4195de21a39bfcae0 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/LuaFunction.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7c45cd490d853cb409d042c641784718 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/LuaTable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a4d72d338110544b8538c1a5fd33c11 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/MethodWarpsCache.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d5f029e1a01fd984f92bf8d5c2b51923 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/ObjectCasters.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04cef766c4f15b341bcb4659831e6748 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/ObjectPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: acf2cec75841d9646900284e2ba1ca4f 3 | timeCreated: 1480296949 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/ObjectTranslator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41d53bdd4bbda0f41a6bd1eb35af4f99 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/ObjectTranslatorPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 069f15dde2065491db1e68ca5fb1279d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/RawObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f3f2b65020c56dc4985af0768b06c63c 3 | timeCreated: 1498116130 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/SignatureLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5dfa9c69dddc18849bd3c1dfc4ac42de 3 | timeCreated: 1489222429 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/StaticLuaCallbacks.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 300ed412007935e45a1546a984b89059 3 | timeCreated: 1469175028 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/TemplateEngine.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f996f6400fcbdd4db02eeab46d9dd1e 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/TemplateEngine/TemplateEngine.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d416b4da0b828854c8e997f0c1ae4072 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/TypeExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0099a231859d6da43932d0c36714e17f 3 | timeCreated: 1489998065 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /LibsTestProj/Assets/XLua/Src/Utils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9c14a5b76adb7d41926526af904beda 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /LibsTestProj/Tools/FilesSignature.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Tools/FilesSignature.exe -------------------------------------------------------------------------------- /LibsTestProj/Tools/FilesSignature.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Tools/FilesSignature.pdb -------------------------------------------------------------------------------- /LibsTestProj/Tools/KeyPairsGen.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Tools/KeyPairsGen.exe -------------------------------------------------------------------------------- /LibsTestProj/Tools/KeyPairsGen.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Tools/KeyPairsGen.pdb -------------------------------------------------------------------------------- /LibsTestProj/Tools/Mono.Cecil.Mdb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Tools/Mono.Cecil.Mdb.dll -------------------------------------------------------------------------------- /LibsTestProj/Tools/Mono.Cecil.Pdb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Tools/Mono.Cecil.Pdb.dll -------------------------------------------------------------------------------- /LibsTestProj/Tools/Mono.Cecil.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Tools/Mono.Cecil.dll -------------------------------------------------------------------------------- /LibsTestProj/Tools/Mono.Security.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Tools/Mono.Security.dll -------------------------------------------------------------------------------- /LibsTestProj/Tools/System.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Tools/System.Core.dll -------------------------------------------------------------------------------- /LibsTestProj/Tools/System.Core.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Tools/System.Core.dll.mdb -------------------------------------------------------------------------------- /LibsTestProj/Tools/System.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Tools/System.dll -------------------------------------------------------------------------------- /LibsTestProj/Tools/System.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Tools/System.dll.mdb -------------------------------------------------------------------------------- /LibsTestProj/Tools/XLuaHotfixInject.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Tools/XLuaHotfixInject.exe -------------------------------------------------------------------------------- /LibsTestProj/Tools/XLuaHotfixInject.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/LibsTestProj/Tools/XLuaHotfixInject.pdb -------------------------------------------------------------------------------- /LibsTestProj/WebGLPlugins/alloc.h: -------------------------------------------------------------------------------- 1 | #ifndef PROTOBUF_C_ALLOC_H 2 | #define PROTOBUF_C_ALLOC_H 3 | 4 | #include 5 | #include 6 | 7 | void * _pbcM_malloc(size_t sz); 8 | void _pbcM_free(void *p); 9 | void * _pbcM_realloc(void *p, size_t sz); 10 | void _pbcM_memory(); 11 | 12 | struct heap; 13 | 14 | struct heap * _pbcH_new(int pagesize); 15 | void _pbcH_delete(struct heap *); 16 | void* _pbcH_alloc(struct heap *, int size); 17 | 18 | #define HMALLOC(size) ((h) ? _pbcH_alloc(h, size) : _pbcM_malloc(size)) 19 | 20 | #define malloc _pbcM_malloc 21 | #define free _pbcM_free 22 | #define realloc _pbcM_realloc 23 | #define memory _pbcM_memory 24 | 25 | #ifdef _WIN32 26 | 27 | #include 28 | 29 | #endif 30 | 31 | #ifdef _MSC_VER 32 | 33 | #define alloca _alloca 34 | 35 | #endif 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /LibsTestProj/WebGLPlugins/array.h: -------------------------------------------------------------------------------- 1 | #ifndef PROTOBUF_C_ARRAY_H 2 | #define PROTOBUF_C_ARRAY_H 3 | 4 | #include "varint.h" 5 | #include "pbc.h" 6 | #include "alloc.h" 7 | 8 | typedef union _pbc_var { 9 | struct longlong integer; 10 | double real; 11 | struct { 12 | const char * str; 13 | int len; 14 | } s; 15 | struct { 16 | int id; 17 | const char * name; 18 | } e; 19 | struct pbc_slice m; 20 | void * p[2]; 21 | } pbc_var[1]; 22 | 23 | void _pbcA_open(pbc_array); 24 | void _pbcA_open_heap(pbc_array, struct heap *h); 25 | void _pbcA_close(pbc_array); 26 | 27 | void _pbcA_push(pbc_array, pbc_var var); 28 | void _pbcA_index(pbc_array , int idx, pbc_var var); 29 | void * _pbcA_index_p(pbc_array _array, int idx); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /LibsTestProj/WebGLPlugins/bootstrap.h: -------------------------------------------------------------------------------- 1 | #ifndef PROTOBUF_C_BOOTSTRAP_H 2 | #define PROTOBUF_C_BOOTSTRAP_H 3 | 4 | #include "proto.h" 5 | #include "pbc.h" 6 | 7 | void _pbcB_init(struct pbc_env *); 8 | void _pbcB_register_fields(struct pbc_env *, pbc_array queue); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /LibsTestProj/WebGLPlugins/lapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lapi.h,v 2.9 2015/03/06 19:49:50 roberto Exp $ 3 | ** Auxiliary functions from Lua API 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lapi_h 8 | #define lapi_h 9 | 10 | 11 | #include "llimits.h" 12 | #include "lstate.h" 13 | 14 | #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \ 15 | "stack overflow");} 16 | 17 | #define adjustresults(L,nres) \ 18 | { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; } 19 | 20 | #define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \ 21 | "not enough elements in the stack") 22 | 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /LibsTestProj/WebGLPlugins/lpcap.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lpcap.h,v 1.1 2013/03/21 20:25:12 roberto Exp $ 3 | */ 4 | 5 | #if !defined(lpcap_h) 6 | #define lpcap_h 7 | 8 | 9 | #include "lptypes.h" 10 | 11 | 12 | /* kinds of captures */ 13 | typedef enum CapKind { 14 | Cclose, Cposition, Cconst, Cbackref, Carg, Csimple, Ctable, Cfunction, 15 | Cquery, Cstring, Cnum, Csubst, Cfold, Cruntime, Cgroup 16 | } CapKind; 17 | 18 | 19 | typedef struct Capture { 20 | const char *s; /* subject position */ 21 | short idx; /* extra info about capture (group name, arg index, etc.) */ 22 | byte kind; /* kind of capture */ 23 | byte siz; /* size of full capture + 1 (0 = not a full capture) */ 24 | } Capture; 25 | 26 | 27 | typedef struct CapState { 28 | Capture *cap; /* current capture */ 29 | Capture *ocap; /* (original) capture list */ 30 | lua_State *L; 31 | int ptop; /* index of last argument to 'match' */ 32 | const char *s; /* original string */ 33 | int valuecached; /* value stored in cache slot */ 34 | } CapState; 35 | 36 | 37 | int runtimecap (CapState *cs, Capture *close, const char *s, int *rem); 38 | int getcaptures (lua_State *L, const char *s, const char *r, int ptop); 39 | int finddyncap (Capture *cap, Capture *last); 40 | 41 | #endif 42 | 43 | 44 | -------------------------------------------------------------------------------- /LibsTestProj/WebGLPlugins/lpcode.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lpcode.h,v 1.5 2013/04/04 21:24:45 roberto Exp $ 3 | */ 4 | 5 | #if !defined(lpcode_h) 6 | #define lpcode_h 7 | 8 | #include "lua.h" 9 | 10 | #include "lptypes.h" 11 | #include "lptree.h" 12 | #include "lpvm.h" 13 | 14 | int tocharset (TTree *tree, Charset *cs); 15 | int checkaux (TTree *tree, int pred); 16 | int fixedlenx (TTree *tree, int count, int len); 17 | int hascaptures (TTree *tree); 18 | int lp_gc (lua_State *L); 19 | Instruction *compile (lua_State *L, Pattern *p); 20 | void reallocprog (lua_State *L, Pattern *p, int nsize); 21 | int sizei (const Instruction *i); 22 | 23 | 24 | #define PEnullable 0 25 | #define PEnofail 1 26 | 27 | #define nofail(t) checkaux(t, PEnofail) 28 | #define nullable(t) checkaux(t, PEnullable) 29 | 30 | #define fixedlen(t) fixedlenx(t, 0, 0) 31 | 32 | 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /LibsTestProj/WebGLPlugins/lpprint.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lpprint.h,v 1.1 2013/03/21 20:25:12 roberto Exp $ 3 | */ 4 | 5 | 6 | #if !defined(lpprint_h) 7 | #define lpprint_h 8 | 9 | 10 | #include "lptree.h" 11 | #include "lpvm.h" 12 | 13 | 14 | #if defined(LPEG_DEBUG) 15 | 16 | void printpatt (Instruction *p, int n); 17 | void printtree (TTree *tree, int ident); 18 | void printktable (lua_State *L, int idx); 19 | void printcharset (const byte *st); 20 | void printcaplist (Capture *cap, Capture *limit); 21 | 22 | #else 23 | 24 | #define printktable(L,idx) \ 25 | luaL_error(L, "function only implemented in debug mode") 26 | #define printtree(tree,i) \ 27 | luaL_error(L, "function only implemented in debug mode") 28 | #define printpatt(p,n) \ 29 | luaL_error(L, "function only implemented in debug mode") 30 | 31 | #endif 32 | 33 | 34 | #endif 35 | 36 | -------------------------------------------------------------------------------- /LibsTestProj/WebGLPlugins/lprefix.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lprefix.h,v 1.2 2014/12/29 16:54:13 roberto Exp $ 3 | ** Definitions for Lua code that must come before any other header file 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lprefix_h 8 | #define lprefix_h 9 | 10 | 11 | /* 12 | ** Allows POSIX/XSI stuff 13 | */ 14 | #if !defined(LUA_USE_C89) /* { */ 15 | 16 | #if !defined(_XOPEN_SOURCE) 17 | #define _XOPEN_SOURCE 600 18 | #elif _XOPEN_SOURCE == 0 19 | #undef _XOPEN_SOURCE /* use -D_XOPEN_SOURCE=0 to undefine it */ 20 | #endif 21 | 22 | /* 23 | ** Allows manipulation of large files in gcc and some other compilers 24 | */ 25 | #if !defined(LUA_32BITS) && !defined(_FILE_OFFSET_BITS) 26 | #define _LARGEFILE_SOURCE 1 27 | #define _FILE_OFFSET_BITS 64 28 | #endif 29 | 30 | #endif /* } */ 31 | 32 | 33 | /* 34 | ** Windows stuff 35 | */ 36 | #if defined(_WIN32) /* { */ 37 | 38 | #if !defined(_CRT_SECURE_NO_WARNINGS) 39 | #define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ISO C functions */ 40 | #endif 41 | 42 | #endif /* } */ 43 | 44 | #endif 45 | 46 | -------------------------------------------------------------------------------- /LibsTestProj/WebGLPlugins/lua.hpp: -------------------------------------------------------------------------------- 1 | // lua.hpp 2 | // Lua header files for C++ 3 | // <> not supplied automatically because Lua also compiles as C++ 4 | 5 | extern "C" { 6 | #include "lua.h" 7 | #include "lualib.h" 8 | #include "lauxlib.h" 9 | } 10 | -------------------------------------------------------------------------------- /LibsTestProj/WebGLPlugins/lundump.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lundump.h,v 1.45 2015/09/08 15:41:05 roberto Exp $ 3 | ** load precompiled Lua chunks 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lundump_h 8 | #define lundump_h 9 | 10 | #include "llimits.h" 11 | #include "lobject.h" 12 | #include "lzio.h" 13 | 14 | 15 | /* data to catch conversion errors */ 16 | #define LUAC_DATA "\x19\x93\r\n\x1a\n" 17 | 18 | #define LUAC_INT 0x5678 19 | #define LUAC_NUM cast_num(370.5) 20 | 21 | #define MYINT(s) (s[0]-'0') 22 | #define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR)) 23 | #define LUAC_FORMAT 0 /* this is the official format */ 24 | 25 | /* load one chunk; from lundump.c */ 26 | LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name); 27 | 28 | /* dump one chunk; from ldump.c */ 29 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, 30 | void* data, int strip); 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /LibsTestProj/WebGLPlugins/map.h: -------------------------------------------------------------------------------- 1 | #ifndef PROTOBUF_C_MAP_H 2 | #define PROTOBUF_C_MAP_H 3 | 4 | #include "alloc.h" 5 | 6 | struct map_ip; 7 | struct map_si; 8 | struct map_sp; 9 | 10 | struct map_kv { 11 | int id; 12 | void *pointer; 13 | }; 14 | 15 | struct map_si * _pbcM_si_new(struct map_kv * table, int size); 16 | int _pbcM_si_query(struct map_si *map, const char *key, int *result); 17 | void _pbcM_si_delete(struct map_si *map); 18 | 19 | struct map_ip * _pbcM_ip_new(struct map_kv * table, int size); 20 | struct map_ip * _pbcM_ip_combine(struct map_ip * a, struct map_ip * b); 21 | void * _pbcM_ip_query(struct map_ip * map, int id); 22 | void _pbcM_ip_delete(struct map_ip *map); 23 | 24 | struct map_sp * _pbcM_sp_new(int max, struct heap *h); 25 | void _pbcM_sp_insert(struct map_sp *map, const char *key, void * value); 26 | void * _pbcM_sp_query(struct map_sp *map, const char *key); 27 | void ** _pbcM_sp_query_insert(struct map_sp *map, const char *key); 28 | void _pbcM_sp_delete(struct map_sp *map); 29 | void _pbcM_sp_foreach(struct map_sp *map, void (*func)(void *p)); 30 | void _pbcM_sp_foreach_ud(struct map_sp *map, void (*func)(void *p, void *ud), void *ud); 31 | void * _pbcM_sp_next(struct map_sp *map, const char ** key); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /LibsTestProj/WebGLPlugins/pattern.h: -------------------------------------------------------------------------------- 1 | #ifndef PROTOBUF_C_PATTERN_H 2 | #define PROTOBUF_C_PATTERN_H 3 | 4 | #include "pbc.h" 5 | #include "context.h" 6 | #include "array.h" 7 | 8 | struct _pattern_field { 9 | int id; 10 | int offset; 11 | int ptype; 12 | int ctype; 13 | int label; 14 | pbc_var defv; 15 | }; 16 | 17 | struct pbc_pattern { 18 | struct pbc_env * env; 19 | int count; 20 | struct _pattern_field f[1]; 21 | }; 22 | 23 | struct pbc_pattern * _pbcP_new(struct pbc_env * env, int n); 24 | int _pbcP_unpack_packed(uint8_t *buffer, int size, int ptype, pbc_array array); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /LibsTestProj/WebGLPlugins/stringpool.h: -------------------------------------------------------------------------------- 1 | #ifndef PROTOBUF_C_STRINGPOOL_H 2 | #define PROTOBUF_C_STRINGPOOL_H 3 | 4 | struct _stringpool; 5 | 6 | struct _stringpool * _pbcS_new(void); 7 | void _pbcS_delete(struct _stringpool *pool); 8 | const char * _pbcS_build(struct _stringpool *pool, const char * str , int sz); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /LibsTestProj/WebGLPlugins/varint.h: -------------------------------------------------------------------------------- 1 | #ifndef PROTOBUF_C_VARINT_H 2 | #define PROTOBUF_C_VARINT_H 3 | 4 | #include 5 | 6 | struct longlong { 7 | uint32_t low; 8 | uint32_t hi; 9 | }; 10 | 11 | int _pbcV_encode32(uint32_t number, uint8_t buffer[10]); 12 | int _pbcV_encode(uint64_t number, uint8_t buffer[10]); 13 | int _pbcV_zigzag32(int32_t number, uint8_t buffer[10]); 14 | int _pbcV_zigzag(int64_t number, uint8_t buffer[10]); 15 | 16 | int _pbcV_decode(uint8_t buffer[10], struct longlong *result); 17 | void _pbcV_dezigzag64(struct longlong *r); 18 | void _pbcV_dezigzag32(struct longlong *r); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /build/lpeg/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright (C) 2011-2012 LuaDist. 2 | # Created by Peter Kapec 3 | # Redistribution and use of this file is allowed according to the terms of the MIT license. 4 | # For details see the COPYRIGHT file distributed with LuaDist. 5 | # Please note that the package source code is licensed under its own license. 6 | 7 | project ( lpeg C ) 8 | cmake_minimum_required ( VERSION 2.8 ) 9 | include ( cmake/dist.cmake ) 10 | include ( lua ) 11 | 12 | install_lua_module ( lpeg lpvm.c lpcap.c lptree.c lpcode.c lpprint.c lpeg.def ) 13 | install_lua_module ( re re.lua ) 14 | install_doc ( lpeg.html re.html lpeg-128.gif ) 15 | install_data ( HISTORY ) 16 | install_test ( test.lua ) 17 | 18 | # for tests 19 | file ( WRITE "${CMAKE_CURRENT_BINARY_DIR}/strict.lua" "" ) 20 | add_lua_module ( strict ${CMAKE_CURRENT_BINARY_DIR}/strict.lua ) 21 | 22 | add_lua_test ( test.lua ) 23 | -------------------------------------------------------------------------------- /build/lpeg/dist.info: -------------------------------------------------------------------------------- 1 | --- This file is part of LuaDist project 2 | 3 | name = "lpeg" 4 | version = "0.12" 5 | 6 | desc = "Parsing Expression Grammars For Lua" 7 | author = "Roberto Ierusalimschy" 8 | license = "MIT/X11" 9 | url = "http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html" 10 | maintainer = "Peter Kapec" 11 | 12 | depends = { 13 | "lua >= 5.1" 14 | } 15 | -------------------------------------------------------------------------------- /build/lpeg/lpcap.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lpcap.h,v 1.1 2013/03/21 20:25:12 roberto Exp $ 3 | */ 4 | 5 | #if !defined(lpcap_h) 6 | #define lpcap_h 7 | 8 | 9 | #include "lptypes.h" 10 | 11 | 12 | /* kinds of captures */ 13 | typedef enum CapKind { 14 | Cclose, Cposition, Cconst, Cbackref, Carg, Csimple, Ctable, Cfunction, 15 | Cquery, Cstring, Cnum, Csubst, Cfold, Cruntime, Cgroup 16 | } CapKind; 17 | 18 | 19 | typedef struct Capture { 20 | const char *s; /* subject position */ 21 | short idx; /* extra info about capture (group name, arg index, etc.) */ 22 | byte kind; /* kind of capture */ 23 | byte siz; /* size of full capture + 1 (0 = not a full capture) */ 24 | } Capture; 25 | 26 | 27 | typedef struct CapState { 28 | Capture *cap; /* current capture */ 29 | Capture *ocap; /* (original) capture list */ 30 | lua_State *L; 31 | int ptop; /* index of last argument to 'match' */ 32 | const char *s; /* original string */ 33 | int valuecached; /* value stored in cache slot */ 34 | } CapState; 35 | 36 | 37 | int runtimecap (CapState *cs, Capture *close, const char *s, int *rem); 38 | int getcaptures (lua_State *L, const char *s, const char *r, int ptop); 39 | int finddyncap (Capture *cap, Capture *last); 40 | 41 | #endif 42 | 43 | 44 | -------------------------------------------------------------------------------- /build/lpeg/lpcode.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lpcode.h,v 1.5 2013/04/04 21:24:45 roberto Exp $ 3 | */ 4 | 5 | #if !defined(lpcode_h) 6 | #define lpcode_h 7 | 8 | #include "lua.h" 9 | 10 | #include "lptypes.h" 11 | #include "lptree.h" 12 | #include "lpvm.h" 13 | 14 | int tocharset (TTree *tree, Charset *cs); 15 | int checkaux (TTree *tree, int pred); 16 | int fixedlenx (TTree *tree, int count, int len); 17 | int hascaptures (TTree *tree); 18 | int lp_gc (lua_State *L); 19 | Instruction *compile (lua_State *L, Pattern *p); 20 | void reallocprog (lua_State *L, Pattern *p, int nsize); 21 | int sizei (const Instruction *i); 22 | 23 | 24 | #define PEnullable 0 25 | #define PEnofail 1 26 | 27 | #define nofail(t) checkaux(t, PEnofail) 28 | #define nullable(t) checkaux(t, PEnullable) 29 | 30 | #define fixedlen(t) fixedlenx(t, 0, 0) 31 | 32 | 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /build/lpeg/lpeg-128.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/lpeg/lpeg-128.gif -------------------------------------------------------------------------------- /build/lpeg/lpeg.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | luaopen_lpeg -------------------------------------------------------------------------------- /build/lpeg/lpprint.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lpprint.h,v 1.1 2013/03/21 20:25:12 roberto Exp $ 3 | */ 4 | 5 | 6 | #if !defined(lpprint_h) 7 | #define lpprint_h 8 | 9 | 10 | #include "lptree.h" 11 | #include "lpvm.h" 12 | 13 | 14 | #if defined(LPEG_DEBUG) 15 | 16 | void printpatt (Instruction *p, int n); 17 | void printtree (TTree *tree, int ident); 18 | void printktable (lua_State *L, int idx); 19 | void printcharset (const byte *st); 20 | void printcaplist (Capture *cap, Capture *limit); 21 | 22 | #else 23 | 24 | #define printktable(L,idx) \ 25 | luaL_error(L, "function only implemented in debug mode") 26 | #define printtree(tree,i) \ 27 | luaL_error(L, "function only implemented in debug mode") 28 | #define printpatt(p,n) \ 29 | luaL_error(L, "function only implemented in debug mode") 30 | 31 | #endif 32 | 33 | 34 | #endif 35 | 36 | -------------------------------------------------------------------------------- /build/lua-5.1.5/doc/cover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/lua-5.1.5/doc/cover.png -------------------------------------------------------------------------------- /build/lua-5.1.5/doc/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/lua-5.1.5/doc/logo.gif -------------------------------------------------------------------------------- /build/lua-5.1.5/doc/manual.css: -------------------------------------------------------------------------------- 1 | h3 code { 2 | font-family: inherit ; 3 | font-size: inherit ; 4 | } 5 | 6 | pre, code { 7 | font-size: 12pt ; 8 | } 9 | 10 | span.apii { 11 | float: right ; 12 | font-family: inherit ; 13 | font-style: normal ; 14 | font-size: small ; 15 | color: gray ; 16 | } 17 | 18 | p+h1, ul+h1 { 19 | padding-top: 0.4em ; 20 | padding-bottom: 0.4em ; 21 | padding-left: 30px ; 22 | margin-left: -30px ; 23 | background-color: #E0E0FF ; 24 | } 25 | -------------------------------------------------------------------------------- /build/lua-5.1.5/doc/readme.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Lua documentation 4 | 5 | 6 | 7 | 8 | 9 |
10 |

11 | Lua 12 | Documentation 13 |

14 | 15 | This is the documentation included in the source distribution of Lua 5.1.5. 16 | 17 | 25 | 26 | Lua's 27 | official web site 28 | contains updated documentation, 29 | especially the 30 | reference manual. 31 |

32 | 33 |


34 | 35 | Last update: 36 | Fri Feb 3 09:44:42 BRST 2012 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/Makefile: -------------------------------------------------------------------------------- 1 | # makefile for Lua etc 2 | 3 | TOP= .. 4 | LIB= $(TOP)/src 5 | INC= $(TOP)/src 6 | BIN= $(TOP)/src 7 | SRC= $(TOP)/src 8 | TST= $(TOP)/test 9 | 10 | CC= gcc 11 | CFLAGS= -O2 -Wall -I$(INC) $(MYCFLAGS) 12 | MYCFLAGS= 13 | MYLDFLAGS= -Wl,-E 14 | MYLIBS= -lm 15 | #MYLIBS= -lm -Wl,-E -ldl -lreadline -lhistory -lncurses 16 | RM= rm -f 17 | 18 | default: 19 | @echo 'Please choose a target: min noparser one strict clean' 20 | 21 | min: min.c 22 | $(CC) $(CFLAGS) $@.c -L$(LIB) -llua $(MYLIBS) 23 | echo 'print"Hello there!"' | ./a.out 24 | 25 | noparser: noparser.o 26 | $(CC) noparser.o $(SRC)/lua.o -L$(LIB) -llua $(MYLIBS) 27 | $(BIN)/luac $(TST)/hello.lua 28 | -./a.out luac.out 29 | -./a.out -e'a=1' 30 | 31 | one: 32 | $(CC) $(CFLAGS) all.c $(MYLIBS) 33 | ./a.out $(TST)/hello.lua 34 | 35 | strict: 36 | -$(BIN)/lua -e 'print(a);b=2' 37 | -$(BIN)/lua -lstrict -e 'print(a)' 38 | -$(BIN)/lua -e 'function f() b=2 end f()' 39 | -$(BIN)/lua -lstrict -e 'function f() b=2 end f()' 40 | 41 | clean: 42 | $(RM) a.out core core.* *.o luac.out 43 | 44 | .PHONY: default min noparser one strict clean 45 | -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/README: -------------------------------------------------------------------------------- 1 | This directory contains some useful files and code. 2 | Unlike the code in ../src, everything here is in the public domain. 3 | 4 | If any of the makes fail, you're probably not using the same libraries 5 | used to build Lua. Set MYLIBS in Makefile accordingly. 6 | 7 | all.c 8 | Full Lua interpreter in a single file. 9 | Do "make one" for a demo. 10 | 11 | lua.hpp 12 | Lua header files for C++ using 'extern "C"'. 13 | 14 | lua.ico 15 | A Lua icon for Windows (and web sites: save as favicon.ico). 16 | Drawn by hand by Markus Gritsch . 17 | 18 | lua.pc 19 | pkg-config data for Lua 20 | 21 | luavs.bat 22 | Script to build Lua under "Visual Studio .NET Command Prompt". 23 | Run it from the toplevel as etc\luavs.bat. 24 | 25 | min.c 26 | A minimal Lua interpreter. 27 | Good for learning and for starting your own. 28 | Do "make min" for a demo. 29 | 30 | noparser.c 31 | Linking with noparser.o avoids loading the parsing modules in lualib.a. 32 | Do "make noparser" for a demo. 33 | 34 | strict.lua 35 | Traps uses of undeclared global variables. 36 | Do "make strict" for a demo. 37 | 38 | -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/all.c: -------------------------------------------------------------------------------- 1 | /* 2 | * all.c -- Lua core, libraries and interpreter in a single file 3 | */ 4 | 5 | #define luaall_c 6 | 7 | #include "lapi.c" 8 | #include "lcode.c" 9 | #include "ldebug.c" 10 | #include "ldo.c" 11 | #include "ldump.c" 12 | #include "lfunc.c" 13 | #include "lgc.c" 14 | #include "llex.c" 15 | #include "lmem.c" 16 | #include "lobject.c" 17 | #include "lopcodes.c" 18 | #include "lparser.c" 19 | #include "lstate.c" 20 | #include "lstring.c" 21 | #include "ltable.c" 22 | #include "ltm.c" 23 | #include "lundump.c" 24 | #include "lvm.c" 25 | #include "lzio.c" 26 | 27 | #include "lauxlib.c" 28 | #include "lbaselib.c" 29 | #include "ldblib.c" 30 | #include "liolib.c" 31 | #include "linit.c" 32 | #include "lmathlib.c" 33 | #include "loadlib.c" 34 | #include "loslib.c" 35 | #include "lstrlib.c" 36 | #include "ltablib.c" 37 | 38 | #include "lua.c" 39 | -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/lua.hpp: -------------------------------------------------------------------------------- 1 | // lua.hpp 2 | // Lua header files for C++ 3 | // <> not supplied automatically because Lua also compiles as C++ 4 | 5 | extern "C" { 6 | #include "lua.h" 7 | #include "lualib.h" 8 | #include "lauxlib.h" 9 | } 10 | -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/lua.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/lua-5.1.5/etc/lua.ico -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/lua.pc: -------------------------------------------------------------------------------- 1 | # lua.pc -- pkg-config data for Lua 2 | 3 | # vars from install Makefile 4 | 5 | # grep '^V=' ../Makefile 6 | V= 5.1 7 | # grep '^R=' ../Makefile 8 | R= 5.1.5 9 | 10 | # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/' 11 | prefix= /usr/local 12 | INSTALL_BIN= ${prefix}/bin 13 | INSTALL_INC= ${prefix}/include 14 | INSTALL_LIB= ${prefix}/lib 15 | INSTALL_MAN= ${prefix}/man/man1 16 | INSTALL_LMOD= ${prefix}/share/lua/${V} 17 | INSTALL_CMOD= ${prefix}/lib/lua/${V} 18 | 19 | # canonical vars 20 | exec_prefix=${prefix} 21 | libdir=${exec_prefix}/lib 22 | includedir=${prefix}/include 23 | 24 | Name: Lua 25 | Description: An Extensible Extension Language 26 | Version: ${R} 27 | Requires: 28 | Libs: -L${libdir} -llua -lm 29 | Cflags: -I${includedir} 30 | 31 | # (end of lua.pc) 32 | -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/luavs.bat: -------------------------------------------------------------------------------- 1 | @rem Script to build Lua under "Visual Studio .NET Command Prompt". 2 | @rem Do not run from this directory; run it from the toplevel: etc\luavs.bat . 3 | @rem It creates lua51.dll, lua51.lib, lua.exe, and luac.exe in src. 4 | @rem (contributed by David Manura and Mike Pall) 5 | 6 | @setlocal 7 | @set MYCOMPILE=cl /nologo /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE 8 | @set MYLINK=link /nologo 9 | @set MYMT=mt /nologo 10 | 11 | cd src 12 | %MYCOMPILE% /DLUA_BUILD_AS_DLL l*.c 13 | del lua.obj luac.obj 14 | %MYLINK% /DLL /out:lua51.dll l*.obj 15 | if exist lua51.dll.manifest^ 16 | %MYMT% -manifest lua51.dll.manifest -outputresource:lua51.dll;2 17 | %MYCOMPILE% /DLUA_BUILD_AS_DLL lua.c 18 | %MYLINK% /out:lua.exe lua.obj lua51.lib 19 | if exist lua.exe.manifest^ 20 | %MYMT% -manifest lua.exe.manifest -outputresource:lua.exe 21 | %MYCOMPILE% l*.c print.c 22 | del lua.obj linit.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj^ 23 | loslib.obj ltablib.obj lstrlib.obj loadlib.obj 24 | %MYLINK% /out:luac.exe *.obj 25 | if exist luac.exe.manifest^ 26 | %MYMT% -manifest luac.exe.manifest -outputresource:luac.exe 27 | del *.obj *.manifest 28 | cd .. 29 | -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/min.c: -------------------------------------------------------------------------------- 1 | /* 2 | * min.c -- a minimal Lua interpreter 3 | * loads stdin only with minimal error handling. 4 | * no interaction, and no standard library, only a "print" function. 5 | */ 6 | 7 | #include 8 | 9 | #include "lua.h" 10 | #include "lauxlib.h" 11 | 12 | static int print(lua_State *L) 13 | { 14 | int n=lua_gettop(L); 15 | int i; 16 | for (i=1; i<=n; i++) 17 | { 18 | if (i>1) printf("\t"); 19 | if (lua_isstring(L,i)) 20 | printf("%s",lua_tostring(L,i)); 21 | else if (lua_isnil(L,i)) 22 | printf("%s","nil"); 23 | else if (lua_isboolean(L,i)) 24 | printf("%s",lua_toboolean(L,i) ? "true" : "false"); 25 | else 26 | printf("%s:%p",luaL_typename(L,i),lua_topointer(L,i)); 27 | } 28 | printf("\n"); 29 | return 0; 30 | } 31 | 32 | int main(void) 33 | { 34 | lua_State *L=lua_open(); 35 | lua_register(L,"print",print); 36 | if (luaL_dofile(L,NULL)!=0) fprintf(stderr,"%s\n",lua_tostring(L,-1)); 37 | lua_close(L); 38 | return 0; 39 | } 40 | -------------------------------------------------------------------------------- /build/lua-5.1.5/etc/strict.lua: -------------------------------------------------------------------------------- 1 | -- 2 | -- strict.lua 3 | -- checks uses of undeclared global variables 4 | -- All global variables must be 'declared' through a regular assignment 5 | -- (even assigning nil will do) in a main chunk before being used 6 | -- anywhere or assigned to inside a function. 7 | -- 8 | 9 | local getinfo, error, rawset, rawget = debug.getinfo, error, rawset, rawget 10 | 11 | local mt = getmetatable(_G) 12 | if mt == nil then 13 | mt = {} 14 | setmetatable(_G, mt) 15 | end 16 | 17 | mt.__declared = {} 18 | 19 | local function what () 20 | local d = getinfo(3, "S") 21 | return d and d.what or "C" 22 | end 23 | 24 | mt.__newindex = function (t, n, v) 25 | if not mt.__declared[n] then 26 | local w = what() 27 | if w ~= "main" and w ~= "C" then 28 | error("assign to undeclared variable '"..n.."'", 2) 29 | end 30 | mt.__declared[n] = true 31 | end 32 | rawset(t, n, v) 33 | end 34 | 35 | mt.__index = function (t, n) 36 | if not mt.__declared[n] and what() ~= "C" then 37 | error("variable '"..n.."' is not declared", 2) 38 | end 39 | return rawget(t, n) 40 | end 41 | 42 | -------------------------------------------------------------------------------- /build/lua-5.1.5/src/lapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lapi.h,v 2.2.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** Auxiliary functions from Lua API 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lapi_h 8 | #define lapi_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | LUAI_FUNC void luaA_pushobject (lua_State *L, const TValue *o); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /build/lua-5.1.5/src/ldebug.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ldebug.h,v 2.3.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** Auxiliary functions from Debug Interface module 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ldebug_h 8 | #define ldebug_h 9 | 10 | 11 | #include "lstate.h" 12 | 13 | 14 | #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) 15 | 16 | #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) 17 | 18 | #define resethookcount(L) (L->hookcount = L->basehookcount) 19 | 20 | 21 | LUAI_FUNC void luaG_typeerror (lua_State *L, const TValue *o, 22 | const char *opname); 23 | LUAI_FUNC void luaG_concaterror (lua_State *L, StkId p1, StkId p2); 24 | LUAI_FUNC void luaG_aritherror (lua_State *L, const TValue *p1, 25 | const TValue *p2); 26 | LUAI_FUNC int luaG_ordererror (lua_State *L, const TValue *p1, 27 | const TValue *p2); 28 | LUAI_FUNC void luaG_runerror (lua_State *L, const char *fmt, ...); 29 | LUAI_FUNC void luaG_errormsg (lua_State *L); 30 | LUAI_FUNC int luaG_checkcode (const Proto *pt); 31 | LUAI_FUNC int luaG_checkopenop (Instruction i); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /build/lua-5.1.5/src/lfunc.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lfunc.h,v 2.4.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** Auxiliary functions to manipulate prototypes and closures 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lfunc_h 8 | #define lfunc_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ 15 | cast(int, sizeof(TValue)*((n)-1))) 16 | 17 | #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ 18 | cast(int, sizeof(TValue *)*((n)-1))) 19 | 20 | 21 | LUAI_FUNC Proto *luaF_newproto (lua_State *L); 22 | LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems, Table *e); 23 | LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems, Table *e); 24 | LUAI_FUNC UpVal *luaF_newupval (lua_State *L); 25 | LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level); 26 | LUAI_FUNC void luaF_close (lua_State *L, StkId level); 27 | LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f); 28 | LUAI_FUNC void luaF_freeclosure (lua_State *L, Closure *c); 29 | LUAI_FUNC void luaF_freeupval (lua_State *L, UpVal *uv); 30 | LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number, 31 | int pc); 32 | 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /build/lua-5.1.5/src/linit.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: linit.c,v 1.14.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** Initialization of libraries for lua.c 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #define linit_c 9 | #define LUA_LIB 10 | 11 | #include "lua.h" 12 | 13 | #include "lualib.h" 14 | #include "lauxlib.h" 15 | 16 | 17 | static const luaL_Reg lualibs[] = { 18 | {"", luaopen_base}, 19 | {LUA_LOADLIBNAME, luaopen_package}, 20 | {LUA_TABLIBNAME, luaopen_table}, 21 | {LUA_IOLIBNAME, luaopen_io}, 22 | {LUA_OSLIBNAME, luaopen_os}, 23 | {LUA_STRLIBNAME, luaopen_string}, 24 | {LUA_MATHLIBNAME, luaopen_math}, 25 | {LUA_DBLIBNAME, luaopen_debug}, 26 | {NULL, NULL} 27 | }; 28 | 29 | 30 | LUALIB_API void luaL_openlibs (lua_State *L) { 31 | const luaL_Reg *lib = lualibs; 32 | for (; lib->func; lib++) { 33 | lua_pushcfunction(L, lib->func); 34 | lua_pushstring(L, lib->name); 35 | lua_call(L, 1, 0); 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /build/lua-5.1.5/src/lstring.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lstring.h,v 1.43.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** String table (keep all strings handled by Lua) 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lstring_h 8 | #define lstring_h 9 | 10 | 11 | #include "lgc.h" 12 | #include "lobject.h" 13 | #include "lstate.h" 14 | 15 | 16 | #define sizestring(s) (sizeof(union TString)+((s)->len+1)*sizeof(char)) 17 | 18 | #define sizeudata(u) (sizeof(union Udata)+(u)->len) 19 | 20 | #define luaS_new(L, s) (luaS_newlstr(L, s, strlen(s))) 21 | #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ 22 | (sizeof(s)/sizeof(char))-1)) 23 | 24 | #define luaS_fix(s) l_setbit((s)->tsv.marked, FIXEDBIT) 25 | 26 | LUAI_FUNC void luaS_resize (lua_State *L, int newsize); 27 | LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e); 28 | LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); 29 | 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /build/lua-5.1.5/src/ltm.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ltm.h,v 2.6.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** Tag methods 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ltm_h 8 | #define ltm_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | /* 15 | * WARNING: if you change the order of this enumeration, 16 | * grep "ORDER TM" 17 | */ 18 | typedef enum { 19 | TM_INDEX, 20 | TM_NEWINDEX, 21 | TM_GC, 22 | TM_MODE, 23 | TM_EQ, /* last tag method with `fast' access */ 24 | TM_ADD, 25 | TM_SUB, 26 | TM_MUL, 27 | TM_DIV, 28 | TM_MOD, 29 | TM_POW, 30 | TM_UNM, 31 | TM_LEN, 32 | TM_LT, 33 | TM_LE, 34 | TM_CONCAT, 35 | TM_CALL, 36 | TM_N /* number of elements in the enum */ 37 | } TMS; 38 | 39 | 40 | 41 | #define gfasttm(g,et,e) ((et) == NULL ? NULL : \ 42 | ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e])) 43 | 44 | #define fasttm(l,et,e) gfasttm(G(l), et, e) 45 | 46 | LUAI_DATA const char *const luaT_typenames[]; 47 | 48 | 49 | LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename); 50 | LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, 51 | TMS event); 52 | LUAI_FUNC void luaT_init (lua_State *L); 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /build/lua-5.1.5/src/lualib.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lualib.h,v 1.36.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** Lua standard libraries 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #ifndef lualib_h 9 | #define lualib_h 10 | 11 | #include "lua.h" 12 | 13 | 14 | /* Key to file-handle type */ 15 | #define LUA_FILEHANDLE "FILE*" 16 | 17 | 18 | #define LUA_COLIBNAME "coroutine" 19 | LUALIB_API int (luaopen_base) (lua_State *L); 20 | 21 | #define LUA_TABLIBNAME "table" 22 | LUALIB_API int (luaopen_table) (lua_State *L); 23 | 24 | #define LUA_IOLIBNAME "io" 25 | LUALIB_API int (luaopen_io) (lua_State *L); 26 | 27 | #define LUA_OSLIBNAME "os" 28 | LUALIB_API int (luaopen_os) (lua_State *L); 29 | 30 | #define LUA_STRLIBNAME "string" 31 | LUALIB_API int (luaopen_string) (lua_State *L); 32 | 33 | #define LUA_MATHLIBNAME "math" 34 | LUALIB_API int (luaopen_math) (lua_State *L); 35 | 36 | #define LUA_DBLIBNAME "debug" 37 | LUALIB_API int (luaopen_debug) (lua_State *L); 38 | 39 | #define LUA_LOADLIBNAME "package" 40 | LUALIB_API int (luaopen_package) (lua_State *L); 41 | 42 | 43 | /* open all previous libraries */ 44 | LUALIB_API void (luaL_openlibs) (lua_State *L); 45 | 46 | 47 | 48 | #ifndef lua_assert 49 | #define lua_assert(x) ((void)0) 50 | #endif 51 | 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /build/lua-5.1.5/src/lundump.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lundump.h,v 1.37.1.1 2007/12/27 13:02:25 roberto Exp $ 3 | ** load precompiled Lua chunks 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lundump_h 8 | #define lundump_h 9 | 10 | #include "lobject.h" 11 | #include "lzio.h" 12 | 13 | /* load one chunk; from lundump.c */ 14 | LUAI_FUNC Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name); 15 | 16 | /* make header; from lundump.c */ 17 | LUAI_FUNC void luaU_header (char* h); 18 | 19 | /* dump one chunk; from ldump.c */ 20 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); 21 | 22 | #ifdef luac_c 23 | /* print one chunk; from print.c */ 24 | LUAI_FUNC void luaU_print (const Proto* f, int full); 25 | #endif 26 | 27 | /* for header of binary files -- this is Lua 5.1 */ 28 | #define LUAC_VERSION 0x51 29 | 30 | /* for header of binary files -- this is the official format */ 31 | #define LUAC_FORMAT 0 32 | 33 | /* size of header of binary files */ 34 | #define LUAC_HEADERSIZE 12 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /build/lua-5.3.3/README: -------------------------------------------------------------------------------- 1 | 2 | This is Lua 5.3.3, released on 30 May 2016. 3 | 4 | For installation instructions, license details, and 5 | further information about Lua, see doc/readme.html. 6 | 7 | -------------------------------------------------------------------------------- /build/lua-5.3.3/cmake/FindReadline.cmake: -------------------------------------------------------------------------------- 1 | # - Try to find Readline 2 | # Once done this will define 3 | # READLINE_FOUND - System has readline 4 | # READLINE_INCLUDE_DIRS - The readline include directories 5 | # READLINE_LIBRARIES - The libraries needed to use readline 6 | # READLINE_DEFINITIONS - Compiler switches required for using readline 7 | 8 | find_package ( PkgConfig ) 9 | pkg_check_modules ( PC_READLINE QUIET readline ) 10 | set ( READLINE_DEFINITIONS ${PC_READLINE_CFLAGS_OTHER} ) 11 | 12 | find_path ( READLINE_INCLUDE_DIR readline/readline.h 13 | HINTS ${PC_READLINE_INCLUDEDIR} ${PC_READLINE_INCLUDE_DIRS} 14 | PATH_SUFFIXES readline ) 15 | 16 | find_library ( READLINE_LIBRARY NAMES readline 17 | HINTS ${PC_READLINE_LIBDIR} ${PC_READLINE_LIBRARY_DIRS} ) 18 | 19 | set ( READLINE_LIBRARIES ${READLINE_LIBRARY} ) 20 | set ( READLINE_INCLUDE_DIRS ${READLINE_INCLUDE_DIR} ) 21 | 22 | include ( FindPackageHandleStandardArgs ) 23 | # handle the QUIETLY and REQUIRED arguments and set READLINE_FOUND to TRUE 24 | # if all listed variables are TRUE 25 | find_package_handle_standard_args ( readline DEFAULT_MSG READLINE_LIBRARY READLINE_INCLUDE_DIR ) 26 | -------------------------------------------------------------------------------- /build/lua-5.3.3/dist.info: -------------------------------------------------------------------------------- 1 | --- This file is part of LuaDist project 2 | 3 | name = "lua" 4 | version = "5.3.2" 5 | 6 | desc = "Lua is a powerful, fast, light-weight, embeddable scripting language." 7 | author = "Roberto Ierusalimschy, Waldemar Celes, Luiz Henrique de Figueiredo" 8 | license = "MIT/X11" 9 | url = "http://www.lua.org" 10 | maintainer = "Peter Drahoš" 11 | 12 | -------------------------------------------------------------------------------- /build/lua-5.3.3/doc/index.css: -------------------------------------------------------------------------------- 1 | ul { 2 | list-style-type: none ; 3 | } 4 | 5 | ul.contents { 6 | padding: 0 ; 7 | } 8 | 9 | table { 10 | border: none ; 11 | border-spacing: 0 ; 12 | border-collapse: collapse ; 13 | } 14 | 15 | td { 16 | vertical-align: top ; 17 | padding: 0 ; 18 | text-align: left ; 19 | line-height: 1.25 ; 20 | width: 15% ; 21 | } 22 | -------------------------------------------------------------------------------- /build/lua-5.3.3/doc/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/lua-5.3.3/doc/logo.gif -------------------------------------------------------------------------------- /build/lua-5.3.3/doc/manual.css: -------------------------------------------------------------------------------- 1 | h3 code { 2 | font-family: inherit ; 3 | font-size: inherit ; 4 | } 5 | 6 | pre, code { 7 | font-size: 12pt ; 8 | } 9 | 10 | span.apii { 11 | color: gray ; 12 | float: right ; 13 | font-family: inherit ; 14 | font-style: normal ; 15 | font-size: small ; 16 | } 17 | 18 | h2:before { 19 | content: "" ; 20 | padding-right: 0em ; 21 | } 22 | -------------------------------------------------------------------------------- /build/lua-5.3.3/doc/osi-certified-72x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/lua-5.3.3/doc/osi-certified-72x60.png -------------------------------------------------------------------------------- /build/lua-5.3.3/etc/lua.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/lua-5.3.3/etc/lua.ico -------------------------------------------------------------------------------- /build/lua-5.3.3/etc/lua.pc: -------------------------------------------------------------------------------- 1 | # lua.pc -- pkg-config data for Lua 2 | 3 | # vars from install Makefile 4 | 5 | # grep '^V=' ../Makefile 6 | V= 5.1 7 | # grep '^R=' ../Makefile 8 | R= 5.1.5 9 | 10 | # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/' 11 | prefix= /usr/local 12 | INSTALL_BIN= ${prefix}/bin 13 | INSTALL_INC= ${prefix}/include 14 | INSTALL_LIB= ${prefix}/lib 15 | INSTALL_MAN= ${prefix}/man/man1 16 | INSTALL_LMOD= ${prefix}/share/lua/${V} 17 | INSTALL_CMOD= ${prefix}/lib/lua/${V} 18 | 19 | # canonical vars 20 | exec_prefix=${prefix} 21 | libdir=${exec_prefix}/lib 22 | includedir=${prefix}/include 23 | 24 | Name: Lua 25 | Description: An Extensible Extension Language 26 | Version: ${R} 27 | Requires: 28 | Libs: -L${libdir} -llua -lm 29 | Cflags: -I${includedir} 30 | 31 | # (end of lua.pc) 32 | -------------------------------------------------------------------------------- /build/lua-5.3.3/etc/lua_lang.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/lua-5.3.3/etc/lua_lang.ico -------------------------------------------------------------------------------- /build/lua-5.3.3/src/lapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lapi.h,v 2.9 2015/03/06 19:49:50 roberto Exp $ 3 | ** Auxiliary functions from Lua API 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lapi_h 8 | #define lapi_h 9 | 10 | 11 | #include "llimits.h" 12 | #include "lstate.h" 13 | 14 | #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \ 15 | "stack overflow");} 16 | 17 | #define adjustresults(L,nres) \ 18 | { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; } 19 | 20 | #define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \ 21 | "not enough elements in the stack") 22 | 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /build/lua-5.3.3/src/lprefix.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lprefix.h,v 1.2 2014/12/29 16:54:13 roberto Exp $ 3 | ** Definitions for Lua code that must come before any other header file 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lprefix_h 8 | #define lprefix_h 9 | 10 | 11 | /* 12 | ** Allows POSIX/XSI stuff 13 | */ 14 | #if !defined(LUA_USE_C89) /* { */ 15 | 16 | #if !defined(_XOPEN_SOURCE) 17 | #define _XOPEN_SOURCE 600 18 | #elif _XOPEN_SOURCE == 0 19 | #undef _XOPEN_SOURCE /* use -D_XOPEN_SOURCE=0 to undefine it */ 20 | #endif 21 | 22 | /* 23 | ** Allows manipulation of large files in gcc and some other compilers 24 | */ 25 | #if !defined(LUA_32BITS) && !defined(_FILE_OFFSET_BITS) 26 | #define _LARGEFILE_SOURCE 1 27 | #define _FILE_OFFSET_BITS 64 28 | #endif 29 | 30 | #endif /* } */ 31 | 32 | 33 | /* 34 | ** Windows stuff 35 | */ 36 | #if defined(_WIN32) /* { */ 37 | 38 | #if !defined(_CRT_SECURE_NO_WARNINGS) 39 | #define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ISO C functions */ 40 | #endif 41 | 42 | #endif /* } */ 43 | 44 | #endif 45 | 46 | -------------------------------------------------------------------------------- /build/lua-5.3.3/src/lua.hpp: -------------------------------------------------------------------------------- 1 | // lua.hpp 2 | // Lua header files for C++ 3 | // <> not supplied automatically because Lua also compiles as C++ 4 | 5 | extern "C" { 6 | #include "lua.h" 7 | #include "lualib.h" 8 | #include "lauxlib.h" 9 | } 10 | -------------------------------------------------------------------------------- /build/lua-5.3.3/src/lua.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/lua-5.3.3/src/lua.rc -------------------------------------------------------------------------------- /build/lua-5.3.3/src/luac.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/lua-5.3.3/src/luac.rc -------------------------------------------------------------------------------- /build/lua-5.3.3/src/lundump.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lundump.h,v 1.45 2015/09/08 15:41:05 roberto Exp $ 3 | ** load precompiled Lua chunks 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lundump_h 8 | #define lundump_h 9 | 10 | #include "llimits.h" 11 | #include "lobject.h" 12 | #include "lzio.h" 13 | 14 | 15 | /* data to catch conversion errors */ 16 | #define LUAC_DATA "\x19\x93\r\n\x1a\n" 17 | 18 | #define LUAC_INT 0x5678 19 | #define LUAC_NUM cast_num(370.5) 20 | 21 | #define MYINT(s) (s[0]-'0') 22 | #define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR)) 23 | #define LUAC_FORMAT 0 /* this is the official format */ 24 | 25 | /* load one chunk; from lundump.c */ 26 | LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name); 27 | 28 | /* dump one chunk; from ldump.c */ 29 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, 30 | void* data, int strip); 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /build/lua-5.3.3/src/wmain.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include /* declaration of __argc and __argv */ 3 | 4 | extern int main(int, char **); 5 | 6 | int PASCAL WinMain(HINSTANCE hinst, HINSTANCE hprev, LPSTR cmdline, int ncmdshow) 7 | { 8 | int rc; 9 | 10 | extern int __argc; /* this seems to work for all the compilers we tested, except Watcom compilers */ 11 | extern char** __argv; 12 | 13 | rc = main(__argc, __argv); 14 | 15 | return rc; 16 | } 17 | -------------------------------------------------------------------------------- /build/lua-5.3.4/README: -------------------------------------------------------------------------------- 1 | 2 | This is Lua 5.3.4, released on 12 Jan 2017. 3 | 4 | For installation instructions, license details, and 5 | further information about Lua, see doc/readme.html. 6 | 7 | -------------------------------------------------------------------------------- /build/lua-5.3.4/doc/index.css: -------------------------------------------------------------------------------- 1 | ul { 2 | list-style-type: none ; 3 | } 4 | 5 | ul.contents { 6 | padding: 0 ; 7 | } 8 | 9 | table { 10 | border: none ; 11 | border-spacing: 0 ; 12 | border-collapse: collapse ; 13 | } 14 | 15 | td { 16 | vertical-align: top ; 17 | padding: 0 ; 18 | text-align: left ; 19 | line-height: 1.25 ; 20 | width: 15% ; 21 | } 22 | -------------------------------------------------------------------------------- /build/lua-5.3.4/doc/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/lua-5.3.4/doc/logo.gif -------------------------------------------------------------------------------- /build/lua-5.3.4/doc/manual.css: -------------------------------------------------------------------------------- 1 | h3 code { 2 | font-family: inherit ; 3 | font-size: inherit ; 4 | } 5 | 6 | pre, code { 7 | font-size: 12pt ; 8 | } 9 | 10 | span.apii { 11 | color: gray ; 12 | float: right ; 13 | font-family: inherit ; 14 | font-style: normal ; 15 | font-size: small ; 16 | } 17 | 18 | h2:before { 19 | content: "" ; 20 | padding-right: 0em ; 21 | } 22 | -------------------------------------------------------------------------------- /build/lua-5.3.4/doc/osi-certified-72x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/lua-5.3.4/doc/osi-certified-72x60.png -------------------------------------------------------------------------------- /build/lua-5.3.4/src/lapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lapi.h,v 2.9 2015/03/06 19:49:50 roberto Exp $ 3 | ** Auxiliary functions from Lua API 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lapi_h 8 | #define lapi_h 9 | 10 | 11 | #include "llimits.h" 12 | #include "lstate.h" 13 | 14 | #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \ 15 | "stack overflow");} 16 | 17 | #define adjustresults(L,nres) \ 18 | { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; } 19 | 20 | #define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \ 21 | "not enough elements in the stack") 22 | 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /build/lua-5.3.4/src/lprefix.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lprefix.h,v 1.2 2014/12/29 16:54:13 roberto Exp $ 3 | ** Definitions for Lua code that must come before any other header file 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lprefix_h 8 | #define lprefix_h 9 | 10 | 11 | /* 12 | ** Allows POSIX/XSI stuff 13 | */ 14 | #if !defined(LUA_USE_C89) /* { */ 15 | 16 | #if !defined(_XOPEN_SOURCE) 17 | #define _XOPEN_SOURCE 600 18 | #elif _XOPEN_SOURCE == 0 19 | #undef _XOPEN_SOURCE /* use -D_XOPEN_SOURCE=0 to undefine it */ 20 | #endif 21 | 22 | /* 23 | ** Allows manipulation of large files in gcc and some other compilers 24 | */ 25 | #if !defined(LUA_32BITS) && !defined(_FILE_OFFSET_BITS) 26 | #define _LARGEFILE_SOURCE 1 27 | #define _FILE_OFFSET_BITS 64 28 | #endif 29 | 30 | #endif /* } */ 31 | 32 | 33 | /* 34 | ** Windows stuff 35 | */ 36 | #if defined(_WIN32) /* { */ 37 | 38 | #if !defined(_CRT_SECURE_NO_WARNINGS) 39 | #define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ISO C functions */ 40 | #endif 41 | 42 | #endif /* } */ 43 | 44 | #endif 45 | 46 | -------------------------------------------------------------------------------- /build/lua-5.3.4/src/lua.hpp: -------------------------------------------------------------------------------- 1 | // lua.hpp 2 | // Lua header files for C++ 3 | // <> not supplied automatically because Lua also compiles as C++ 4 | 5 | extern "C" { 6 | #include "lua.h" 7 | #include "lualib.h" 8 | #include "lauxlib.h" 9 | } 10 | -------------------------------------------------------------------------------- /build/lua-5.3.4/src/lundump.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lundump.h,v 1.45 2015/09/08 15:41:05 roberto Exp $ 3 | ** load precompiled Lua chunks 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lundump_h 8 | #define lundump_h 9 | 10 | #include "llimits.h" 11 | #include "lobject.h" 12 | #include "lzio.h" 13 | 14 | 15 | /* data to catch conversion errors */ 16 | #define LUAC_DATA "\x19\x93\r\n\x1a\n" 17 | 18 | #define LUAC_INT 0x5678 19 | #define LUAC_NUM cast_num(370.5) 20 | 21 | #define MYINT(s) (s[0]-'0') 22 | #define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR)) 23 | #define LUAC_FORMAT 0 /* this is the official format */ 24 | 25 | /* load one chunk; from lundump.c */ 26 | LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name); 27 | 28 | /* dump one chunk; from ldump.c */ 29 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, 30 | void* data, int strip); 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /build/lua-5.3.5/README: -------------------------------------------------------------------------------- 1 | 2 | This is Lua 5.3.5, released on 26 Jun 2018. 3 | 4 | For installation instructions, license details, and 5 | further information about Lua, see doc/readme.html. 6 | 7 | -------------------------------------------------------------------------------- /build/lua-5.3.5/doc/index.css: -------------------------------------------------------------------------------- 1 | ul { 2 | list-style-type: none ; 3 | } 4 | 5 | ul.contents { 6 | padding: 0 ; 7 | } 8 | 9 | table { 10 | border: none ; 11 | border-spacing: 0 ; 12 | border-collapse: collapse ; 13 | } 14 | 15 | td { 16 | vertical-align: top ; 17 | padding: 0 ; 18 | text-align: left ; 19 | line-height: 1.25 ; 20 | width: 15% ; 21 | } 22 | -------------------------------------------------------------------------------- /build/lua-5.3.5/doc/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/lua-5.3.5/doc/logo.gif -------------------------------------------------------------------------------- /build/lua-5.3.5/doc/manual.css: -------------------------------------------------------------------------------- 1 | h3 code { 2 | font-family: inherit ; 3 | font-size: inherit ; 4 | } 5 | 6 | pre, code { 7 | font-size: 12pt ; 8 | } 9 | 10 | span.apii { 11 | color: gray ; 12 | float: right ; 13 | font-family: inherit ; 14 | font-style: normal ; 15 | font-size: small ; 16 | } 17 | 18 | h2:before { 19 | content: "" ; 20 | padding-right: 0em ; 21 | } 22 | -------------------------------------------------------------------------------- /build/lua-5.3.5/doc/osi-certified-72x60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/lua-5.3.5/doc/osi-certified-72x60.png -------------------------------------------------------------------------------- /build/lua-5.3.5/src/lapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lapi.h,v 2.9.1.1 2017/04/19 17:20:42 roberto Exp $ 3 | ** Auxiliary functions from Lua API 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lapi_h 8 | #define lapi_h 9 | 10 | 11 | #include "llimits.h" 12 | #include "lstate.h" 13 | 14 | #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \ 15 | "stack overflow");} 16 | 17 | #define adjustresults(L,nres) \ 18 | { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; } 19 | 20 | #define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \ 21 | "not enough elements in the stack") 22 | 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /build/lua-5.3.5/src/lprefix.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lprefix.h,v 1.2.1.1 2017/04/19 17:20:42 roberto Exp $ 3 | ** Definitions for Lua code that must come before any other header file 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lprefix_h 8 | #define lprefix_h 9 | 10 | 11 | /* 12 | ** Allows POSIX/XSI stuff 13 | */ 14 | #if !defined(LUA_USE_C89) /* { */ 15 | 16 | #if !defined(_XOPEN_SOURCE) 17 | #define _XOPEN_SOURCE 600 18 | #elif _XOPEN_SOURCE == 0 19 | #undef _XOPEN_SOURCE /* use -D_XOPEN_SOURCE=0 to undefine it */ 20 | #endif 21 | 22 | /* 23 | ** Allows manipulation of large files in gcc and some other compilers 24 | */ 25 | #if !defined(LUA_32BITS) && !defined(_FILE_OFFSET_BITS) 26 | #define _LARGEFILE_SOURCE 1 27 | #define _FILE_OFFSET_BITS 64 28 | #endif 29 | 30 | #endif /* } */ 31 | 32 | 33 | /* 34 | ** Windows stuff 35 | */ 36 | #if defined(_WIN32) /* { */ 37 | 38 | #if !defined(_CRT_SECURE_NO_WARNINGS) 39 | #define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ISO C functions */ 40 | #endif 41 | 42 | #endif /* } */ 43 | 44 | #endif 45 | 46 | -------------------------------------------------------------------------------- /build/lua-5.3.5/src/lua.hpp: -------------------------------------------------------------------------------- 1 | // lua.hpp 2 | // Lua header files for C++ 3 | // <> not supplied automatically because Lua also compiles as C++ 4 | 5 | extern "C" { 6 | #include "lua.h" 7 | #include "lualib.h" 8 | #include "lauxlib.h" 9 | } 10 | -------------------------------------------------------------------------------- /build/lua-5.3.5/src/lundump.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lundump.h,v 1.45.1.1 2017/04/19 17:20:42 roberto Exp $ 3 | ** load precompiled Lua chunks 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lundump_h 8 | #define lundump_h 9 | 10 | #include "llimits.h" 11 | #include "lobject.h" 12 | #include "lzio.h" 13 | 14 | 15 | /* data to catch conversion errors */ 16 | #define LUAC_DATA "\x19\x93\r\n\x1a\n" 17 | 18 | #define LUAC_INT 0x5678 19 | #define LUAC_NUM cast_num(370.5) 20 | 21 | #define MYINT(s) (s[0]-'0') 22 | #define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR)) 23 | #define LUAC_FORMAT 0 /* this is the official format */ 24 | 25 | /* load one chunk; from lundump.c */ 26 | LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name); 27 | 28 | /* dump one chunk; from ldump.c */ 29 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, 30 | void* data, int strip); 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /build/lua-protobuf/.gitignore: -------------------------------------------------------------------------------- 1 | *.dll 2 | *.dll.* 3 | *.so 4 | *.exp 5 | *.rock 6 | *.gcov 7 | *.gcda 8 | *.gcno 9 | *.pb 10 | *.dSYM 11 | *.out 12 | test*.lua 13 | lua*/ 14 | test* 15 | *.natvis 16 | out* 17 | -------------------------------------------------------------------------------- /build/lua-protobuf/.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | sudo: false 3 | 4 | env: 5 | global: 6 | - LUAROCKS=2.4.3 7 | - ROCKSPEC=rockspecs/lua-protobuf-scm-1.rockspec 8 | matrix: 9 | - LUA="lua 5.1" 10 | - LUA="lua 5.2" 11 | - LUA="lua 5.3" 12 | - LUA="luajit 2.0" 13 | - LUA="luajit 2.1" 14 | 15 | branches: 16 | only: 17 | - master 18 | - new 19 | 20 | before_install: 21 | - pip install --user hererocks urllib3[secure] cpp-coveralls 22 | - hererocks env --$LUA -rlatest # Use latest LuaRocks, install into 'env' directory. 23 | - source env/bin/activate # Add directory with all installed binaries to PATH. 24 | 25 | install: 26 | # - sudo luarocks make $ROCKSPEC CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage" 27 | - luarocks make $ROCKSPEC CFLAGS="-O3 -fPIC -Wall -Wextra --coverage" LIBFLAG="-shared --coverage" 28 | 29 | script: 30 | - lua test.lua 31 | # - lunit.sh test.lua 32 | 33 | after_success: 34 | - coveralls 35 | # - coveralls -b .. -r .. --dump c.report.json 36 | # - luacov-coveralls -j c.report.json -v 37 | 38 | notifications: 39 | email: 40 | on_success: change 41 | on_failure: always 42 | 43 | # vim: ft=yaml nu et sw=2 fdc=2 fdm=syntax 44 | -------------------------------------------------------------------------------- /build/lua-protobuf/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Xavier Wang 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /build/lua-protobuf/rockspecs/lua-protobuf-scm-1.rockspec: -------------------------------------------------------------------------------- 1 | package = "lua-protobuf" 2 | version = "scm-1" 3 | 4 | source = { 5 | url = "git://github.com/starwing/lua-protobuf.git", 6 | } 7 | 8 | description = { 9 | summary = "protobuf data support for Lua", 10 | detailed = [[ 11 | This project offers a simple C library for basic protobuf wire format encode/decode. 12 | ]], 13 | homepage = "https://github.com/starwing/lua-protobuf", 14 | license = "MIT", 15 | } 16 | 17 | dependencies = { 18 | "lua >= 5.1" 19 | } 20 | 21 | build = { 22 | type = "builtin", 23 | modules = { 24 | pb = "pb.c"; 25 | protoc = "protoc.lua"; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/README: -------------------------------------------------------------------------------- 1 | README for LuaJIT 2.1.0-beta2 2 | ----------------------------- 3 | 4 | LuaJIT is a Just-In-Time (JIT) compiler for the Lua programming language. 5 | 6 | Project Homepage: http://luajit.org/ 7 | 8 | LuaJIT is Copyright (C) 2005-2016 Mike Pall. 9 | LuaJIT is free software, released under the MIT license. 10 | See full Copyright Notice in the COPYRIGHT file or in luajit.h. 11 | 12 | Documentation for LuaJIT is available in HTML format. 13 | Please point your favorite browser to: 14 | 15 | doc/luajit.html 16 | 17 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/doc/img/contact.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/luajit-2.1.0b2/doc/img/contact.png -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/dynasm/dasm_x64.lua: -------------------------------------------------------------------------------- 1 | ------------------------------------------------------------------------------ 2 | -- DynASM x64 module. 3 | -- 4 | -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. 5 | -- See dynasm.lua for full copyright notice. 6 | ------------------------------------------------------------------------------ 7 | -- This module just sets 64 bit mode for the combined x86/x64 module. 8 | -- All the interesting stuff is there. 9 | ------------------------------------------------------------------------------ 10 | 11 | x64 = true -- Using a global is an ugly, but effective solution. 12 | return require("dasm_x86") 13 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/etc/luajit.pc: -------------------------------------------------------------------------------- 1 | # Package information for LuaJIT to be used by pkg-config. 2 | majver=2 3 | minver=1 4 | relver=0 5 | version=${majver}.${minver}.${relver}-beta2 6 | abiver=5.1 7 | 8 | prefix=/usr/local 9 | multilib=lib 10 | exec_prefix=${prefix} 11 | libdir=${exec_prefix}/${multilib} 12 | libname=luajit-${abiver} 13 | includedir=${prefix}/include/luajit-${majver}.${minver} 14 | 15 | INSTALL_LMOD=${prefix}/share/lua/${abiver} 16 | INSTALL_CMOD=${prefix}/${multilib}/lua/${abiver} 17 | 18 | Name: LuaJIT 19 | Description: Just-in-time compiler for Lua 20 | URL: http://luajit.org 21 | Version: ${version} 22 | Requires: 23 | Libs: -L${libdir} -l${libname} 24 | Libs.private: -Wl,-E -lm -ldl 25 | Cflags: -I${includedir} 26 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/host/README: -------------------------------------------------------------------------------- 1 | The files in this directory are only used during the build process of LuaJIT. 2 | For cross-compilation, they must be executed on the host, not on the target. 3 | 4 | These files should NOT be installed! 5 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/jit/dis_mipsel.lua: -------------------------------------------------------------------------------- 1 | ---------------------------------------------------------------------------- 2 | -- LuaJIT MIPSEL disassembler wrapper module. 3 | -- 4 | -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. 5 | -- Released under the MIT license. See Copyright Notice in luajit.h 6 | ---------------------------------------------------------------------------- 7 | -- This module just exports the little-endian functions from the 8 | -- MIPS disassembler module. All the interesting stuff is there. 9 | ------------------------------------------------------------------------------ 10 | 11 | local dis_mips = require((string.match(..., ".*%.") or "").."dis_mips") 12 | return { 13 | create = dis_mips.create_el, 14 | disass = dis_mips.disass_el, 15 | regname = dis_mips.regname 16 | } 17 | 18 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/jit/dis_x64.lua: -------------------------------------------------------------------------------- 1 | ---------------------------------------------------------------------------- 2 | -- LuaJIT x64 disassembler wrapper module. 3 | -- 4 | -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. 5 | -- Released under the MIT license. See Copyright Notice in luajit.h 6 | ---------------------------------------------------------------------------- 7 | -- This module just exports the 64 bit functions from the combined 8 | -- x86/x64 disassembler module. All the interesting stuff is there. 9 | ------------------------------------------------------------------------------ 10 | 11 | local dis_x86 = require((string.match(..., ".*%.") or "").."dis_x86") 12 | return { 13 | create = dis_x86.create64, 14 | disass = dis_x86.disass64, 15 | regname = dis_x86.regname64 16 | } 17 | 18 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/jit/zone.lua: -------------------------------------------------------------------------------- 1 | ---------------------------------------------------------------------------- 2 | -- LuaJIT profiler zones. 3 | -- 4 | -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. 5 | -- Released under the MIT license. See Copyright Notice in luajit.h 6 | ---------------------------------------------------------------------------- 7 | -- 8 | -- This module implements a simple hierarchical zone model. 9 | -- 10 | -- Example usage: 11 | -- 12 | -- local zone = require("jit.zone") 13 | -- zone("AI") 14 | -- ... 15 | -- zone("A*") 16 | -- ... 17 | -- print(zone:get()) --> "A*" 18 | -- ... 19 | -- zone() 20 | -- ... 21 | -- print(zone:get()) --> "AI" 22 | -- ... 23 | -- zone() 24 | -- 25 | ---------------------------------------------------------------------------- 26 | 27 | local remove = table.remove 28 | 29 | return setmetatable({ 30 | flush = function(t) 31 | for i=#t,1,-1 do t[i] = nil end 32 | end, 33 | get = function(t) 34 | return t[#t] 35 | end 36 | }, { 37 | __call = function(t, zone) 38 | if zone then 39 | t[#t+1] = zone 40 | else 41 | return (assert(remove(t), "empty zone stack")) 42 | end 43 | end 44 | }) 45 | 46 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj.supp: -------------------------------------------------------------------------------- 1 | # Valgrind suppression file for LuaJIT 2.0. 2 | { 3 | Optimized string compare 4 | Memcheck:Addr4 5 | fun:lj_str_cmp 6 | } 7 | { 8 | Optimized string compare 9 | Memcheck:Addr1 10 | fun:lj_str_cmp 11 | } 12 | { 13 | Optimized string compare 14 | Memcheck:Addr4 15 | fun:lj_str_new 16 | } 17 | { 18 | Optimized string compare 19 | Memcheck:Addr1 20 | fun:lj_str_new 21 | } 22 | { 23 | Optimized string compare 24 | Memcheck:Cond 25 | fun:lj_str_new 26 | } 27 | { 28 | Optimized string compare 29 | Memcheck:Addr4 30 | fun:lj_str_fastcmp 31 | } 32 | { 33 | Optimized string compare 34 | Memcheck:Addr1 35 | fun:lj_str_fastcmp 36 | } 37 | { 38 | Optimized string compare 39 | Memcheck:Cond 40 | fun:lj_str_fastcmp 41 | } 42 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_alloc.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Bundled memory allocator. 3 | ** Donated to the public domain. 4 | */ 5 | 6 | #ifndef _LJ_ALLOC_H 7 | #define _LJ_ALLOC_H 8 | 9 | #include "lj_def.h" 10 | 11 | #ifndef LUAJIT_USE_SYSMALLOC 12 | LJ_FUNC void *lj_alloc_create(void); 13 | LJ_FUNC void lj_alloc_destroy(void *msp); 14 | LJ_FUNC void *lj_alloc_f(void *msp, void *ptr, size_t osize, size_t nsize); 15 | #endif 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_asm.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** IR assembler (SSA IR -> machine code). 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_ASM_H 7 | #define _LJ_ASM_H 8 | 9 | #include "lj_jit.h" 10 | 11 | #if LJ_HASJIT 12 | LJ_FUNC void lj_asm_trace(jit_State *J, GCtrace *T); 13 | LJ_FUNC void lj_asm_patchexit(jit_State *J, GCtrace *T, ExitNo exitno, 14 | MCode *target); 15 | #endif 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_bc.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** Bytecode instruction modes. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #define lj_bc_c 7 | #define LUA_CORE 8 | 9 | #include "lj_obj.h" 10 | #include "lj_bc.h" 11 | 12 | /* Bytecode offsets and bytecode instruction modes. */ 13 | #include "lj_bcdef.h" 14 | 15 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_ccallback.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** FFI C callback handling. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_CCALLBACK_H 7 | #define _LJ_CCALLBACK_H 8 | 9 | #include "lj_obj.h" 10 | #include "lj_ctype.h" 11 | 12 | #if LJ_HASFFI 13 | 14 | /* Really belongs to lj_vm.h. */ 15 | LJ_ASMF void lj_vm_ffi_callback(void); 16 | 17 | LJ_FUNC MSize lj_ccallback_ptr2slot(CTState *cts, void *p); 18 | LJ_FUNCA lua_State * LJ_FASTCALL lj_ccallback_enter(CTState *cts, void *cf); 19 | LJ_FUNCA void LJ_FASTCALL lj_ccallback_leave(CTState *cts, TValue *o); 20 | LJ_FUNC void *lj_ccallback_new(CTState *cts, CType *ct, GCfunc *fn); 21 | LJ_FUNC void lj_ccallback_mcode_free(CTState *cts); 22 | 23 | #endif 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_clib.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** FFI C library loader. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_CLIB_H 7 | #define _LJ_CLIB_H 8 | 9 | #include "lj_obj.h" 10 | 11 | #if LJ_HASFFI 12 | 13 | /* Namespace for C library indexing. */ 14 | #define CLNS_INDEX ((1u<env. */ 20 | } CLibrary; 21 | 22 | LJ_FUNC TValue *lj_clib_index(lua_State *L, CLibrary *cl, GCstr *name); 23 | LJ_FUNC void lj_clib_load(lua_State *L, GCtab *mt, GCstr *name, int global); 24 | LJ_FUNC void lj_clib_unload(CLibrary *cl); 25 | LJ_FUNC void lj_clib_default(lua_State *L, GCtab *mt); 26 | 27 | #endif 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_ff.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Fast function IDs. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_FF_H 7 | #define _LJ_FF_H 8 | 9 | /* Fast function ID. */ 10 | typedef enum { 11 | FF_LUA_ = FF_LUA, /* Lua function (must be 0). */ 12 | FF_C_ = FF_C, /* Regular C function (must be 1). */ 13 | #define FFDEF(name) FF_##name, 14 | #include "lj_ffdef.h" 15 | FF__MAX 16 | } FastFunc; 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_ffrecord.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Fast function call recorder. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_FFRECORD_H 7 | #define _LJ_FFRECORD_H 8 | 9 | #include "lj_obj.h" 10 | #include "lj_jit.h" 11 | 12 | #if LJ_HASJIT 13 | /* Data used by handlers to record a fast function. */ 14 | typedef struct RecordFFData { 15 | TValue *argv; /* Runtime argument values. */ 16 | ptrdiff_t nres; /* Number of returned results (defaults to 1). */ 17 | uint32_t data; /* Per-ffid auxiliary data (opcode, literal etc.). */ 18 | } RecordFFData; 19 | 20 | LJ_FUNC int32_t lj_ffrecord_select_mode(jit_State *J, TRef tr, TValue *tv); 21 | LJ_FUNC void lj_ffrecord_func(jit_State *J); 22 | #endif 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_func.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Function handling (prototypes, functions and upvalues). 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_FUNC_H 7 | #define _LJ_FUNC_H 8 | 9 | #include "lj_obj.h" 10 | 11 | /* Prototypes. */ 12 | LJ_FUNC void LJ_FASTCALL lj_func_freeproto(global_State *g, GCproto *pt); 13 | 14 | /* Upvalues. */ 15 | LJ_FUNCA void LJ_FASTCALL lj_func_closeuv(lua_State *L, TValue *level); 16 | LJ_FUNC void LJ_FASTCALL lj_func_freeuv(global_State *g, GCupval *uv); 17 | 18 | /* Functions (closures). */ 19 | LJ_FUNC GCfunc *lj_func_newC(lua_State *L, MSize nelems, GCtab *env); 20 | LJ_FUNC GCfunc *lj_func_newL_empty(lua_State *L, GCproto *pt, GCtab *env); 21 | LJ_FUNCA GCfunc *lj_func_newL_gc(lua_State *L, GCproto *pt, GCfuncL *parent); 22 | LJ_FUNC void LJ_FASTCALL lj_func_free(global_State *g, GCfunc *c); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_gdbjit.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Client for the GDB JIT API. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_GDBJIT_H 7 | #define _LJ_GDBJIT_H 8 | 9 | #include "lj_obj.h" 10 | #include "lj_jit.h" 11 | 12 | #if LJ_HASJIT && defined(LUAJIT_USE_GDBJIT) 13 | 14 | LJ_FUNC void lj_gdbjit_addtrace(jit_State *J, GCtrace *T); 15 | LJ_FUNC void lj_gdbjit_deltrace(jit_State *J, GCtrace *T); 16 | 17 | #else 18 | #define lj_gdbjit_addtrace(J, T) UNUSED(T) 19 | #define lj_gdbjit_deltrace(J, T) UNUSED(T) 20 | #endif 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_mcode.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Machine code management. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_MCODE_H 7 | #define _LJ_MCODE_H 8 | 9 | #include "lj_obj.h" 10 | 11 | #if LJ_HASJIT || LJ_HASFFI 12 | LJ_FUNC void lj_mcode_sync(void *start, void *end); 13 | #endif 14 | 15 | #if LJ_HASJIT 16 | 17 | #include "lj_jit.h" 18 | 19 | LJ_FUNC void lj_mcode_free(jit_State *J); 20 | LJ_FUNC MCode *lj_mcode_reserve(jit_State *J, MCode **lim); 21 | LJ_FUNC void lj_mcode_commit(jit_State *J, MCode *m); 22 | LJ_FUNC void lj_mcode_abort(jit_State *J); 23 | LJ_FUNC MCode *lj_mcode_patch(jit_State *J, MCode *ptr, int finish); 24 | LJ_FUNC_NORET void lj_mcode_limiterr(jit_State *J, size_t need); 25 | 26 | #define lj_mcode_commitbot(J, m) (J->mcbot = (m)) 27 | 28 | #endif 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_parse.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Lua parser (source code -> bytecode). 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_PARSE_H 7 | #define _LJ_PARSE_H 8 | 9 | #include "lj_obj.h" 10 | #include "lj_lex.h" 11 | 12 | LJ_FUNC GCproto *lj_parse(LexState *ls); 13 | LJ_FUNC GCstr *lj_parse_keepstr(LexState *ls, const char *str, size_t l); 14 | #if LJ_HASFFI 15 | LJ_FUNC void lj_parse_keepcdata(LexState *ls, TValue *tv, GCcdata *cd); 16 | #endif 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_profile.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Low-overhead profiling. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_PROFILE_H 7 | #define _LJ_PROFILE_H 8 | 9 | #include "lj_obj.h" 10 | 11 | #if LJ_HASPROFILE 12 | 13 | LJ_FUNC void LJ_FASTCALL lj_profile_interpreter(lua_State *L); 14 | #if !LJ_PROFILE_SIGPROF 15 | LJ_FUNC void LJ_FASTCALL lj_profile_hook_enter(global_State *g); 16 | LJ_FUNC void LJ_FASTCALL lj_profile_hook_leave(global_State *g); 17 | #endif 18 | 19 | #endif 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_snap.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Snapshot handling. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_SNAP_H 7 | #define _LJ_SNAP_H 8 | 9 | #include "lj_obj.h" 10 | #include "lj_jit.h" 11 | 12 | #if LJ_HASJIT 13 | LJ_FUNC void lj_snap_add(jit_State *J); 14 | LJ_FUNC void lj_snap_purge(jit_State *J); 15 | LJ_FUNC void lj_snap_shrink(jit_State *J); 16 | LJ_FUNC IRIns *lj_snap_regspmap(GCtrace *T, SnapNo snapno, IRIns *ir); 17 | LJ_FUNC void lj_snap_replay(jit_State *J, GCtrace *T); 18 | LJ_FUNC const BCIns *lj_snap_restore(jit_State *J, void *exptr); 19 | LJ_FUNC void lj_snap_grow_buf_(jit_State *J, MSize need); 20 | LJ_FUNC void lj_snap_grow_map_(jit_State *J, MSize need); 21 | 22 | static LJ_AINLINE void lj_snap_grow_buf(jit_State *J, MSize need) 23 | { 24 | if (LJ_UNLIKELY(need > J->sizesnap)) lj_snap_grow_buf_(J, need); 25 | } 26 | 27 | static LJ_AINLINE void lj_snap_grow_map(jit_State *J, MSize need) 28 | { 29 | if (LJ_UNLIKELY(need > J->sizesnapmap)) lj_snap_grow_map_(J, need); 30 | } 31 | 32 | #endif 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_state.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** State and stack handling. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_STATE_H 7 | #define _LJ_STATE_H 8 | 9 | #include "lj_obj.h" 10 | 11 | #define incr_top(L) \ 12 | (++L->top >= tvref(L->maxstack) && (lj_state_growstack1(L), 0)) 13 | 14 | #define savestack(L, p) ((char *)(p) - mref(L->stack, char)) 15 | #define restorestack(L, n) ((TValue *)(mref(L->stack, char) + (n))) 16 | 17 | LJ_FUNC void lj_state_relimitstack(lua_State *L); 18 | LJ_FUNC void lj_state_shrinkstack(lua_State *L, MSize used); 19 | LJ_FUNCA void LJ_FASTCALL lj_state_growstack(lua_State *L, MSize need); 20 | LJ_FUNC void LJ_FASTCALL lj_state_growstack1(lua_State *L); 21 | 22 | static LJ_AINLINE void lj_state_checkstack(lua_State *L, MSize need) 23 | { 24 | if ((mref(L->maxstack, char) - (char *)L->top) <= 25 | (ptrdiff_t)need*(ptrdiff_t)sizeof(TValue)) 26 | lj_state_growstack(L, need); 27 | } 28 | 29 | LJ_FUNC lua_State *lj_state_new(lua_State *L); 30 | LJ_FUNC void LJ_FASTCALL lj_state_free(global_State *g, lua_State *L); 31 | #if LJ_64 32 | LJ_FUNC lua_State *lj_state_newstate(lua_Alloc f, void *ud); 33 | #endif 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_str.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** String handling. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_STR_H 7 | #define _LJ_STR_H 8 | 9 | #include 10 | 11 | #include "lj_obj.h" 12 | 13 | /* String helpers. */ 14 | LJ_FUNC int32_t LJ_FASTCALL lj_str_cmp(GCstr *a, GCstr *b); 15 | LJ_FUNC const char *lj_str_find(const char *s, const char *f, 16 | MSize slen, MSize flen); 17 | LJ_FUNC int lj_str_haspattern(GCstr *s); 18 | 19 | /* String interning. */ 20 | LJ_FUNC void lj_str_resize(lua_State *L, MSize newmask); 21 | LJ_FUNCA GCstr *lj_str_new(lua_State *L, const char *str, size_t len); 22 | LJ_FUNC void LJ_FASTCALL lj_str_free(global_State *g, GCstr *s); 23 | 24 | #define lj_str_newz(L, s) (lj_str_new(L, s, strlen(s))) 25 | #define lj_str_newlit(L, s) (lj_str_new(L, "" s, sizeof(s)-1)) 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_strscan.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** String scanning. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_STRSCAN_H 7 | #define _LJ_STRSCAN_H 8 | 9 | #include "lj_obj.h" 10 | 11 | /* Options for accepted/returned formats. */ 12 | #define STRSCAN_OPT_TOINT 0x01 /* Convert to int32_t, if possible. */ 13 | #define STRSCAN_OPT_TONUM 0x02 /* Always convert to double. */ 14 | #define STRSCAN_OPT_IMAG 0x04 15 | #define STRSCAN_OPT_LL 0x08 16 | #define STRSCAN_OPT_C 0x10 17 | 18 | /* Returned format. */ 19 | typedef enum { 20 | STRSCAN_ERROR, 21 | STRSCAN_NUM, STRSCAN_IMAG, 22 | STRSCAN_INT, STRSCAN_U32, STRSCAN_I64, STRSCAN_U64, 23 | } StrScanFmt; 24 | 25 | LJ_FUNC StrScanFmt lj_strscan_scan(const uint8_t *p, TValue *o, uint32_t opt); 26 | LJ_FUNC int LJ_FASTCALL lj_strscan_num(GCstr *str, TValue *o); 27 | #if LJ_DUALNUM 28 | LJ_FUNC int LJ_FASTCALL lj_strscan_number(GCstr *str, TValue *o); 29 | #else 30 | #define lj_strscan_number(s, o) lj_strscan_num((s), (o)) 31 | #endif 32 | 33 | /* Check for number or convert string to number/int in-place (!). */ 34 | static LJ_AINLINE int lj_strscan_numberobj(TValue *o) 35 | { 36 | return tvisnumber(o) || (tvisstr(o) && lj_strscan_number(strV(o), o)); 37 | } 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_udata.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** Userdata handling. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #define lj_udata_c 7 | #define LUA_CORE 8 | 9 | #include "lj_obj.h" 10 | #include "lj_gc.h" 11 | #include "lj_udata.h" 12 | 13 | GCudata *lj_udata_new(lua_State *L, MSize sz, GCtab *env) 14 | { 15 | GCudata *ud = lj_mem_newt(L, sizeof(GCudata) + sz, GCudata); 16 | global_State *g = G(L); 17 | newwhite(g, ud); /* Not finalized. */ 18 | ud->gct = ~LJ_TUDATA; 19 | ud->udtype = UDTYPE_USERDATA; 20 | ud->len = sz; 21 | /* NOBARRIER: The GCudata is new (marked white). */ 22 | setgcrefnull(ud->metatable); 23 | setgcref(ud->env, obj2gco(env)); 24 | /* Chain to userdata list (after main thread). */ 25 | setgcrefr(ud->nextgc, mainthread(g)->nextgc); 26 | setgcref(mainthread(g)->nextgc, obj2gco(ud)); 27 | return ud; 28 | } 29 | 30 | void LJ_FASTCALL lj_udata_free(global_State *g, GCudata *ud) 31 | { 32 | lj_mem_free(g, ud, sizeudata(ud)); 33 | } 34 | 35 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lj_udata.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Userdata handling. 3 | ** Copyright (C) 2005-2016 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_UDATA_H 7 | #define _LJ_UDATA_H 8 | 9 | #include "lj_obj.h" 10 | 11 | LJ_FUNC GCudata *lj_udata_new(lua_State *L, MSize sz, GCtab *env); 12 | LJ_FUNC void LJ_FASTCALL lj_udata_free(global_State *g, GCudata *ud); 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b2/src/lua.hpp: -------------------------------------------------------------------------------- 1 | // C++ wrapper for LuaJIT header files. 2 | 3 | extern "C" { 4 | #include "lua.h" 5 | #include "lauxlib.h" 6 | #include "lualib.h" 7 | #include "luajit.h" 8 | } 9 | 10 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/README: -------------------------------------------------------------------------------- 1 | README for LuaJIT 2.1.0-beta3 2 | ----------------------------- 3 | 4 | LuaJIT is a Just-In-Time (JIT) compiler for the Lua programming language. 5 | 6 | Project Homepage: http://luajit.org/ 7 | 8 | LuaJIT is Copyright (C) 2005-2017 Mike Pall. 9 | LuaJIT is free software, released under the MIT license. 10 | See full Copyright Notice in the COPYRIGHT file or in luajit.h. 11 | 12 | Documentation for LuaJIT is available in HTML format. 13 | Please point your favorite browser to: 14 | 15 | doc/luajit.html 16 | 17 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/doc/img/contact.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/luajit-2.1.0b3/doc/img/contact.png -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/dynasm/dasm_mips64.lua: -------------------------------------------------------------------------------- 1 | ------------------------------------------------------------------------------ 2 | -- DynASM MIPS64 module. 3 | -- 4 | -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. 5 | -- See dynasm.lua for full copyright notice. 6 | ------------------------------------------------------------------------------ 7 | -- This module just sets 64 bit mode for the combined MIPS/MIPS64 module. 8 | -- All the interesting stuff is there. 9 | ------------------------------------------------------------------------------ 10 | 11 | mips64 = true -- Using a global is an ugly, but effective solution. 12 | return require("dasm_mips") 13 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/dynasm/dasm_x64.lua: -------------------------------------------------------------------------------- 1 | ------------------------------------------------------------------------------ 2 | -- DynASM x64 module. 3 | -- 4 | -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. 5 | -- See dynasm.lua for full copyright notice. 6 | ------------------------------------------------------------------------------ 7 | -- This module just sets 64 bit mode for the combined x86/x64 module. 8 | -- All the interesting stuff is there. 9 | ------------------------------------------------------------------------------ 10 | 11 | x64 = true -- Using a global is an ugly, but effective solution. 12 | return require("dasm_x86") 13 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/etc/luajit.pc: -------------------------------------------------------------------------------- 1 | # Package information for LuaJIT to be used by pkg-config. 2 | majver=2 3 | minver=1 4 | relver=0 5 | version=${majver}.${minver}.${relver}-beta3 6 | abiver=5.1 7 | 8 | prefix=/usr/local 9 | multilib=lib 10 | exec_prefix=${prefix} 11 | libdir=${exec_prefix}/${multilib} 12 | libname=luajit-${abiver} 13 | includedir=${prefix}/include/luajit-${majver}.${minver} 14 | 15 | INSTALL_LMOD=${prefix}/share/lua/${abiver} 16 | INSTALL_CMOD=${prefix}/${multilib}/lua/${abiver} 17 | 18 | Name: LuaJIT 19 | Description: Just-in-time compiler for Lua 20 | URL: http://luajit.org 21 | Version: ${version} 22 | Requires: 23 | Libs: -L${libdir} -l${libname} 24 | Libs.private: -Wl,-E -lm -ldl 25 | Cflags: -I${includedir} 26 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/host/README: -------------------------------------------------------------------------------- 1 | The files in this directory are only used during the build process of LuaJIT. 2 | For cross-compilation, they must be executed on the host, not on the target. 3 | 4 | These files should NOT be installed! 5 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/jit/dis_arm64be.lua: -------------------------------------------------------------------------------- 1 | ---------------------------------------------------------------------------- 2 | -- LuaJIT ARM64BE disassembler wrapper module. 3 | -- 4 | -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. 5 | -- Released under the MIT license. See Copyright Notice in luajit.h 6 | ---------------------------------------------------------------------------- 7 | -- ARM64 instructions are always little-endian. So just forward to the 8 | -- common ARM64 disassembler module. All the interesting stuff is there. 9 | ------------------------------------------------------------------------------ 10 | 11 | return require((string.match(..., ".*%.") or "").."dis_arm64") 12 | 13 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/jit/dis_mips64.lua: -------------------------------------------------------------------------------- 1 | ---------------------------------------------------------------------------- 2 | -- LuaJIT MIPS64 disassembler wrapper module. 3 | -- 4 | -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. 5 | -- Released under the MIT license. See Copyright Notice in luajit.h 6 | ---------------------------------------------------------------------------- 7 | -- This module just exports the big-endian functions from the 8 | -- MIPS disassembler module. All the interesting stuff is there. 9 | ------------------------------------------------------------------------------ 10 | 11 | local dis_mips = require((string.match(..., ".*%.") or "").."dis_mips") 12 | return { 13 | create = dis_mips.create, 14 | disass = dis_mips.disass, 15 | regname = dis_mips.regname 16 | } 17 | 18 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/jit/dis_mips64el.lua: -------------------------------------------------------------------------------- 1 | ---------------------------------------------------------------------------- 2 | -- LuaJIT MIPS64EL disassembler wrapper module. 3 | -- 4 | -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. 5 | -- Released under the MIT license. See Copyright Notice in luajit.h 6 | ---------------------------------------------------------------------------- 7 | -- This module just exports the little-endian functions from the 8 | -- MIPS disassembler module. All the interesting stuff is there. 9 | ------------------------------------------------------------------------------ 10 | 11 | local dis_mips = require((string.match(..., ".*%.") or "").."dis_mips") 12 | return { 13 | create = dis_mips.create_el, 14 | disass = dis_mips.disass_el, 15 | regname = dis_mips.regname 16 | } 17 | 18 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/jit/dis_mipsel.lua: -------------------------------------------------------------------------------- 1 | ---------------------------------------------------------------------------- 2 | -- LuaJIT MIPSEL disassembler wrapper module. 3 | -- 4 | -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. 5 | -- Released under the MIT license. See Copyright Notice in luajit.h 6 | ---------------------------------------------------------------------------- 7 | -- This module just exports the little-endian functions from the 8 | -- MIPS disassembler module. All the interesting stuff is there. 9 | ------------------------------------------------------------------------------ 10 | 11 | local dis_mips = require((string.match(..., ".*%.") or "").."dis_mips") 12 | return { 13 | create = dis_mips.create_el, 14 | disass = dis_mips.disass_el, 15 | regname = dis_mips.regname 16 | } 17 | 18 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/jit/dis_x64.lua: -------------------------------------------------------------------------------- 1 | ---------------------------------------------------------------------------- 2 | -- LuaJIT x64 disassembler wrapper module. 3 | -- 4 | -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. 5 | -- Released under the MIT license. See Copyright Notice in luajit.h 6 | ---------------------------------------------------------------------------- 7 | -- This module just exports the 64 bit functions from the combined 8 | -- x86/x64 disassembler module. All the interesting stuff is there. 9 | ------------------------------------------------------------------------------ 10 | 11 | local dis_x86 = require((string.match(..., ".*%.") or "").."dis_x86") 12 | return { 13 | create = dis_x86.create64, 14 | disass = dis_x86.disass64, 15 | regname = dis_x86.regname64 16 | } 17 | 18 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/jit/zone.lua: -------------------------------------------------------------------------------- 1 | ---------------------------------------------------------------------------- 2 | -- LuaJIT profiler zones. 3 | -- 4 | -- Copyright (C) 2005-2017 Mike Pall. All rights reserved. 5 | -- Released under the MIT license. See Copyright Notice in luajit.h 6 | ---------------------------------------------------------------------------- 7 | -- 8 | -- This module implements a simple hierarchical zone model. 9 | -- 10 | -- Example usage: 11 | -- 12 | -- local zone = require("jit.zone") 13 | -- zone("AI") 14 | -- ... 15 | -- zone("A*") 16 | -- ... 17 | -- print(zone:get()) --> "A*" 18 | -- ... 19 | -- zone() 20 | -- ... 21 | -- print(zone:get()) --> "AI" 22 | -- ... 23 | -- zone() 24 | -- 25 | ---------------------------------------------------------------------------- 26 | 27 | local remove = table.remove 28 | 29 | return setmetatable({ 30 | flush = function(t) 31 | for i=#t,1,-1 do t[i] = nil end 32 | end, 33 | get = function(t) 34 | return t[#t] 35 | end 36 | }, { 37 | __call = function(t, zone) 38 | if zone then 39 | t[#t+1] = zone 40 | else 41 | return (assert(remove(t), "empty zone stack")) 42 | end 43 | end 44 | }) 45 | 46 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lj.supp: -------------------------------------------------------------------------------- 1 | # Valgrind suppression file for LuaJIT 2.0. 2 | { 3 | Optimized string compare 4 | Memcheck:Addr4 5 | fun:lj_str_cmp 6 | } 7 | { 8 | Optimized string compare 9 | Memcheck:Addr1 10 | fun:lj_str_cmp 11 | } 12 | { 13 | Optimized string compare 14 | Memcheck:Addr4 15 | fun:lj_str_new 16 | } 17 | { 18 | Optimized string compare 19 | Memcheck:Addr1 20 | fun:lj_str_new 21 | } 22 | { 23 | Optimized string compare 24 | Memcheck:Cond 25 | fun:lj_str_new 26 | } 27 | { 28 | Optimized string compare 29 | Memcheck:Addr4 30 | fun:str_fastcmp 31 | } 32 | { 33 | Optimized string compare 34 | Memcheck:Addr1 35 | fun:str_fastcmp 36 | } 37 | { 38 | Optimized string compare 39 | Memcheck:Cond 40 | fun:str_fastcmp 41 | } 42 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lj_alloc.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Bundled memory allocator. 3 | ** Donated to the public domain. 4 | */ 5 | 6 | #ifndef _LJ_ALLOC_H 7 | #define _LJ_ALLOC_H 8 | 9 | #include "lj_def.h" 10 | 11 | #ifndef LUAJIT_USE_SYSMALLOC 12 | LJ_FUNC void *lj_alloc_create(void); 13 | LJ_FUNC void lj_alloc_destroy(void *msp); 14 | LJ_FUNC void *lj_alloc_f(void *msp, void *ptr, size_t osize, size_t nsize); 15 | #endif 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lj_asm.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** IR assembler (SSA IR -> machine code). 3 | ** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_ASM_H 7 | #define _LJ_ASM_H 8 | 9 | #include "lj_jit.h" 10 | 11 | #if LJ_HASJIT 12 | LJ_FUNC void lj_asm_trace(jit_State *J, GCtrace *T); 13 | LJ_FUNC void lj_asm_patchexit(jit_State *J, GCtrace *T, ExitNo exitno, 14 | MCode *target); 15 | #endif 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lj_bc.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** Bytecode instruction modes. 3 | ** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #define lj_bc_c 7 | #define LUA_CORE 8 | 9 | #include "lj_obj.h" 10 | #include "lj_bc.h" 11 | 12 | /* Bytecode offsets and bytecode instruction modes. */ 13 | #include "lj_bcdef.h" 14 | 15 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lj_ccallback.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** FFI C callback handling. 3 | ** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_CCALLBACK_H 7 | #define _LJ_CCALLBACK_H 8 | 9 | #include "lj_obj.h" 10 | #include "lj_ctype.h" 11 | 12 | #if LJ_HASFFI 13 | 14 | /* Really belongs to lj_vm.h. */ 15 | LJ_ASMF void lj_vm_ffi_callback(void); 16 | 17 | LJ_FUNC MSize lj_ccallback_ptr2slot(CTState *cts, void *p); 18 | LJ_FUNCA lua_State * LJ_FASTCALL lj_ccallback_enter(CTState *cts, void *cf); 19 | LJ_FUNCA void LJ_FASTCALL lj_ccallback_leave(CTState *cts, TValue *o); 20 | LJ_FUNC void *lj_ccallback_new(CTState *cts, CType *ct, GCfunc *fn); 21 | LJ_FUNC void lj_ccallback_mcode_free(CTState *cts); 22 | 23 | #endif 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lj_clib.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** FFI C library loader. 3 | ** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_CLIB_H 7 | #define _LJ_CLIB_H 8 | 9 | #include "lj_obj.h" 10 | 11 | #if LJ_HASFFI 12 | 13 | /* Namespace for C library indexing. */ 14 | #define CLNS_INDEX ((1u<env. */ 20 | } CLibrary; 21 | 22 | LJ_FUNC TValue *lj_clib_index(lua_State *L, CLibrary *cl, GCstr *name); 23 | LJ_FUNC void lj_clib_load(lua_State *L, GCtab *mt, GCstr *name, int global); 24 | LJ_FUNC void lj_clib_unload(CLibrary *cl); 25 | LJ_FUNC void lj_clib_default(lua_State *L, GCtab *mt); 26 | 27 | #endif 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lj_ff.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Fast function IDs. 3 | ** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_FF_H 7 | #define _LJ_FF_H 8 | 9 | /* Fast function ID. */ 10 | typedef enum { 11 | FF_LUA_ = FF_LUA, /* Lua function (must be 0). */ 12 | FF_C_ = FF_C, /* Regular C function (must be 1). */ 13 | #define FFDEF(name) FF_##name, 14 | #include "lj_ffdef.h" 15 | FF__MAX 16 | } FastFunc; 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lj_ffrecord.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Fast function call recorder. 3 | ** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_FFRECORD_H 7 | #define _LJ_FFRECORD_H 8 | 9 | #include "lj_obj.h" 10 | #include "lj_jit.h" 11 | 12 | #if LJ_HASJIT 13 | /* Data used by handlers to record a fast function. */ 14 | typedef struct RecordFFData { 15 | TValue *argv; /* Runtime argument values. */ 16 | ptrdiff_t nres; /* Number of returned results (defaults to 1). */ 17 | uint32_t data; /* Per-ffid auxiliary data (opcode, literal etc.). */ 18 | } RecordFFData; 19 | 20 | LJ_FUNC int32_t lj_ffrecord_select_mode(jit_State *J, TRef tr, TValue *tv); 21 | LJ_FUNC void lj_ffrecord_func(jit_State *J); 22 | #endif 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lj_func.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Function handling (prototypes, functions and upvalues). 3 | ** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_FUNC_H 7 | #define _LJ_FUNC_H 8 | 9 | #include "lj_obj.h" 10 | 11 | /* Prototypes. */ 12 | LJ_FUNC void LJ_FASTCALL lj_func_freeproto(global_State *g, GCproto *pt); 13 | 14 | /* Upvalues. */ 15 | LJ_FUNCA void LJ_FASTCALL lj_func_closeuv(lua_State *L, TValue *level); 16 | LJ_FUNC void LJ_FASTCALL lj_func_freeuv(global_State *g, GCupval *uv); 17 | 18 | /* Functions (closures). */ 19 | LJ_FUNC GCfunc *lj_func_newC(lua_State *L, MSize nelems, GCtab *env); 20 | LJ_FUNC GCfunc *lj_func_newL_empty(lua_State *L, GCproto *pt, GCtab *env); 21 | LJ_FUNCA GCfunc *lj_func_newL_gc(lua_State *L, GCproto *pt, GCfuncL *parent); 22 | LJ_FUNC void LJ_FASTCALL lj_func_free(global_State *g, GCfunc *c); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lj_gdbjit.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Client for the GDB JIT API. 3 | ** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_GDBJIT_H 7 | #define _LJ_GDBJIT_H 8 | 9 | #include "lj_obj.h" 10 | #include "lj_jit.h" 11 | 12 | #if LJ_HASJIT && defined(LUAJIT_USE_GDBJIT) 13 | 14 | LJ_FUNC void lj_gdbjit_addtrace(jit_State *J, GCtrace *T); 15 | LJ_FUNC void lj_gdbjit_deltrace(jit_State *J, GCtrace *T); 16 | 17 | #else 18 | #define lj_gdbjit_addtrace(J, T) UNUSED(T) 19 | #define lj_gdbjit_deltrace(J, T) UNUSED(T) 20 | #endif 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lj_mcode.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Machine code management. 3 | ** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_MCODE_H 7 | #define _LJ_MCODE_H 8 | 9 | #include "lj_obj.h" 10 | 11 | #if LJ_HASJIT || LJ_HASFFI 12 | LJ_FUNC void lj_mcode_sync(void *start, void *end); 13 | #endif 14 | 15 | #if LJ_HASJIT 16 | 17 | #include "lj_jit.h" 18 | 19 | LJ_FUNC void lj_mcode_free(jit_State *J); 20 | LJ_FUNC MCode *lj_mcode_reserve(jit_State *J, MCode **lim); 21 | LJ_FUNC void lj_mcode_commit(jit_State *J, MCode *m); 22 | LJ_FUNC void lj_mcode_abort(jit_State *J); 23 | LJ_FUNC MCode *lj_mcode_patch(jit_State *J, MCode *ptr, int finish); 24 | LJ_FUNC_NORET void lj_mcode_limiterr(jit_State *J, size_t need); 25 | 26 | #define lj_mcode_commitbot(J, m) (J->mcbot = (m)) 27 | 28 | #endif 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lj_parse.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Lua parser (source code -> bytecode). 3 | ** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_PARSE_H 7 | #define _LJ_PARSE_H 8 | 9 | #include "lj_obj.h" 10 | #include "lj_lex.h" 11 | 12 | LJ_FUNC GCproto *lj_parse(LexState *ls); 13 | LJ_FUNC GCstr *lj_parse_keepstr(LexState *ls, const char *str, size_t l); 14 | #if LJ_HASFFI 15 | LJ_FUNC void lj_parse_keepcdata(LexState *ls, TValue *tv, GCcdata *cd); 16 | #endif 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lj_profile.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Low-overhead profiling. 3 | ** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_PROFILE_H 7 | #define _LJ_PROFILE_H 8 | 9 | #include "lj_obj.h" 10 | 11 | #if LJ_HASPROFILE 12 | 13 | LJ_FUNC void LJ_FASTCALL lj_profile_interpreter(lua_State *L); 14 | #if !LJ_PROFILE_SIGPROF 15 | LJ_FUNC void LJ_FASTCALL lj_profile_hook_enter(global_State *g); 16 | LJ_FUNC void LJ_FASTCALL lj_profile_hook_leave(global_State *g); 17 | #endif 18 | 19 | #endif 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lj_snap.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Snapshot handling. 3 | ** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_SNAP_H 7 | #define _LJ_SNAP_H 8 | 9 | #include "lj_obj.h" 10 | #include "lj_jit.h" 11 | 12 | #if LJ_HASJIT 13 | LJ_FUNC void lj_snap_add(jit_State *J); 14 | LJ_FUNC void lj_snap_purge(jit_State *J); 15 | LJ_FUNC void lj_snap_shrink(jit_State *J); 16 | LJ_FUNC IRIns *lj_snap_regspmap(GCtrace *T, SnapNo snapno, IRIns *ir); 17 | LJ_FUNC void lj_snap_replay(jit_State *J, GCtrace *T); 18 | LJ_FUNC const BCIns *lj_snap_restore(jit_State *J, void *exptr); 19 | LJ_FUNC void lj_snap_grow_buf_(jit_State *J, MSize need); 20 | LJ_FUNC void lj_snap_grow_map_(jit_State *J, MSize need); 21 | 22 | static LJ_AINLINE void lj_snap_grow_buf(jit_State *J, MSize need) 23 | { 24 | if (LJ_UNLIKELY(need > J->sizesnap)) lj_snap_grow_buf_(J, need); 25 | } 26 | 27 | static LJ_AINLINE void lj_snap_grow_map(jit_State *J, MSize need) 28 | { 29 | if (LJ_UNLIKELY(need > J->sizesnapmap)) lj_snap_grow_map_(J, need); 30 | } 31 | 32 | #endif 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lj_str.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** String handling. 3 | ** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_STR_H 7 | #define _LJ_STR_H 8 | 9 | #include 10 | 11 | #include "lj_obj.h" 12 | 13 | /* String helpers. */ 14 | LJ_FUNC int32_t LJ_FASTCALL lj_str_cmp(GCstr *a, GCstr *b); 15 | LJ_FUNC const char *lj_str_find(const char *s, const char *f, 16 | MSize slen, MSize flen); 17 | LJ_FUNC int lj_str_haspattern(GCstr *s); 18 | 19 | /* String interning. */ 20 | LJ_FUNC void lj_str_resize(lua_State *L, MSize newmask); 21 | LJ_FUNCA GCstr *lj_str_new(lua_State *L, const char *str, size_t len); 22 | LJ_FUNC void LJ_FASTCALL lj_str_free(global_State *g, GCstr *s); 23 | 24 | #define lj_str_newz(L, s) (lj_str_new(L, s, strlen(s))) 25 | #define lj_str_newlit(L, s) (lj_str_new(L, "" s, sizeof(s)-1)) 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lj_udata.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** Userdata handling. 3 | ** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #define lj_udata_c 7 | #define LUA_CORE 8 | 9 | #include "lj_obj.h" 10 | #include "lj_gc.h" 11 | #include "lj_udata.h" 12 | 13 | GCudata *lj_udata_new(lua_State *L, MSize sz, GCtab *env) 14 | { 15 | GCudata *ud = lj_mem_newt(L, sizeof(GCudata) + sz, GCudata); 16 | global_State *g = G(L); 17 | newwhite(g, ud); /* Not finalized. */ 18 | ud->gct = ~LJ_TUDATA; 19 | ud->udtype = UDTYPE_USERDATA; 20 | ud->len = sz; 21 | /* NOBARRIER: The GCudata is new (marked white). */ 22 | setgcrefnull(ud->metatable); 23 | setgcref(ud->env, obj2gco(env)); 24 | /* Chain to userdata list (after main thread). */ 25 | setgcrefr(ud->nextgc, mainthread(g)->nextgc); 26 | setgcref(mainthread(g)->nextgc, obj2gco(ud)); 27 | return ud; 28 | } 29 | 30 | void LJ_FASTCALL lj_udata_free(global_State *g, GCudata *ud) 31 | { 32 | lj_mem_free(g, ud, sizeudata(ud)); 33 | } 34 | 35 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lj_udata.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Userdata handling. 3 | ** Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h 4 | */ 5 | 6 | #ifndef _LJ_UDATA_H 7 | #define _LJ_UDATA_H 8 | 9 | #include "lj_obj.h" 10 | 11 | LJ_FUNC GCudata *lj_udata_new(lua_State *L, MSize sz, GCtab *env); 12 | LJ_FUNC void LJ_FASTCALL lj_udata_free(global_State *g, GCudata *ud); 13 | 14 | #endif 15 | -------------------------------------------------------------------------------- /build/luajit-2.1.0b3/src/lua.hpp: -------------------------------------------------------------------------------- 1 | // C++ wrapper for LuaJIT header files. 2 | 3 | extern "C" { 4 | #include "lua.h" 5 | #include "lauxlib.h" 6 | #include "lualib.h" 7 | #include "luajit.h" 8 | } 9 | 10 | -------------------------------------------------------------------------------- /build/luasocket/luasocket.h: -------------------------------------------------------------------------------- 1 | #ifndef LUASOCKET_H 2 | #define LUASOCKET_H 3 | /*=========================================================================*\ 4 | * LuaSocket toolkit 5 | * Networking support for the Lua language 6 | * Diego Nehab 7 | * 9/11/1999 8 | \*=========================================================================*/ 9 | #include "lua.h" 10 | 11 | /*-------------------------------------------------------------------------*\ 12 | * Current socket library version 13 | \*-------------------------------------------------------------------------*/ 14 | #define LUASOCKET_VERSION "LuaSocket 3.0-rc1" 15 | #define LUASOCKET_COPYRIGHT "Copyright (C) 1999-2013 Diego Nehab" 16 | 17 | /*-------------------------------------------------------------------------*\ 18 | * Initializes the library. 19 | \*-------------------------------------------------------------------------*/ 20 | LUA_API int luaopen_socket_core(lua_State *L); 21 | 22 | #endif /* LUASOCKET_H */ 23 | -------------------------------------------------------------------------------- /build/luasocket/luasocket_scripts.h: -------------------------------------------------------------------------------- 1 | 2 | /* luasocket_scripts.h.h */ 3 | 4 | #ifndef __LUA_MODULES_606BA1C00D116CA81B695C141D124DB7_H_ 5 | #define __LUA_MODULES_606BA1C00D116CA81B695C141D124DB7_H_ 6 | 7 | #if __cplusplus 8 | extern "C" { 9 | #endif 10 | 11 | #include "lua.h" 12 | 13 | void luaopen_luasocket_scripts(lua_State* L); 14 | 15 | /* 16 | int luaopen_lua_m_ltn12(lua_State* L); 17 | int luaopen_lua_m_mime(lua_State* L); 18 | int luaopen_lua_m_socket_ftp(lua_State* L); 19 | int luaopen_lua_m_socket_headers(lua_State* L); 20 | int luaopen_lua_m_socket_http(lua_State* L); 21 | int luaopen_lua_m_socket_mbox(lua_State* L); 22 | int luaopen_lua_m_socket_smtp(lua_State* L); 23 | int luaopen_lua_m_socket_tp(lua_State* L); 24 | int luaopen_lua_m_socket_url(lua_State* L); 25 | int luaopen_lua_m_socket(lua_State* L); 26 | */ 27 | 28 | #if __cplusplus 29 | } 30 | #endif 31 | 32 | #endif /* __LUA_MODULES_606BA1C00D116CA81B695C141D124DB7_H_ */ 33 | -------------------------------------------------------------------------------- /build/luasocket/mime.h: -------------------------------------------------------------------------------- 1 | #ifndef MIME_H 2 | #define MIME_H 3 | /*=========================================================================*\ 4 | * Core MIME support 5 | * LuaSocket toolkit 6 | * 7 | * This module provides functions to implement transfer content encodings 8 | * and formatting conforming to RFC 2045. It is used by mime.lua, which 9 | * provide a higher level interface to this functionality. 10 | \*=========================================================================*/ 11 | #include "lua.h" 12 | 13 | /*-------------------------------------------------------------------------*\ 14 | * Current MIME library version 15 | \*-------------------------------------------------------------------------*/ 16 | #define MIME_VERSION "MIME 1.0.3" 17 | #define MIME_COPYRIGHT "Copyright (C) 2004-2013 Diego Nehab" 18 | #define MIME_AUTHORS "Diego Nehab" 19 | 20 | /*-------------------------------------------------------------------------*\ 21 | * This macro prefixes all exported API functions 22 | \*-------------------------------------------------------------------------*/ 23 | #ifndef MIME_API 24 | #define MIME_API extern 25 | #endif 26 | 27 | MIME_API int luaopen_mime_core(lua_State *L); 28 | 29 | #endif /* MIME_H */ 30 | -------------------------------------------------------------------------------- /build/luasocket/select.h: -------------------------------------------------------------------------------- 1 | #ifndef SELECT_H 2 | #define SELECT_H 3 | /*=========================================================================*\ 4 | * Select implementation 5 | * LuaSocket toolkit 6 | * 7 | * Each object that can be passed to the select function has to export 8 | * method getfd() which returns the descriptor to be passed to the 9 | * underlying select function. Another method, dirty(), should return 10 | * true if there is data ready for reading (required for buffered input). 11 | \*=========================================================================*/ 12 | 13 | int select_open(lua_State *L); 14 | 15 | #endif /* SELECT_H */ 16 | -------------------------------------------------------------------------------- /build/luasocket/tcp.h: -------------------------------------------------------------------------------- 1 | #ifndef TCP_H 2 | #define TCP_H 3 | /*=========================================================================*\ 4 | * TCP object 5 | * LuaSocket toolkit 6 | * 7 | * The tcp.h module is basicly a glue that puts together modules buffer.h, 8 | * timeout.h socket.h and inet.h to provide the LuaSocket TCP (AF_INET, 9 | * SOCK_STREAM) support. 10 | * 11 | * Three classes are defined: master, client and server. The master class is 12 | * a newly created tcp object, that has not been bound or connected. Server 13 | * objects are tcp objects bound to some local address. Client objects are 14 | * tcp objects either connected to some address or returned by the accept 15 | * method of a server object. 16 | \*=========================================================================*/ 17 | #include "lua.h" 18 | 19 | #include "buffer.h" 20 | #include "timeout.h" 21 | #include "socket.h" 22 | 23 | typedef struct t_tcp_ { 24 | t_socket sock; 25 | t_io io; 26 | t_buffer buf; 27 | t_timeout tm; 28 | int family; 29 | } t_tcp; 30 | 31 | typedef t_tcp *p_tcp; 32 | 33 | int tcp_open(lua_State *L); 34 | 35 | #endif /* TCP_H */ 36 | -------------------------------------------------------------------------------- /build/luasocket/timeout.h: -------------------------------------------------------------------------------- 1 | #ifndef TIMEOUT_H 2 | #define TIMEOUT_H 3 | /*=========================================================================*\ 4 | * Timeout management functions 5 | * LuaSocket toolkit 6 | \*=========================================================================*/ 7 | #include "lua.h" 8 | 9 | /* timeout control structure */ 10 | typedef struct t_timeout_ { 11 | double block; /* maximum time for blocking calls */ 12 | double total; /* total number of miliseconds for operation */ 13 | double start; /* time of start of operation */ 14 | } t_timeout; 15 | typedef t_timeout *p_timeout; 16 | 17 | int timeout_open(lua_State *L); 18 | void timeout_init(p_timeout tm, double block, double total); 19 | double timeout_get(p_timeout tm); 20 | double timeout_getretry(p_timeout tm); 21 | p_timeout timeout_markstart(p_timeout tm); 22 | double timeout_getstart(p_timeout tm); 23 | double timeout_gettime(void); 24 | int timeout_meth_settimeout(lua_State *L, p_timeout tm); 25 | 26 | #define timeout_iszero(tm) ((tm)->block == 0.0) 27 | 28 | #endif /* TIMEOUT_H */ 29 | -------------------------------------------------------------------------------- /build/luasocket/udp.h: -------------------------------------------------------------------------------- 1 | #ifndef UDP_H 2 | #define UDP_H 3 | /*=========================================================================*\ 4 | * UDP object 5 | * LuaSocket toolkit 6 | * 7 | * The udp.h module provides LuaSocket with support for UDP protocol 8 | * (AF_INET, SOCK_DGRAM). 9 | * 10 | * Two classes are defined: connected and unconnected. UDP objects are 11 | * originally unconnected. They can be "connected" to a given address 12 | * with a call to the setpeername function. The same function can be used to 13 | * break the connection. 14 | \*=========================================================================*/ 15 | #include "lua.h" 16 | 17 | #include "timeout.h" 18 | #include "socket.h" 19 | 20 | /* can't be larger than wsocket.c MAXCHUNK!!! */ 21 | #define UDP_DATAGRAMSIZE 8192 22 | 23 | typedef struct t_udp_ { 24 | t_socket sock; 25 | t_timeout tm; 26 | int family; 27 | } t_udp; 28 | typedef t_udp *p_udp; 29 | 30 | int udp_open(lua_State *L); 31 | 32 | #endif /* UDP_H */ 33 | -------------------------------------------------------------------------------- /build/luasocket/unix.h: -------------------------------------------------------------------------------- 1 | #ifndef UNIX_H 2 | #define UNIX_H 3 | /*=========================================================================*\ 4 | * Unix domain object 5 | * LuaSocket toolkit 6 | * 7 | * This module is just an example of how to extend LuaSocket with a new 8 | * domain. 9 | \*=========================================================================*/ 10 | #include "lua.h" 11 | 12 | #include "buffer.h" 13 | #include "timeout.h" 14 | #include "socket.h" 15 | 16 | #ifndef UNIX_API 17 | #define UNIX_API extern 18 | #endif 19 | 20 | typedef struct t_unix_ { 21 | t_socket sock; 22 | t_io io; 23 | t_buffer buf; 24 | t_timeout tm; 25 | } t_unix; 26 | typedef t_unix *p_unix; 27 | 28 | UNIX_API int luaopen_socket_unix(lua_State *L); 29 | 30 | #endif /* UNIX_H */ 31 | -------------------------------------------------------------------------------- /build/luasocket/wsocket.h: -------------------------------------------------------------------------------- 1 | #ifndef WSOCKET_H 2 | #define WSOCKET_H 3 | /*=========================================================================*\ 4 | * Socket compatibilization module for Win32 5 | * LuaSocket toolkit 6 | \*=========================================================================*/ 7 | 8 | /*=========================================================================*\ 9 | * WinSock include files 10 | \*=========================================================================*/ 11 | #include 12 | #include 13 | 14 | typedef int socklen_t; 15 | typedef SOCKADDR_STORAGE t_sockaddr_storage; 16 | typedef SOCKET t_socket; 17 | typedef t_socket *p_socket; 18 | 19 | #ifndef IPV6_V6ONLY 20 | #define IPV6_V6ONLY 27 21 | #endif 22 | 23 | #define SOCKET_INVALID (INVALID_SOCKET) 24 | 25 | #ifndef SO_REUSEPORT 26 | #define SO_REUSEPORT SO_REUSEADDR 27 | #endif 28 | 29 | #ifndef AI_NUMERICSERV 30 | #define AI_NUMERICSERV (0) 31 | #endif 32 | 33 | #endif /* WSOCKET_H */ 34 | -------------------------------------------------------------------------------- /build/make_android_lua53.sh: -------------------------------------------------------------------------------- 1 | if [ -z "$ANDROID_NDK" ]; then 2 | export ANDROID_NDK=~/android-ndk-r10e 3 | fi 4 | 5 | mkdir -p build_v7a && cd build_v7a 6 | cmake -DANDROID_ABI=armeabi-v7a -DCMAKE_TOOLCHAIN_FILE=../cmake/android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-clang3.6 -DANDROID_NATIVE_API_LEVEL=android-9 ../ 7 | cd .. 8 | cmake --build build_v7a --config Release 9 | mkdir -p plugin_lua53/Plugins/Android/libs/armeabi-v7a/ 10 | cp build_v7a/libxlua.so plugin_lua53/Plugins/Android/libs/armeabi-v7a/libxlua.so 11 | 12 | mkdir -p build_x86 && cd build_x86 13 | cmake -DANDROID_ABI=x86 -DCMAKE_TOOLCHAIN_FILE=../cmake/android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME=x86-clang3.5 -DANDROID_NATIVE_API_LEVEL=android-9 ../ 14 | cd .. 15 | cmake --build build_x86 --config Release 16 | mkdir -p plugin_lua53/Plugins/Android/libs/x86/ 17 | cp build_x86/libxlua.so plugin_lua53/Plugins/Android/libs/x86/libxlua.so 18 | 19 | 20 | -------------------------------------------------------------------------------- /build/make_ios_lua53.sh: -------------------------------------------------------------------------------- 1 | mkdir -p build_ios && cd build_ios 2 | cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/iOS.cmake -GXcode ../ 3 | cd .. 4 | cmake --build build_ios --config Release 5 | mkdir -p plugin_lua53/Plugins/iOS/ 6 | cp build_ios/Release-iphoneos/libxlua.a plugin_lua53/Plugins/iOS/libxlua.a 7 | 8 | -------------------------------------------------------------------------------- /build/make_linux32_lua53.sh: -------------------------------------------------------------------------------- 1 | mkdir -p build_linux32 && cd build_linux32 2 | cmake -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_SHARED_LINKER_FLAGS=-m32 ../ 3 | cd .. 4 | cmake --build build_linux32 --config Release 5 | 6 | -------------------------------------------------------------------------------- /build/make_linux32_luajit.sh: -------------------------------------------------------------------------------- 1 | cd luajit-2.1.0b3 2 | make clean 3 | make CC="gcc -m32" 4 | cd .. 5 | mkdir -p build_linux32_lj && cd build_linux32_lj 6 | cmake -DUSING_LUAJIT=ON -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_SHARED_LINKER_FLAGS=-m32 ../ 7 | cd .. 8 | cmake --build build_linux32_lj --config Release 9 | 10 | -------------------------------------------------------------------------------- /build/make_linux64_lua53.sh: -------------------------------------------------------------------------------- 1 | mkdir -p build_linux64 && cd build_linux64 2 | cmake ../ 3 | cd .. 4 | cmake --build build_linux64 --config Release 5 | 6 | -------------------------------------------------------------------------------- /build/make_linux64_luajit.sh: -------------------------------------------------------------------------------- 1 | cd luajit-2.1.0b3 2 | make clean 3 | make CFLAGS=-fPIC 4 | cd .. 5 | mkdir -p build_linux64_lj && cd build_linux64_lj 6 | cmake -DUSING_LUAJIT=ON ../ 7 | cd .. 8 | cmake --build build_linux64_lj --config Release 9 | 10 | -------------------------------------------------------------------------------- /build/make_nx64_lua53.bat: -------------------------------------------------------------------------------- 1 | set CUR_DIR=%~dp0 2 | cd %CUR_DIR% 3 | 4 | del /s/q buildnx64 5 | mkdir buildnx64 & pushd buildnx64 6 | rem fix for io_tmpfile & os_tmpname 7 | echo #if !__ASSEMBLER__ > switch_fix.h 8 | echo static inline struct _IO_FILE* tmpfile(){ return 0; } >> switch_fix.h 9 | echo static inline char* tmpnam(char* n){ return 0; } >> switch_fix.h 10 | echo #endif >> switch_fix.h 11 | 12 | set "NINTENDO_SDK_ROOT_CMAKE=%NINTENDO_SDK_ROOT:\=/%" 13 | cmake -DCMAKE_C_COMPILER="%NINTENDO_SDK_ROOT_CMAKE%/Compilers/NX/nx/aarch64/bin/clang.exe" ^ 14 | -DCMAKE_CXX_COMPILER="%NINTENDO_SDK_ROOT_CMAKE%/Compilers/NX/nx/aarch64/bin/clang++.exe" ^ 15 | -G "Unix Makefiles" -DCMAKE_SYSTEM_NAME=Switch ^ 16 | -DCMAKE_C_FLAGS="-includeswitch_fix.h -I%CUR_DIR%buildnx64" ^ 17 | .. 18 | popd 19 | cmake --build buildnx64 --config Release 20 | mkdir plugin_lua53\Plugins\Switch 21 | copy /Y buildnx64\libxlua.a plugin_lua53\Plugins\Switch\libxlua.a 22 | 23 | rem may need to set package.cpath = "" in lua 24 | rem as any read attempt to undefined location will crash 25 | -------------------------------------------------------------------------------- /build/make_osx_lua53.sh: -------------------------------------------------------------------------------- 1 | mkdir -p build_osx && cd build_osx 2 | cmake -GXcode ../ 3 | cd .. 4 | cmake --build build_osx --config Release 5 | mkdir -p plugin_lua53/Plugins/xlua.bundle/Contents/MacOS/ 6 | cp build_osx/Release/xlua.bundle/Contents/MacOS/xlua plugin_lua53/Plugins/xlua.bundle/Contents/MacOS/xlua 7 | 8 | -------------------------------------------------------------------------------- /build/make_osx_luajit.sh: -------------------------------------------------------------------------------- 1 | mkdir -p build_lj_osx && cd build_lj_osx 2 | cmake -DUSING_LUAJIT=ON -GXcode ../ 3 | cd .. 4 | cmake --build build_lj_osx --config Release 5 | mkdir -p plugin_luajit/Plugins/xlua.bundle/Contents/MacOS/ 6 | cp build_lj_osx/Release/xlua.bundle/Contents/MacOS/xlua plugin_luajit/Plugins/xlua.bundle/Contents/MacOS/xlua 7 | 8 | -------------------------------------------------------------------------------- /build/make_win32_lua53.bat: -------------------------------------------------------------------------------- 1 | mkdir build32 & pushd build32 2 | cmake -G "Visual Studio 14 2015" .. 3 | IF %ERRORLEVEL% NEQ 0 cmake -G "Visual Studio 15 2017" .. 4 | popd 5 | cmake --build build32 --config Release 6 | md plugin_lua53\Plugins\x86 7 | copy /Y build32\Release\xlua.dll plugin_lua53\Plugins\x86\xlua.dll 8 | pause -------------------------------------------------------------------------------- /build/make_win32_luajit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | if exist "%VS140COMNTOOLS%" ( 3 | set VCVARS="%VS140COMNTOOLS%..\..\VC\bin\" 4 | goto build 5 | ) else (goto missing) 6 | 7 | 8 | :build 9 | 10 | @set ENV32="%VCVARS%vcvars32.bat" 11 | 12 | call "%ENV32%" 13 | 14 | echo Swtich to x86 build env 15 | cd %~dp0\luajit-2.1.0b3\src 16 | call msvcbuild_mt.bat static 17 | cd ..\.. 18 | 19 | goto :buildxlua 20 | 21 | :missing 22 | echo Can't find Visual Studio 2015. 23 | pause 24 | goto :eof 25 | 26 | :buildxlua 27 | mkdir build_lj32 & pushd build_lj32 28 | cmake -DUSING_LUAJIT=ON -G "Visual Studio 14 2015" .. 29 | IF %ERRORLEVEL% NEQ 0 cmake -DUSING_LUAJIT=ON -G "Visual Studio 15 2017" .. 30 | popd 31 | cmake --build build_lj32 --config Release 32 | md plugin_luajit\Plugins\x86 33 | copy /Y build_lj32\Release\xlua.dll plugin_luajit\Plugins\x86\xlua.dll 34 | pause -------------------------------------------------------------------------------- /build/make_win32_luajit_vs2017.bat: -------------------------------------------------------------------------------- 1 | call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" 2 | 3 | echo Swtich to x86 build env 4 | cd %~dp0\luajit-2.1.0b3\src 5 | call msvcbuild_mt.bat static 6 | cd ..\.. 7 | 8 | mkdir build_lj32 & pushd build_lj32 9 | cmake -DUSING_LUAJIT=ON -G "Visual Studio 15 2017" .. 10 | popd 11 | cmake --build build_lj32 --config Release 12 | md plugin_luajit\Plugins\x86 13 | copy /Y build_lj32\Release\xlua.dll plugin_luajit\Plugins\x86\xlua.dll 14 | pause -------------------------------------------------------------------------------- /build/make_win64_lua53.bat: -------------------------------------------------------------------------------- 1 | mkdir build64 & pushd build64 2 | cmake -G "Visual Studio 14 2015 Win64" .. 3 | IF %ERRORLEVEL% NEQ 0 cmake -G "Visual Studio 15 2017 Win64" .. 4 | popd 5 | cmake --build build64 --config Release 6 | md plugin_lua53\Plugins\x86_64 7 | copy /Y build64\Release\xlua.dll plugin_lua53\Plugins\x86_64\xlua.dll 8 | pause -------------------------------------------------------------------------------- /build/make_win64_lua53_compatiable.bat: -------------------------------------------------------------------------------- 1 | mkdir build64 & pushd build64 2 | cmake -DLUAC_COMPATIBLE_FORMAT=ON -G "Visual Studio 14 2015 Win64" .. 3 | popd 4 | cmake --build build64 --config Release 5 | md plugin_lua53\Plugins\x86_64 6 | copy /Y build64\Release\xlua.dll plugin_lua53\Plugins\x86_64\xlua.dll 7 | pause -------------------------------------------------------------------------------- /build/make_win64_luajit.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | if exist "%VS140COMNTOOLS%" ( 3 | set VCVARS="%VS140COMNTOOLS%..\..\VC\bin\" 4 | goto build 5 | ) else (goto missing) 6 | 7 | 8 | :build 9 | 10 | @set ENV64="%VCVARS%amd64\vcvars64.bat" 11 | 12 | call "%ENV64%" 13 | 14 | echo Swtich to x64 build env 15 | cd %~dp0\luajit-2.1.0b3\src 16 | call msvcbuild_mt.bat static 17 | cd ..\.. 18 | 19 | goto :buildxlua 20 | 21 | :missing 22 | echo Can't find Visual Studio 2015. 23 | pause 24 | goto :eof 25 | 26 | :buildxlua 27 | mkdir build_lj64 & pushd build_lj64 28 | cmake -DUSING_LUAJIT=ON -G "Visual Studio 14 2015 Win64" .. 29 | IF %ERRORLEVEL% NEQ 0 cmake -DUSING_LUAJIT=ON -G "Visual Studio 15 2017 Win64" .. 30 | popd 31 | cmake --build build_lj64 --config Release 32 | md plugin_luajit\Plugins\x86_64 33 | copy /Y build_lj64\Release\xlua.dll plugin_luajit\Plugins\x86_64\xlua.dll 34 | pause -------------------------------------------------------------------------------- /build/make_win64_luajit_gc64.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | if exist "%VS140COMNTOOLS%" ( 3 | set VCVARS="%VS140COMNTOOLS%..\..\VC\bin\" 4 | goto build 5 | ) else (goto missing) 6 | 7 | 8 | :build 9 | 10 | @set ENV64="%VCVARS%amd64\vcvars64.bat" 11 | 12 | call "%ENV64%" 13 | 14 | echo Swtich to x64 build env 15 | cd %~dp0\luajit-2.1.0b3\src 16 | call msvcbuild_mt.bat gc64 static 17 | cd ..\.. 18 | 19 | goto :buildxlua 20 | 21 | :missing 22 | echo Can't find Visual Studio 2015. 23 | pause 24 | goto :eof 25 | 26 | :buildxlua 27 | mkdir build_lj64 & pushd build_lj64 28 | cmake -DUSING_LUAJIT=ON -DGC64=ON -G "Visual Studio 14 2015 Win64" .. 29 | IF %ERRORLEVEL% NEQ 0 cmake -DUSING_LUAJIT=ON -DGC64=ON -G "Visual Studio 15 2017 Win64" .. 30 | popd 31 | cmake --build build_lj64 --config Release 32 | md plugin_luajit\Plugins\x86_64 33 | copy /Y build_lj64\Release\xlua.dll plugin_luajit\Plugins\x86_64\xlua.dll 34 | pause -------------------------------------------------------------------------------- /build/make_win64_luajit_vs2017.bat: -------------------------------------------------------------------------------- 1 | call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" -arch=amd64 2 | 3 | echo Swtich to x64 build env 4 | cd %~dp0\luajit-2.1.0b3\src 5 | call msvcbuild_mt.bat static 6 | cd ..\.. 7 | 8 | mkdir build_lj64 & pushd build_lj64 9 | cmake -DUSING_LUAJIT=ON -G "Visual Studio 15 2017 Win64" .. 10 | popd 11 | cmake --build build_lj64 --config Release 12 | md plugin_luajit\Plugins\x86_64 13 | copy /Y build_lj64\Release\xlua.dll plugin_luajit\Plugins\x86_64\xlua.dll 14 | pause -------------------------------------------------------------------------------- /build/pbc/.gitignore: -------------------------------------------------------------------------------- 1 | *.suo 2 | *.sdf 3 | *.opensdf 4 | *.d 5 | *.o 6 | Debug 7 | Release 8 | build 9 | .DS_Store 10 | xcuserdata 11 | -------------------------------------------------------------------------------- /build/pbc/Android.mk: -------------------------------------------------------------------------------- 1 | LOCAL_PATH := $(call my-dir) 2 | 3 | include $(CLEAR_VARS) 4 | 5 | LOCAL_MODULE := pbc 6 | 7 | LOCAL_MODULE_FILENAME := libpbc 8 | 9 | LOCAL_SRC_FILES := \ 10 | src/alloc.c \ 11 | src/array.c \ 12 | src/bootstrap.c \ 13 | src/context.c \ 14 | src/decode.c \ 15 | src/map.c \ 16 | src/pattern.c \ 17 | src/proto.c \ 18 | src/register.c \ 19 | src/rmessage.c \ 20 | src/stringpool.c \ 21 | src/varint.c \ 22 | src/wmessage.c \ 23 | 24 | 25 | 26 | LOCAL_C_INCLUDES+= src\ 27 | 28 | 29 | include $(BUILD_STATIC_LIBRARY) 30 | -------------------------------------------------------------------------------- /build/pbc/binding/lua/Makefile: -------------------------------------------------------------------------------- 1 | CC = gcc 2 | CFLAGS = -O2 -fPIC -Wall 3 | LUADIR = /usr/local/include 4 | TARGET = protobuf.so 5 | 6 | .PHONY : all clean 7 | 8 | all : $(TARGET) 9 | 10 | $(TARGET) : pbc-lua.c 11 | $(CC) $(CFLAGS) -shared -o $@ -I../.. -I$(LUADIR) -L../../build $^ -lpbc 12 | 13 | clean : 14 | rm -f $(TARGET) 15 | -------------------------------------------------------------------------------- /build/pbc/binding/lua/test.lua: -------------------------------------------------------------------------------- 1 | require "protobuf" 2 | 3 | addr = io.open("../../build/addressbook.pb","rb") 4 | buffer = addr:read "*a" 5 | addr:close() 6 | 7 | protobuf.register(buffer) 8 | 9 | t = protobuf.decode("google.protobuf.FileDescriptorSet", buffer) 10 | 11 | proto = t.file[1] 12 | 13 | print(proto.name) 14 | print(proto.package) 15 | 16 | message = proto.message_type 17 | 18 | for _,v in ipairs(message) do 19 | print(v.name) 20 | for _,v in ipairs(v.field) do 21 | print("\t".. v.name .. " ["..v.number.."] " .. v.label) 22 | end 23 | end 24 | 25 | addressbook = { 26 | name = "Alice", 27 | id = 12345, 28 | phone = { 29 | { number = "1301234567" }, 30 | { number = "87654321", type = "WORK" }, 31 | } 32 | } 33 | 34 | code = protobuf.encode("tutorial.Person", addressbook) 35 | 36 | decode = protobuf.decode("tutorial.Person" , code) 37 | 38 | print(decode.name) 39 | print(decode.id) 40 | for _,v in ipairs(decode.phone) do 41 | print("\t"..v.number, v.type) 42 | end 43 | 44 | phonebuf = protobuf.pack("tutorial.Person.PhoneNumber number","87654321") 45 | buffer = protobuf.pack("tutorial.Person name id phone", "Alice", 123, { phonebuf }) 46 | print(protobuf.unpack("tutorial.Person name id phone", buffer)) 47 | -------------------------------------------------------------------------------- /build/pbc/binding/lua/test2.lua: -------------------------------------------------------------------------------- 1 | local protobuf = require "protobuf" 2 | 3 | addr = io.open("../../build/addressbook.pb","rb") 4 | buffer = addr:read "*a" 5 | addr:close() 6 | protobuf.register(buffer) 7 | 8 | local person = { 9 | name = "Alice", 10 | id = 123, 11 | phone = { 12 | { number = "123456789" , type = "MOBILE" }, 13 | { number = "87654321" , type = "HOME" }, 14 | } 15 | } 16 | 17 | local buffer = protobuf.encode("tutorial.Person", person) 18 | 19 | local t = protobuf.decode("tutorial.Person", buffer) 20 | 21 | for k,v in pairs(t) do 22 | if type(k) == "string" then 23 | print(k,v) 24 | end 25 | end 26 | 27 | print(t.phone[2].type) 28 | 29 | for k,v in pairs(t.phone[1]) do 30 | print(k,v) 31 | end 32 | 33 | -------------------------------------------------------------------------------- /build/pbc/binding/lua53/Makefile: -------------------------------------------------------------------------------- 1 | CC = gcc 2 | CFLAGS = -O2 -fPIC -Wall 3 | LUADIR = /usr/local/include 4 | TARGET = protobuf.so 5 | 6 | .PHONY : all clean 7 | 8 | all : $(TARGET) 9 | 10 | $(TARGET) : pbc-lua53.c 11 | $(CC) $(CFLAGS) -shared -o $@ -I../.. -I$(LUADIR) -L../../build $^ -lpbc 12 | 13 | clean : 14 | rm -f $(TARGET) 15 | -------------------------------------------------------------------------------- /build/pbc/binding/lua53/test.lua: -------------------------------------------------------------------------------- 1 | local protobuf = require "protobuf" 2 | 3 | addr = io.open("../../build/addressbook.pb","rb") 4 | buffer = addr:read "*a" 5 | addr:close() 6 | 7 | protobuf.register(buffer) 8 | 9 | t = protobuf.decode("google.protobuf.FileDescriptorSet", buffer) 10 | 11 | proto = t.file[1] 12 | 13 | print(proto.name) 14 | print(proto.package) 15 | 16 | message = proto.message_type 17 | 18 | for _,v in ipairs(message) do 19 | print(v.name) 20 | for _,v in ipairs(v.field) do 21 | print("\t".. v.name .. " ["..v.number.."] " .. v.label) 22 | end 23 | end 24 | 25 | addressbook = { 26 | name = "Alice", 27 | id = 12345, 28 | phone = { 29 | { number = "1301234567" }, 30 | { number = "87654321", type = "WORK" }, 31 | } 32 | } 33 | 34 | code = protobuf.encode("tutorial.Person", addressbook) 35 | 36 | decode = protobuf.decode("tutorial.Person" , code) 37 | 38 | print(decode.name) 39 | print(decode.id) 40 | for _,v in ipairs(decode.phone) do 41 | print("\t"..v.number, v.type) 42 | end 43 | 44 | phonebuf = protobuf.pack("tutorial.Person.PhoneNumber number","87654321") 45 | buffer = protobuf.pack("tutorial.Person name id phone", "Alice", 123, { phonebuf }) 46 | print(protobuf.unpack("tutorial.Person name id phone", buffer)) 47 | -------------------------------------------------------------------------------- /build/pbc/license.txt: -------------------------------------------------------------------------------- 1 | Copyright (C) 2011 by Cloud Wu 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. -------------------------------------------------------------------------------- /build/pbc/pbc.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pbc", "pbc.vcxproj", "{82356F33-956B-4931-9977-BD7994B1C761}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {82356F33-956B-4931-9977-BD7994B1C761}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {82356F33-956B-4931-9977-BD7994B1C761}.Debug|Win32.Build.0 = Debug|Win32 14 | {82356F33-956B-4931-9977-BD7994B1C761}.Release|Win32.ActiveCfg = Release|Win32 15 | {82356F33-956B-4931-9977-BD7994B1C761}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /build/pbc/pbc.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /build/pbc/pbc/pbc-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'pbc' target in the 'pbc' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import "pbc.h" 8 | #endif 9 | -------------------------------------------------------------------------------- /build/pbc/src/alloc.h: -------------------------------------------------------------------------------- 1 | #ifndef PROTOBUF_C_ALLOC_H 2 | #define PROTOBUF_C_ALLOC_H 3 | 4 | #include 5 | #include 6 | 7 | void * _pbcM_malloc(size_t sz); 8 | void _pbcM_free(void *p); 9 | void * _pbcM_realloc(void *p, size_t sz); 10 | void _pbcM_memory(); 11 | 12 | struct heap; 13 | 14 | struct heap * _pbcH_new(int pagesize); 15 | void _pbcH_delete(struct heap *); 16 | void* _pbcH_alloc(struct heap *, int size); 17 | 18 | #define HMALLOC(size) ((h) ? _pbcH_alloc(h, size) : _pbcM_malloc(size)) 19 | 20 | #define malloc _pbcM_malloc 21 | #define free _pbcM_free 22 | #define realloc _pbcM_realloc 23 | #define memory _pbcM_memory 24 | 25 | #ifdef _WIN32 26 | 27 | #include 28 | 29 | #endif 30 | 31 | #ifdef _MSC_VER 32 | 33 | #define alloca _alloca 34 | 35 | #endif 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /build/pbc/src/array.h: -------------------------------------------------------------------------------- 1 | #ifndef PROTOBUF_C_ARRAY_H 2 | #define PROTOBUF_C_ARRAY_H 3 | 4 | #include "varint.h" 5 | #include "pbc.h" 6 | #include "alloc.h" 7 | 8 | typedef union _pbc_var { 9 | struct longlong integer; 10 | double real; 11 | struct { 12 | const char * str; 13 | int len; 14 | } s; 15 | struct { 16 | int id; 17 | const char * name; 18 | } e; 19 | struct pbc_slice m; 20 | void * p[2]; 21 | } pbc_var[1]; 22 | 23 | void _pbcA_open(pbc_array); 24 | void _pbcA_open_heap(pbc_array, struct heap *h); 25 | void _pbcA_close(pbc_array); 26 | 27 | void _pbcA_push(pbc_array, pbc_var var); 28 | void _pbcA_index(pbc_array , int idx, pbc_var var); 29 | void * _pbcA_index_p(pbc_array _array, int idx); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /build/pbc/src/bootstrap.h: -------------------------------------------------------------------------------- 1 | #ifndef PROTOBUF_C_BOOTSTRAP_H 2 | #define PROTOBUF_C_BOOTSTRAP_H 3 | 4 | #include "proto.h" 5 | #include "pbc.h" 6 | 7 | void _pbcB_init(struct pbc_env *); 8 | void _pbcB_register_fields(struct pbc_env *, pbc_array queue); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /build/pbc/src/map.h: -------------------------------------------------------------------------------- 1 | #ifndef PROTOBUF_C_MAP_H 2 | #define PROTOBUF_C_MAP_H 3 | 4 | #include "alloc.h" 5 | 6 | struct map_ip; 7 | struct map_si; 8 | struct map_sp; 9 | 10 | struct map_kv { 11 | int id; 12 | void *pointer; 13 | }; 14 | 15 | struct map_si * _pbcM_si_new(struct map_kv * table, int size); 16 | int _pbcM_si_query(struct map_si *map, const char *key, int *result); 17 | void _pbcM_si_delete(struct map_si *map); 18 | 19 | struct map_ip * _pbcM_ip_new(struct map_kv * table, int size); 20 | struct map_ip * _pbcM_ip_combine(struct map_ip * a, struct map_ip * b); 21 | void * _pbcM_ip_query(struct map_ip * map, int id); 22 | void _pbcM_ip_delete(struct map_ip *map); 23 | 24 | struct map_sp * _pbcM_sp_new(int max, struct heap *h); 25 | void _pbcM_sp_insert(struct map_sp *map, const char *key, void * value); 26 | void * _pbcM_sp_query(struct map_sp *map, const char *key); 27 | void ** _pbcM_sp_query_insert(struct map_sp *map, const char *key); 28 | void _pbcM_sp_delete(struct map_sp *map); 29 | void _pbcM_sp_foreach(struct map_sp *map, void (*func)(void *p)); 30 | void _pbcM_sp_foreach_ud(struct map_sp *map, void (*func)(void *p, void *ud), void *ud); 31 | void * _pbcM_sp_next(struct map_sp *map, const char ** key); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /build/pbc/src/pattern.h: -------------------------------------------------------------------------------- 1 | #ifndef PROTOBUF_C_PATTERN_H 2 | #define PROTOBUF_C_PATTERN_H 3 | 4 | #include "pbc.h" 5 | #include "context.h" 6 | #include "array.h" 7 | 8 | struct _pattern_field { 9 | int id; 10 | int offset; 11 | int ptype; 12 | int ctype; 13 | int label; 14 | pbc_var defv; 15 | }; 16 | 17 | struct pbc_pattern { 18 | struct pbc_env * env; 19 | int count; 20 | struct _pattern_field f[1]; 21 | }; 22 | 23 | struct pbc_pattern * _pbcP_new(struct pbc_env * env, int n); 24 | int _pbcP_unpack_packed(uint8_t *buffer, int size, int ptype, pbc_array array); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /build/pbc/src/stringpool.h: -------------------------------------------------------------------------------- 1 | #ifndef PROTOBUF_C_STRINGPOOL_H 2 | #define PROTOBUF_C_STRINGPOOL_H 3 | 4 | struct _stringpool; 5 | 6 | struct _stringpool * _pbcS_new(void); 7 | void _pbcS_delete(struct _stringpool *pool); 8 | const char * _pbcS_build(struct _stringpool *pool, const char * str , int sz); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /build/pbc/src/varint.h: -------------------------------------------------------------------------------- 1 | #ifndef PROTOBUF_C_VARINT_H 2 | #define PROTOBUF_C_VARINT_H 3 | 4 | #include 5 | 6 | struct longlong { 7 | uint32_t low; 8 | uint32_t hi; 9 | }; 10 | 11 | int _pbcV_encode32(uint32_t number, uint8_t buffer[10]); 12 | int _pbcV_encode(uint64_t number, uint8_t buffer[10]); 13 | int _pbcV_zigzag32(int32_t number, uint8_t buffer[10]); 14 | int _pbcV_zigzag(int64_t number, uint8_t buffer[10]); 15 | 16 | int _pbcV_decode(uint8_t buffer[10], struct longlong *result); 17 | void _pbcV_dezigzag64(struct longlong *r); 18 | void _pbcV_dezigzag32(struct longlong *r); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /build/pbc/test/addressbook.proto: -------------------------------------------------------------------------------- 1 | // See README.txt for information and build instructions. 2 | 3 | package tutorial; 4 | 5 | option java_package = "com.example.tutorial"; 6 | option java_outer_classname = "AddressBookProtos"; 7 | 8 | message Profile { 9 | optional string nick_name = 1; 10 | optional string icon = 2; 11 | } 12 | 13 | message Person { 14 | required string name = 1; 15 | required int32 id = 2; // Unique ID number for this person. 16 | optional string email = 3; 17 | 18 | enum PhoneType { 19 | MOBILE = 0; 20 | HOME = 1; 21 | WORK = 2; 22 | } 23 | 24 | message PhoneNumber { 25 | required string number = 1; 26 | optional PhoneType type = 2 [default = HOME]; 27 | } 28 | 29 | repeated PhoneNumber phone = 4; 30 | repeated int32 test = 5 [packed=true]; 31 | 32 | optional Profile profile = 6; 33 | 34 | extensions 10 to max; 35 | } 36 | 37 | message Ext { 38 | extend Person { 39 | optional int32 test = 10; 40 | } 41 | } 42 | 43 | // Our address book file is just one of these. 44 | message AddressBook { 45 | repeated Person person = 1; 46 | } 47 | -------------------------------------------------------------------------------- /build/pbc/test/array.c: -------------------------------------------------------------------------------- 1 | #include "pbc.h" 2 | #include "alloc.h" 3 | #include "array.h" 4 | 5 | #include 6 | 7 | int 8 | main() 9 | { 10 | pbc_array array; 11 | pbc_var v; 12 | 13 | _pbcA_open(array); 14 | 15 | int i ; 16 | 17 | for (i=0;i<100;i++) { 18 | v->real = (double)i; 19 | printf("push %d\n",i); 20 | _pbcA_push(array, v); 21 | } 22 | 23 | int s = pbc_array_size(array); 24 | 25 | for (i=0;ireal); 28 | } 29 | 30 | _pbcA_close(array); 31 | 32 | return 0; 33 | } 34 | -------------------------------------------------------------------------------- /build/pbc/test/float.proto: -------------------------------------------------------------------------------- 1 | message real { 2 | optional float f = 1; 3 | optional double d = 2; 4 | } 5 | -------------------------------------------------------------------------------- /build/pbc/test/readfile.h: -------------------------------------------------------------------------------- 1 | #ifndef readfile_h 2 | #define readfile_h 3 | 4 | #include 5 | #include 6 | 7 | static void 8 | read_file (const char *filename , struct pbc_slice *slice) { 9 | FILE *f = fopen(filename, "rb"); 10 | if (f == NULL) { 11 | slice->buffer = NULL; 12 | slice->len = 0; 13 | return; 14 | } 15 | fseek(f,0,SEEK_END); 16 | slice->len = ftell(f); 17 | fseek(f,0,SEEK_SET); 18 | slice->buffer = malloc(slice->len); 19 | if (fread(slice->buffer, 1 , slice->len , f) == 0) 20 | exit(1); 21 | fclose(f); 22 | } 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /build/pbc/test/test.c: -------------------------------------------------------------------------------- 1 | #include "pbc.h" 2 | 3 | #include 4 | #include 5 | #include 6 | 7 | #define COUNT 1000000 8 | 9 | #include "readfile.h" 10 | 11 | static void 12 | test(struct pbc_env *env) { 13 | int i; 14 | for(i=0; i 2 | 3 | #include "varint.h" 4 | #include "pbc.h" 5 | 6 | static void 7 | dump(uint8_t buffer[10], int s) 8 | { 9 | int i; 10 | for (i=0;i 2 | #include 3 | 4 | int* xlua_hotfix_flags = NULL; 5 | int xlua_hotfix_flags_len = 0; 6 | 7 | extern "C" { 8 | 9 | int xlua_get_hotfix_flag(int idx) { 10 | if (idx >= xlua_hotfix_flags_len) { 11 | return 0; 12 | } else { 13 | return xlua_hotfix_flags[idx]; 14 | } 15 | } 16 | 17 | void xlua_set_hotfix_flag(int idx, int flag) { 18 | int i = 0; 19 | int* new_hotfix_flags = NULL; 20 | if (idx >= xlua_hotfix_flags_len) { 21 | if (xlua_hotfix_flags == NULL) { 22 | xlua_hotfix_flags = (int*)malloc((idx + 1) * sizeof(int)); 23 | } else { 24 | new_hotfix_flags = (int*)realloc(xlua_hotfix_flags, (idx + 1) * sizeof(int)); 25 | if (NULL == new_hotfix_flags) { // just skip operation 26 | return; 27 | } 28 | xlua_hotfix_flags = new_hotfix_flags; 29 | } 30 | for(i = xlua_hotfix_flags_len; i < (idx + 1); i++) { 31 | xlua_hotfix_flags[i] = 0; 32 | } 33 | xlua_hotfix_flags_len = idx + 1; 34 | } 35 | xlua_hotfix_flags[idx] = flag; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /build/plugin_lua53/Plugins/iOS/libxlua.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/plugin_lua53/Plugins/iOS/libxlua.a -------------------------------------------------------------------------------- /build/plugin_lua53/Plugins/x86/libxlua.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/plugin_lua53/Plugins/x86/libxlua.so -------------------------------------------------------------------------------- /build/plugin_lua53/Plugins/x86/xlua.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/plugin_lua53/Plugins/x86/xlua.dll -------------------------------------------------------------------------------- /build/plugin_lua53/Plugins/x86_64/libxlua.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/plugin_lua53/Plugins/x86_64/libxlua.so -------------------------------------------------------------------------------- /build/plugin_lua53/Plugins/x86_64/xlua.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/plugin_lua53/Plugins/x86_64/xlua.dll -------------------------------------------------------------------------------- /build/plugin_lua53/Plugins/xlua.bundle/Contents/MacOS/xlua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/plugin_lua53/Plugins/xlua.bundle/Contents/MacOS/xlua -------------------------------------------------------------------------------- /build/plugin_luajit/Plugins/Android/libs/armeabi-v7a/libxlua.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/plugin_luajit/Plugins/Android/libs/armeabi-v7a/libxlua.so -------------------------------------------------------------------------------- /build/plugin_luajit/Plugins/Android/libs/x86/libxlua.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/plugin_luajit/Plugins/Android/libs/x86/libxlua.so -------------------------------------------------------------------------------- /build/plugin_luajit/Plugins/iOS/HotfixFlags.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int* xlua_hotfix_flags = NULL; 5 | int xlua_hotfix_flags_len = 0; 6 | 7 | extern "C" { 8 | 9 | int xlua_get_hotfix_flag(int idx) { 10 | if (idx >= xlua_hotfix_flags_len) { 11 | return 0; 12 | } else { 13 | return xlua_hotfix_flags[idx]; 14 | } 15 | } 16 | 17 | void xlua_set_hotfix_flag(int idx, int flag) { 18 | int i = 0; 19 | int* new_hotfix_flags = NULL; 20 | if (idx >= xlua_hotfix_flags_len) { 21 | if (xlua_hotfix_flags == NULL) { 22 | xlua_hotfix_flags = (int*)malloc((idx + 1) * sizeof(int)); 23 | } else { 24 | new_hotfix_flags = (int*)realloc(xlua_hotfix_flags, (idx + 1) * sizeof(int)); 25 | if (NULL == new_hotfix_flags) { // just skip operation 26 | return; 27 | } 28 | xlua_hotfix_flags = new_hotfix_flags; 29 | } 30 | for(i = xlua_hotfix_flags_len; i < (idx + 1); i++) { 31 | xlua_hotfix_flags[i] = 0; 32 | } 33 | xlua_hotfix_flags_len = idx + 1; 34 | } 35 | xlua_hotfix_flags[idx] = flag; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /build/plugin_luajit/Plugins/iOS/libxlua.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/plugin_luajit/Plugins/iOS/libxlua.a -------------------------------------------------------------------------------- /build/plugin_luajit/Plugins/x86/xlua.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/plugin_luajit/Plugins/x86/xlua.dll -------------------------------------------------------------------------------- /build/plugin_luajit/Plugins/x86_64/xlua.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/plugin_luajit/Plugins/x86_64/xlua.dll -------------------------------------------------------------------------------- /build/plugin_luajit/Plugins/xlua.bundle/Contents/MacOS/xlua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/91Act/build_xlua_with_libs/a8bc0f9603be70142b99efb0b4e65237a49ef0a1/build/plugin_luajit/Plugins/xlua.bundle/Contents/MacOS/xlua --------------------------------------------------------------------------------