├── .gitattributes ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── applications ├── bin │ ├── config │ │ ├── center_info.ini │ │ ├── config_info.ini │ │ ├── gateway_info.ini │ │ ├── login_info.ini │ │ ├── machine_info.ini │ │ ├── scene_info.ini │ │ ├── server_info.ini │ │ └── share_memory_info.ini │ └── public │ │ └── data │ │ ├── script │ │ ├── global.lua │ │ ├── preload.lua │ │ └── test.lua │ │ └── setting │ │ ├── hairstyle.txt │ │ └── hostset.ini ├── common │ ├── include │ │ └── common │ │ │ ├── config.h │ │ │ ├── db │ │ │ ├── config.h │ │ │ └── define.h │ │ │ ├── define │ │ │ ├── all.h │ │ │ ├── config.h │ │ │ ├── enum.h │ │ │ ├── file.h │ │ │ ├── log.h │ │ │ ├── macros.h │ │ │ └── net │ │ │ │ ├── config.h │ │ │ │ └── packet │ │ │ │ ├── config.h │ │ │ │ └── id │ │ │ │ ├── all.h │ │ │ │ ├── clientlogin.h │ │ │ │ ├── clientserver.h │ │ │ │ ├── config.h │ │ │ │ ├── gatewaylogin.h │ │ │ │ ├── logincenter.h │ │ │ │ ├── servercenter.h │ │ │ │ └── serverserver.h │ │ │ ├── net │ │ │ ├── config.h │ │ │ ├── connection │ │ │ │ ├── config.h │ │ │ │ └── server.h │ │ │ ├── manager │ │ │ │ ├── config.h │ │ │ │ └── server.h │ │ │ ├── packet │ │ │ │ ├── client_tologin │ │ │ │ │ ├── ask_login.h │ │ │ │ │ ├── asklogin.h │ │ │ │ │ └── config.h │ │ │ │ ├── config.h │ │ │ │ ├── gateway_tologin │ │ │ │ │ ├── config.h │ │ │ │ │ └── resultauth.h │ │ │ │ ├── login_tocenter │ │ │ │ │ ├── config.h │ │ │ │ │ └── require_playerlogin.h │ │ │ │ ├── login_toclient │ │ │ │ │ ├── config.h │ │ │ │ │ ├── resultlogin.h │ │ │ │ │ └── turnstatus.h │ │ │ │ ├── login_togateway │ │ │ │ │ ├── askauth.h │ │ │ │ │ ├── config.h │ │ │ │ │ ├── playerleave.h │ │ │ │ │ └── playeronline.h │ │ │ │ └── serverserver │ │ │ │ │ ├── config.h │ │ │ │ │ └── connect.h │ │ │ └── packetfactory.h │ │ │ ├── setting.h │ │ │ └── sharememory │ │ │ ├── config.h │ │ │ └── define.h │ └── src │ │ ├── db │ │ └── define.cc │ │ ├── net │ │ ├── connection │ │ │ └── server.cc │ │ ├── manager │ │ │ └── server.cc │ │ ├── packet │ │ │ ├── client_tologin │ │ │ │ ├── ask_login.cc │ │ │ │ └── asklogin.cc │ │ │ ├── gateway_tologin │ │ │ │ └── resultauth.cc │ │ │ ├── login_tocenter │ │ │ │ └── require_playerlogin.cc │ │ │ ├── login_toclient │ │ │ │ ├── resultlogin.cc │ │ │ │ └── turnstatus.cc │ │ │ ├── login_togateway │ │ │ │ ├── askauth.cc │ │ │ │ ├── playerleave.cc │ │ │ │ └── playeronline.cc │ │ │ └── serverserver │ │ │ │ └── connect.cc │ │ └── packetfactory.cc │ │ ├── setting.cc │ │ └── sharememory │ │ └── define.cc ├── gateway │ ├── CMakeLists.txt │ ├── include │ │ ├── .keepme │ │ ├── application │ │ │ └── config.h │ │ ├── db │ │ │ ├── config.h │ │ │ └── user.h │ │ ├── engine │ │ │ ├── config.h │ │ │ └── system.h │ │ ├── gateway.h │ │ └── message │ │ │ ├── config.h │ │ │ └── delegator │ │ │ ├── account.h │ │ │ └── config.h │ ├── mk_tags │ ├── replace.sh │ ├── scripts │ │ ├── gateway.vc9.sln │ │ └── gateway.vc9.vcproj │ └── src │ │ ├── CMakeLists.txt │ │ ├── db │ │ └── user.cc │ │ ├── engine │ │ └── system.cc │ │ ├── gateway.cc │ │ └── message │ │ ├── delegator │ │ └── account.cc │ │ └── handler │ │ ├── gateway_tologin │ │ └── resultauth.cc │ │ ├── login_togateway │ │ ├── askauth.cc │ │ ├── playerleave.cc │ │ └── playeronline.cc │ │ └── serverserver │ │ └── connect.cc └── pf_simple │ ├── CMakeLists.txt │ ├── include │ └── main.h │ ├── scripts │ ├── pf_simple.vc9.sln │ └── pf_simple.vc9.vcproj │ └── src │ ├── CMakeLists.txt │ └── main.cc ├── documentation ├── examples │ └── gateway.gif └── manual │ ├── css │ └── style.css │ ├── docs │ ├── base.global.htm │ ├── base.hashmap.htm │ ├── base.log.htm │ ├── base.macro.htm │ ├── base.string.htm │ ├── base.timemanager.htm │ ├── base.tinytimer.htm │ ├── base.util.htm │ ├── db.manager.htm │ ├── db.odbc.htm │ ├── engine.kernel.htm │ ├── engine.thread.htm │ ├── event.manager.htm │ ├── file.api.htm │ ├── file.database.htm │ ├── file.ini.htm │ ├── hairstyle.txt │ ├── hostset.ini │ ├── license.htm │ ├── module.htm │ ├── net.connection.htm │ ├── net.manager.htm │ ├── net.packet.htm │ ├── net.socket.htm │ ├── performance.eyes.htm │ ├── script.cache.htm │ ├── script.lua.htm │ ├── simpletutorials.htm │ ├── style-guide.htm │ ├── sys.info.htm │ ├── sys.memory.htm │ ├── sys.process.htm │ ├── sys.thread.htm │ ├── sys.util.htm │ └── util.compressor.htm │ ├── images │ ├── pf_base_module.png │ ├── pf_db_module.png │ ├── pf_engine_module.png │ ├── pf_event_module.png │ ├── pf_file_module.png │ ├── pf_modules.png │ ├── pf_net_module.png │ ├── pf_performance_module.png │ ├── pf_script_module.png │ ├── pf_simple_linux.png │ ├── pf_simple_windows.png │ ├── pf_sys_module.png │ └── pf_util_module.png │ ├── index.htm │ └── js │ ├── main.js │ ├── plugins.js │ └── vendor │ ├── jquery-1.8.2.min.js │ ├── modernizr-2.6.2.min.js │ └── prettify.js ├── pf ├── core │ ├── include │ │ ├── pf.h │ │ └── pf │ │ │ ├── base │ │ │ ├── atomic.h │ │ │ ├── base64.hpp │ │ │ ├── config.h │ │ │ ├── define.h │ │ │ ├── global.h │ │ │ ├── hashmap │ │ │ │ ├── config.h │ │ │ │ ├── integer.h │ │ │ │ ├── template.h │ │ │ │ └── template.tpp │ │ │ ├── io.h │ │ │ ├── log.h │ │ │ ├── log.tpp │ │ │ ├── md5.h │ │ │ ├── singleton.h │ │ │ ├── string.h │ │ │ ├── time_manager.h │ │ │ ├── tinytimer.h │ │ │ └── util.h │ │ │ ├── cache │ │ │ ├── config.h │ │ │ ├── dbstore.h │ │ │ ├── define.h │ │ │ ├── manager.h │ │ │ ├── repository.h │ │ │ └── storeinterface.h │ │ │ ├── db │ │ │ ├── config.h │ │ │ ├── define.h │ │ │ ├── manager.h │ │ │ ├── odbc │ │ │ │ ├── config.h │ │ │ │ ├── interface.h │ │ │ │ ├── none.h │ │ │ │ └── system.h │ │ │ └── query.h │ │ │ ├── engine │ │ │ ├── config.h │ │ │ ├── kernel.h │ │ │ └── thread │ │ │ │ ├── config.h │ │ │ │ ├── db.h │ │ │ │ ├── net.h │ │ │ │ ├── performance.h │ │ │ │ └── script.h │ │ │ ├── event │ │ │ ├── config.h │ │ │ └── system.h │ │ │ ├── file │ │ │ ├── api.h │ │ │ ├── config.h │ │ │ ├── database.h │ │ │ └── ini.h │ │ │ ├── net │ │ │ ├── config.h │ │ │ ├── connection │ │ │ │ ├── base.h │ │ │ │ ├── config.h │ │ │ │ ├── manager │ │ │ │ │ ├── base.h │ │ │ │ │ ├── config.h │ │ │ │ │ ├── epoll.h │ │ │ │ │ ├── iocp.h │ │ │ │ │ └── select.h │ │ │ │ └── pool.h │ │ │ ├── manager.h │ │ │ ├── packet │ │ │ │ ├── base.h │ │ │ │ ├── config.h │ │ │ │ ├── dynamic.h │ │ │ │ ├── factory.h │ │ │ │ └── factorymanager.h │ │ │ └── socket │ │ │ │ ├── api.h │ │ │ │ ├── base.h │ │ │ │ ├── compressor.h │ │ │ │ ├── config.h │ │ │ │ ├── encryptor.h │ │ │ │ ├── extend.inl │ │ │ │ ├── inputstream.h │ │ │ │ ├── outputstream.h │ │ │ │ ├── server.h │ │ │ │ └── stream.h │ │ │ ├── performance │ │ │ ├── config.h │ │ │ └── eyes.h │ │ │ ├── script │ │ │ ├── cache │ │ │ │ ├── base.h │ │ │ │ ├── config.h │ │ │ │ └── manager.h │ │ │ ├── config.h │ │ │ └── lua │ │ │ │ ├── config.h │ │ │ │ ├── filebridge.h │ │ │ │ ├── interface.h │ │ │ │ ├── lunar.h │ │ │ │ ├── none.h │ │ │ │ ├── stack.h │ │ │ │ ├── system.h │ │ │ │ └── vm.h │ │ │ ├── sys │ │ │ ├── assert.h │ │ │ ├── config.h │ │ │ ├── info.h │ │ │ ├── memory │ │ │ │ ├── config.h │ │ │ │ ├── dynamic_allocator.h │ │ │ │ ├── share.h │ │ │ │ ├── share.tpp │ │ │ │ ├── sharemap.h │ │ │ │ └── static_allocator.h │ │ │ ├── minidump.h │ │ │ ├── process.h │ │ │ ├── thread.h │ │ │ └── util.h │ │ │ └── util │ │ │ ├── bitflag.h │ │ │ ├── compressor │ │ │ ├── assistant.h │ │ │ ├── config.h │ │ │ ├── lzoconf.h │ │ │ ├── lzodefs.h │ │ │ ├── mini.h │ │ │ ├── minilzo.h │ │ │ └── minimanager.h │ │ │ ├── config.h │ │ │ └── random.h │ ├── mk_tags │ ├── pf_core.pproject │ ├── pf_cores.pproject │ ├── proj.linux │ │ └── CMakeLists.txt │ ├── proj.linux1 │ │ └── CMakeLists.txt │ ├── proj.win │ │ ├── pf_core.rc │ │ ├── pf_core.sln │ │ ├── pf_core.vcxproj │ │ ├── pf_core.vcxproj.filters │ │ └── resource.h │ ├── proj.win1 │ │ ├── pf_cores.rc │ │ ├── pf_cores.sln │ │ ├── pf_cores.vcxproj │ │ ├── pf_cores.vcxproj.filters │ │ └── resource.h │ ├── replace.sh │ └── src │ │ ├── base │ │ ├── define.cc │ │ ├── global.cc │ │ ├── hashmap │ │ │ └── integer.cc │ │ ├── io.cc │ │ ├── log.cc │ │ ├── md5.cc │ │ ├── string.cc │ │ ├── time_manager.cc │ │ ├── tinytimer.cc │ │ └── util.cc │ │ ├── cache │ │ ├── dbstore.cc │ │ ├── define.cc │ │ ├── manager.cc │ │ └── repository.cc │ │ ├── db │ │ ├── define.cc │ │ ├── manager.cc │ │ ├── odbc │ │ │ ├── interface.cc │ │ │ └── system.cc │ │ └── query.cc │ │ ├── engine │ │ ├── kernel.cc │ │ └── thread │ │ │ ├── db.cc │ │ │ ├── net.cc │ │ │ ├── performance.cc │ │ │ └── script.cc │ │ ├── event │ │ └── system.cc │ │ ├── file │ │ ├── api.cc │ │ ├── database.cc │ │ └── ini.cc │ │ ├── net │ │ ├── connection │ │ │ ├── base.cc │ │ │ ├── manager │ │ │ │ ├── base.cc │ │ │ │ ├── epoll.cc │ │ │ │ ├── iocp.cc │ │ │ │ └── select.cc │ │ │ └── pool.cc │ │ ├── manager.cc │ │ ├── packet │ │ │ ├── base.cc │ │ │ ├── dynamic.cc │ │ │ └── factorymanager.cc │ │ └── socket │ │ │ ├── api.cc │ │ │ ├── base.cc │ │ │ ├── compressor.cc │ │ │ ├── encryptor.cc │ │ │ ├── inputstream.cc │ │ │ ├── outputstream.cc │ │ │ ├── server.cc │ │ │ └── stream.cc │ │ ├── performance │ │ └── eyes.cc │ │ ├── script │ │ ├── cache │ │ │ ├── base.cc │ │ │ └── manager.cc │ │ └── lua │ │ │ ├── filebridge.cc │ │ │ ├── interface.cc │ │ │ ├── lunar.cc │ │ │ ├── stack.cc │ │ │ ├── system.cc │ │ │ └── vm.cc │ │ ├── sys │ │ ├── assert.cc │ │ ├── info.cc │ │ ├── memory │ │ │ ├── dynamic_allocator.cc │ │ │ ├── share.cc │ │ │ ├── sharemap.cc │ │ │ └── static_allocator.cc │ │ ├── minidump.cc │ │ ├── process.cc │ │ ├── thread.cc │ │ └── util.cc │ │ └── util │ │ ├── bitflag.cc │ │ ├── compressor │ │ ├── assistant.cc │ │ ├── mini.cc │ │ ├── minilzo.c │ │ └── minimanager.cc │ │ └── random.cc ├── dependencies │ ├── iconv │ │ ├── README.txt │ │ ├── iconv.pproject │ │ ├── include │ │ │ ├── aliases.h │ │ │ ├── aliases2.h │ │ │ ├── aliases_aix.h │ │ │ ├── aliases_aix_sysaix.h │ │ │ ├── aliases_dos.h │ │ │ ├── aliases_extra.h │ │ │ ├── aliases_osf1.h │ │ │ ├── aliases_osf1_sysosf1.h │ │ │ ├── aliases_sysaix.h │ │ │ ├── aliases_syshpux.h │ │ │ ├── aliases_sysosf1.h │ │ │ ├── aliases_syssolaris.h │ │ │ ├── armscii_8.h │ │ │ ├── ascii.h │ │ │ ├── atarist.h │ │ │ ├── big5.h │ │ │ ├── big5_2003.h │ │ │ ├── big5hkscs1999.h │ │ │ ├── big5hkscs2001.h │ │ │ ├── big5hkscs2004.h │ │ │ ├── big5hkscs2008.h │ │ │ ├── c99.h │ │ │ ├── canonical.h │ │ │ ├── canonical_aix.h │ │ │ ├── canonical_aix_sysaix.h │ │ │ ├── canonical_dos.h │ │ │ ├── canonical_extra.h │ │ │ ├── canonical_local.h │ │ │ ├── canonical_local_sysaix.h │ │ │ ├── canonical_local_syshpux.h │ │ │ ├── canonical_local_sysosf1.h │ │ │ ├── canonical_local_syssolaris.h │ │ │ ├── canonical_osf1.h │ │ │ ├── canonical_osf1_sysosf1.h │ │ │ ├── canonical_sysaix.h │ │ │ ├── canonical_syshpux.h │ │ │ ├── canonical_sysosf1.h │ │ │ ├── canonical_syssolaris.h │ │ │ ├── ces_big5.h │ │ │ ├── ces_gbk.h │ │ │ ├── cjk_variants.h │ │ │ ├── cns11643.h │ │ │ ├── cns11643_1.h │ │ │ ├── cns11643_15.h │ │ │ ├── cns11643_2.h │ │ │ ├── cns11643_3.h │ │ │ ├── cns11643_4.h │ │ │ ├── cns11643_4a.h │ │ │ ├── cns11643_4b.h │ │ │ ├── cns11643_5.h │ │ │ ├── cns11643_6.h │ │ │ ├── cns11643_7.h │ │ │ ├── cns11643_inv.h │ │ │ ├── config.h │ │ │ ├── converters.h │ │ │ ├── cp1046.h │ │ │ ├── cp1124.h │ │ │ ├── cp1125.h │ │ │ ├── cp1129.h │ │ │ ├── cp1131.h │ │ │ ├── cp1133.h │ │ │ ├── cp1161.h │ │ │ ├── cp1162.h │ │ │ ├── cp1163.h │ │ │ ├── cp1250.h │ │ │ ├── cp1251.h │ │ │ ├── cp1252.h │ │ │ ├── cp1253.h │ │ │ ├── cp1254.h │ │ │ ├── cp1255.h │ │ │ ├── cp1256.h │ │ │ ├── cp1257.h │ │ │ ├── cp1258.h │ │ │ ├── cp437.h │ │ │ ├── cp737.h │ │ │ ├── cp775.h │ │ │ ├── cp850.h │ │ │ ├── cp852.h │ │ │ ├── cp853.h │ │ │ ├── cp855.h │ │ │ ├── cp856.h │ │ │ ├── cp857.h │ │ │ ├── cp858.h │ │ │ ├── cp860.h │ │ │ ├── cp861.h │ │ │ ├── cp862.h │ │ │ ├── cp863.h │ │ │ ├── cp864.h │ │ │ ├── cp865.h │ │ │ ├── cp866.h │ │ │ ├── cp869.h │ │ │ ├── cp874.h │ │ │ ├── cp922.h │ │ │ ├── cp932.h │ │ │ ├── cp932ext.h │ │ │ ├── cp936.h │ │ │ ├── cp936ext.h │ │ │ ├── cp943.h │ │ │ ├── cp949.h │ │ │ ├── cp950.h │ │ │ ├── cp950ext.h │ │ │ ├── dec_hanyu.h │ │ │ ├── dec_kanji.h │ │ │ ├── encodings.def │ │ │ ├── encodings_aix.def │ │ │ ├── encodings_dos.def │ │ │ ├── encodings_extra.def │ │ │ ├── encodings_local.def │ │ │ ├── encodings_osf1.def │ │ │ ├── euc_cn.h │ │ │ ├── euc_jisx0213.h │ │ │ ├── euc_jp.h │ │ │ ├── euc_kr.h │ │ │ ├── euc_tw.h │ │ │ ├── flags.h │ │ │ ├── flushwc.h │ │ │ ├── gb12345.h │ │ │ ├── gb12345ext.h │ │ │ ├── gb18030.h │ │ │ ├── gb18030ext.h │ │ │ ├── gb18030uni.h │ │ │ ├── gb2312.h │ │ │ ├── gbk.h │ │ │ ├── gbkext1.h │ │ │ ├── gbkext2.h │ │ │ ├── gbkext_inv.h │ │ │ ├── georgian_academy.h │ │ │ ├── georgian_ps.h │ │ │ ├── hkscs1999.h │ │ │ ├── hkscs2001.h │ │ │ ├── hkscs2004.h │ │ │ ├── hkscs2008.h │ │ │ ├── hp_roman8.h │ │ │ ├── hz.h │ │ │ ├── iconv.h │ │ │ ├── iconv_open1.h │ │ │ ├── iconv_open2.h │ │ │ ├── iso2022_cn.h │ │ │ ├── iso2022_cnext.h │ │ │ ├── iso2022_jp.h │ │ │ ├── iso2022_jp1.h │ │ │ ├── iso2022_jp2.h │ │ │ ├── iso2022_jp3.h │ │ │ ├── iso2022_kr.h │ │ │ ├── iso646_cn.h │ │ │ ├── iso646_jp.h │ │ │ ├── iso8859_1.h │ │ │ ├── iso8859_10.h │ │ │ ├── iso8859_11.h │ │ │ ├── iso8859_13.h │ │ │ ├── iso8859_14.h │ │ │ ├── iso8859_15.h │ │ │ ├── iso8859_16.h │ │ │ ├── iso8859_2.h │ │ │ ├── iso8859_3.h │ │ │ ├── iso8859_4.h │ │ │ ├── iso8859_5.h │ │ │ ├── iso8859_6.h │ │ │ ├── iso8859_7.h │ │ │ ├── iso8859_8.h │ │ │ ├── iso8859_9.h │ │ │ ├── isoir165.h │ │ │ ├── isoir165ext.h │ │ │ ├── java.h │ │ │ ├── jisx0201.h │ │ │ ├── jisx0208.h │ │ │ ├── jisx0212.h │ │ │ ├── jisx0213.h │ │ │ ├── johab.h │ │ │ ├── johab_hangul.h │ │ │ ├── koi8_r.h │ │ │ ├── koi8_ru.h │ │ │ ├── koi8_t.h │ │ │ ├── koi8_u.h │ │ │ ├── ksc5601.h │ │ │ ├── localcharset.h │ │ │ ├── loop_unicode.h │ │ │ ├── loop_wchar.h │ │ │ ├── loops.h │ │ │ ├── mac_arabic.h │ │ │ ├── mac_centraleurope.h │ │ │ ├── mac_croatian.h │ │ │ ├── mac_cyrillic.h │ │ │ ├── mac_greek.h │ │ │ ├── mac_hebrew.h │ │ │ ├── mac_iceland.h │ │ │ ├── mac_roman.h │ │ │ ├── mac_romania.h │ │ │ ├── mac_thai.h │ │ │ ├── mac_turkish.h │ │ │ ├── mac_ukraine.h │ │ │ ├── mulelao.h │ │ │ ├── nextstep.h │ │ │ ├── pt154.h │ │ │ ├── relocatable.h │ │ │ ├── riscos1.h │ │ │ ├── rk1048.h │ │ │ ├── shift_jisx0213.h │ │ │ ├── sjis.h │ │ │ ├── tcvn.h │ │ │ ├── tds565.h │ │ │ ├── tis620.h │ │ │ ├── translit.def │ │ │ ├── translit.h │ │ │ ├── ucs2.h │ │ │ ├── ucs2be.h │ │ │ ├── ucs2internal.h │ │ │ ├── ucs2le.h │ │ │ ├── ucs2swapped.h │ │ │ ├── ucs4.h │ │ │ ├── ucs4be.h │ │ │ ├── ucs4internal.h │ │ │ ├── ucs4le.h │ │ │ ├── ucs4swapped.h │ │ │ ├── uhc_1.h │ │ │ ├── uhc_2.h │ │ │ ├── utf16.h │ │ │ ├── utf16be.h │ │ │ ├── utf16le.h │ │ │ ├── utf32.h │ │ │ ├── utf32be.h │ │ │ ├── utf32le.h │ │ │ ├── utf7.h │ │ │ ├── utf8.h │ │ │ ├── vietcomb.h │ │ │ └── viscii.h │ │ ├── mk_tags │ │ ├── proj.linux │ │ │ └── CMakeLists.txt │ │ ├── proj.win │ │ │ ├── iconv.rc │ │ │ ├── iconv.vcxproj │ │ │ ├── iconv.vcxproj.filters │ │ │ └── resource.h │ │ └── src │ │ │ ├── CMakeLists.txt │ │ │ ├── CMakeLists32.txt │ │ │ ├── CMakeLists64.txt │ │ │ ├── iconv.c │ │ │ ├── libiconv.rc │ │ │ ├── localcharset.c │ │ │ └── relocatable.c │ ├── lua │ │ ├── 5.1.4 │ │ │ ├── CMakeLists.txt │ │ │ ├── include │ │ │ │ ├── lapi.h │ │ │ │ ├── lauxlib.h │ │ │ │ ├── lcode.h │ │ │ │ ├── ldebug.h │ │ │ │ ├── ldo.h │ │ │ │ ├── lfunc.h │ │ │ │ ├── lgc.h │ │ │ │ ├── llex.h │ │ │ │ ├── llimits.h │ │ │ │ ├── lmem.h │ │ │ │ ├── lobject.h │ │ │ │ ├── lopcodes.h │ │ │ │ ├── lparser.h │ │ │ │ ├── lstate.h │ │ │ │ ├── lstring.h │ │ │ │ ├── ltable.h │ │ │ │ ├── ltm.h │ │ │ │ ├── lua.h │ │ │ │ ├── lua.hpp │ │ │ │ ├── luaconf.h │ │ │ │ ├── lualib.h │ │ │ │ ├── lundump.h │ │ │ │ ├── lvm.h │ │ │ │ └── lzio.h │ │ │ ├── lua.pproject │ │ │ ├── proj.linux │ │ │ │ └── CMakeLists.txt │ │ │ ├── proj.win │ │ │ │ ├── lua.rc │ │ │ │ ├── lua.vcxproj │ │ │ │ ├── lua.vcxproj.filters │ │ │ │ └── resource.h │ │ │ ├── scripts │ │ │ │ ├── liblua.vcxproj │ │ │ │ ├── liblua.vcxproj.filters │ │ │ │ ├── lua.rc │ │ │ │ ├── lua.sln │ │ │ │ └── resource.h │ │ │ └── src │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── lapi.c │ │ │ │ ├── lauxlib.c │ │ │ │ ├── lbaselib.c │ │ │ │ ├── lcode.c │ │ │ │ ├── ldblib.c │ │ │ │ ├── ldebug.c │ │ │ │ ├── ldo.c │ │ │ │ ├── ldump.c │ │ │ │ ├── lfunc.c │ │ │ │ ├── lgc.c │ │ │ │ ├── linit.c │ │ │ │ ├── liolib.c │ │ │ │ ├── llex.c │ │ │ │ ├── lmathlib.c │ │ │ │ ├── lmem.c │ │ │ │ ├── loadlib.c │ │ │ │ ├── lobject.c │ │ │ │ ├── lopcodes.c │ │ │ │ ├── loslib.c │ │ │ │ ├── lparser.c │ │ │ │ ├── lstate.c │ │ │ │ ├── lstring.c │ │ │ │ ├── lstrlib.c │ │ │ │ ├── ltable.c │ │ │ │ ├── ltablib.c │ │ │ │ ├── ltm.c │ │ │ │ ├── lua.c │ │ │ │ ├── luac.c │ │ │ │ ├── lundump.c │ │ │ │ ├── lvm.c │ │ │ │ ├── lzio.c │ │ │ │ └── print.c │ │ ├── 5.2.3 │ │ │ ├── CMakeLists.txt │ │ │ ├── include │ │ │ │ ├── lapi.h │ │ │ │ ├── lauxlib.h │ │ │ │ ├── lcode.h │ │ │ │ ├── lctype.h │ │ │ │ ├── ldebug.h │ │ │ │ ├── ldo.h │ │ │ │ ├── lfunc.h │ │ │ │ ├── lgc.h │ │ │ │ ├── llex.h │ │ │ │ ├── llimits.h │ │ │ │ ├── lmem.h │ │ │ │ ├── lobject.h │ │ │ │ ├── lopcodes.h │ │ │ │ ├── lparser.h │ │ │ │ ├── lstate.h │ │ │ │ ├── lstring.h │ │ │ │ ├── ltable.h │ │ │ │ ├── ltm.h │ │ │ │ ├── lua.h │ │ │ │ ├── lua.hpp │ │ │ │ ├── luaconf.h │ │ │ │ ├── lualib.h │ │ │ │ ├── lundump.h │ │ │ │ ├── lvm.h │ │ │ │ └── lzio.h │ │ │ ├── lua.pproject │ │ │ ├── proj.linux │ │ │ │ └── CMakeLists.txt │ │ │ ├── proj.win │ │ │ │ ├── lua.rc │ │ │ │ ├── lua.vcxproj │ │ │ │ ├── lua.vcxproj.filters │ │ │ │ └── resource.h │ │ │ └── src │ │ │ │ ├── lapi.c │ │ │ │ ├── lauxlib.c │ │ │ │ ├── lbaselib.c │ │ │ │ ├── lbitlib.c │ │ │ │ ├── lcode.c │ │ │ │ ├── lcorolib.c │ │ │ │ ├── lctype.c │ │ │ │ ├── ldblib.c │ │ │ │ ├── ldebug.c │ │ │ │ ├── ldo.c │ │ │ │ ├── ldump.c │ │ │ │ ├── lfunc.c │ │ │ │ ├── lgc.c │ │ │ │ ├── linit.c │ │ │ │ ├── liolib.c │ │ │ │ ├── llex.c │ │ │ │ ├── lmathlib.c │ │ │ │ ├── lmem.c │ │ │ │ ├── loadlib.c │ │ │ │ ├── lobject.c │ │ │ │ ├── lopcodes.c │ │ │ │ ├── loslib.c │ │ │ │ ├── lparser.c │ │ │ │ ├── lstate.c │ │ │ │ ├── lstring.c │ │ │ │ ├── lstrlib.c │ │ │ │ ├── ltable.c │ │ │ │ ├── ltablib.c │ │ │ │ ├── ltm.c │ │ │ │ ├── lua.c │ │ │ │ ├── luac.c │ │ │ │ ├── lundump.c │ │ │ │ ├── lvm.c │ │ │ │ └── lzio.c │ │ └── 5.3.0 │ │ │ ├── CMakeLists.txt │ │ │ ├── include │ │ │ ├── lapi.h │ │ │ ├── lauxlib.h │ │ │ ├── lcode.h │ │ │ ├── lctype.h │ │ │ ├── ldebug.h │ │ │ ├── ldo.h │ │ │ ├── lfunc.h │ │ │ ├── lgc.h │ │ │ ├── llex.h │ │ │ ├── llimits.h │ │ │ ├── lmem.h │ │ │ ├── lobject.h │ │ │ ├── lopcodes.h │ │ │ ├── lparser.h │ │ │ ├── lprefix.h │ │ │ ├── lstate.h │ │ │ ├── lstring.h │ │ │ ├── ltable.h │ │ │ ├── ltm.h │ │ │ ├── lua.h │ │ │ ├── lua.hpp │ │ │ ├── luaconf.h │ │ │ ├── lualib.h │ │ │ ├── lundump.h │ │ │ ├── lvm.h │ │ │ └── lzio.h │ │ │ ├── lua.pproject │ │ │ ├── proj.linux │ │ │ └── CMakeLists.txt │ │ │ ├── proj.win │ │ │ ├── lua.rc │ │ │ ├── lua.vcxproj │ │ │ ├── lua.vcxproj.filters │ │ │ └── resource.h │ │ │ └── src │ │ │ ├── lapi.c │ │ │ ├── lauxlib.c │ │ │ ├── lbaselib.c │ │ │ ├── lbitlib.c │ │ │ ├── lcode.c │ │ │ ├── lcorolib.c │ │ │ ├── lctype.c │ │ │ ├── ldblib.c │ │ │ ├── ldebug.c │ │ │ ├── ldo.c │ │ │ ├── ldump.c │ │ │ ├── lfunc.c │ │ │ ├── lgc.c │ │ │ ├── linit.c │ │ │ ├── liolib.c │ │ │ ├── llex.c │ │ │ ├── lmathlib.c │ │ │ ├── lmem.c │ │ │ ├── loadlib.c │ │ │ ├── lobject.c │ │ │ ├── lopcodes.c │ │ │ ├── loslib.c │ │ │ ├── lparser.c │ │ │ ├── lstate.c │ │ │ ├── lstring.c │ │ │ ├── lstrlib.c │ │ │ ├── ltable.c │ │ │ ├── ltablib.c │ │ │ ├── ltm.c │ │ │ ├── lua.c │ │ │ ├── luac.c │ │ │ ├── lundump.c │ │ │ ├── lutf8lib.c │ │ │ ├── lvm.c │ │ │ └── lzio.c │ └── zlib │ │ ├── CMakeLists.txt │ │ ├── CMakeLists32.txt │ │ ├── CMakeLists64.txt │ │ ├── ChangeLog │ │ ├── FAQ │ │ ├── INDEX │ │ ├── Makefile.in │ │ ├── README │ │ ├── adler32.c │ │ ├── amiga │ │ ├── Makefile.pup │ │ └── Makefile.sas │ │ ├── as400 │ │ ├── bndsrc │ │ ├── compile.clp │ │ ├── readme.txt │ │ └── zlib.inc │ │ ├── compress.c │ │ ├── configure │ │ ├── contrib │ │ ├── README.contrib │ │ ├── ada │ │ │ ├── buffer_demo.adb │ │ │ ├── mtest.adb │ │ │ ├── read.adb │ │ │ ├── readme.txt │ │ │ ├── test.adb │ │ │ ├── zlib-streams.adb │ │ │ ├── zlib-streams.ads │ │ │ ├── zlib-thin.adb │ │ │ ├── zlib-thin.ads │ │ │ ├── zlib.adb │ │ │ ├── zlib.ads │ │ │ └── zlib.gpr │ │ ├── amd64 │ │ │ └── amd64-match.S │ │ ├── asm686 │ │ │ ├── README.686 │ │ │ └── match.S │ │ ├── blast │ │ │ ├── README │ │ │ ├── blast.c │ │ │ ├── blast.h │ │ │ ├── test.pk │ │ │ └── test.txt │ │ ├── delphi │ │ │ ├── ZLib.pas │ │ │ ├── ZLibConst.pas │ │ │ ├── readme.txt │ │ │ └── zlibd32.mak │ │ ├── dotzlib │ │ │ ├── DotZLib.build │ │ │ ├── DotZLib.chm │ │ │ ├── DotZLib.sln │ │ │ ├── DotZLib │ │ │ │ ├── AssemblyInfo.cs │ │ │ │ ├── ChecksumImpl.cs │ │ │ │ ├── CircularBuffer.cs │ │ │ │ ├── CodecBase.cs │ │ │ │ ├── Deflater.cs │ │ │ │ ├── DotZLib.cs │ │ │ │ ├── DotZLib.csproj │ │ │ │ ├── GZipStream.cs │ │ │ │ ├── Inflater.cs │ │ │ │ └── UnitTests.cs │ │ │ ├── LICENSE_1_0.txt │ │ │ └── readme.txt │ │ ├── gcc_gvmat64 │ │ │ └── gvmat64.S │ │ ├── infback9 │ │ │ ├── README │ │ │ ├── infback9.c │ │ │ ├── infback9.h │ │ │ ├── inffix9.h │ │ │ ├── inflate9.h │ │ │ ├── inftree9.c │ │ │ └── inftree9.h │ │ ├── inflate86 │ │ │ ├── inffas86.c │ │ │ └── inffast.S │ │ ├── iostream │ │ │ ├── test.cpp │ │ │ ├── zfstream.cpp │ │ │ └── zfstream.h │ │ ├── iostream2 │ │ │ ├── zstream.h │ │ │ └── zstream_test.cpp │ │ ├── iostream3 │ │ │ ├── README │ │ │ ├── TODO │ │ │ ├── test.cc │ │ │ ├── zfstream.cc │ │ │ └── zfstream.h │ │ ├── masmx64 │ │ │ ├── bld_ml64.bat │ │ │ ├── gvmat64.asm │ │ │ ├── inffas8664.c │ │ │ ├── inffasx64.asm │ │ │ └── readme.txt │ │ ├── masmx86 │ │ │ ├── bld_ml32.bat │ │ │ ├── inffas32.asm │ │ │ ├── match686.asm │ │ │ └── readme.txt │ │ ├── minizip │ │ │ ├── Makefile.am │ │ │ ├── MiniZip64_Changes.txt │ │ │ ├── MiniZip64_info.txt │ │ │ ├── configure.ac │ │ │ ├── crypt.h │ │ │ ├── ioapi.c │ │ │ ├── ioapi.h │ │ │ ├── iowin32.c │ │ │ ├── iowin32.h │ │ │ ├── make_vms.com │ │ │ ├── miniunz.c │ │ │ ├── miniunzip.1 │ │ │ ├── minizip.1 │ │ │ ├── minizip.c │ │ │ ├── minizip.pc.in │ │ │ ├── mztools.c │ │ │ ├── mztools.h │ │ │ ├── unzip.c │ │ │ ├── unzip.h │ │ │ ├── zip.c │ │ │ └── zip.h │ │ ├── pascal │ │ │ ├── example.pas │ │ │ ├── readme.txt │ │ │ ├── zlibd32.mak │ │ │ └── zlibpas.pas │ │ ├── puff │ │ │ ├── README │ │ │ ├── puff.c │ │ │ ├── puff.h │ │ │ ├── pufftest.c │ │ │ └── zeros.raw │ │ ├── testzlib │ │ │ ├── testzlib.c │ │ │ └── testzlib.txt │ │ ├── untgz │ │ │ ├── Makefile.msc │ │ │ └── untgz.c │ │ └── vstudio │ │ │ ├── readme.txt │ │ │ ├── vc10 │ │ │ ├── miniunz.vcxproj │ │ │ ├── miniunz.vcxproj.filters │ │ │ ├── minizip.vcxproj │ │ │ ├── minizip.vcxproj.filters │ │ │ ├── testzlib.vcxproj │ │ │ ├── testzlib.vcxproj.filters │ │ │ ├── testzlibdll.vcxproj │ │ │ ├── testzlibdll.vcxproj.filters │ │ │ ├── zlib.rc │ │ │ ├── zlibstat.vcxproj │ │ │ ├── zlibstat.vcxproj.filters │ │ │ ├── zlibvc.def │ │ │ ├── zlibvc.sln │ │ │ ├── zlibvc.vcxproj │ │ │ └── zlibvc.vcxproj.filters │ │ │ ├── vc11 │ │ │ ├── miniunz.vcxproj │ │ │ ├── minizip.vcxproj │ │ │ ├── testzlib.vcxproj │ │ │ ├── testzlibdll.vcxproj │ │ │ ├── zlib.rc │ │ │ ├── zlibstat.vcxproj │ │ │ ├── zlibvc.def │ │ │ ├── zlibvc.sln │ │ │ └── zlibvc.vcxproj │ │ │ └── vc9 │ │ │ ├── miniunz.vcproj │ │ │ ├── minizip.vcproj │ │ │ ├── testzlib.vcproj │ │ │ ├── testzlibdll.vcproj │ │ │ ├── zlib.rc │ │ │ ├── zlibstat.vcproj │ │ │ ├── zlibvc.def │ │ │ ├── zlibvc.sln │ │ │ └── zlibvc.vcproj │ │ ├── crc32.c │ │ ├── crc32.h │ │ ├── deflate.c │ │ ├── deflate.h │ │ ├── doc │ │ ├── algorithm.txt │ │ ├── rfc1950.txt │ │ ├── rfc1951.txt │ │ ├── rfc1952.txt │ │ └── txtvsbin.txt │ │ ├── examples │ │ ├── README.examples │ │ ├── enough.c │ │ ├── fitblk.c │ │ ├── gun.c │ │ ├── gzappend.c │ │ ├── gzjoin.c │ │ ├── gzlog.c │ │ ├── gzlog.h │ │ ├── zlib_how.html │ │ ├── zpipe.c │ │ └── zran.c │ │ ├── gzclose.c │ │ ├── gzguts.h │ │ ├── gzlib.c │ │ ├── gzread.c │ │ ├── gzwrite.c │ │ ├── infback.c │ │ ├── inffast.c │ │ ├── inffast.h │ │ ├── inffixed.h │ │ ├── inflate.c │ │ ├── inflate.h │ │ ├── inftrees.c │ │ ├── inftrees.h │ │ ├── make_vms.com │ │ ├── msdos │ │ ├── Makefile.bor │ │ ├── Makefile.dj2 │ │ ├── Makefile.emx │ │ ├── Makefile.msc │ │ └── Makefile.tc │ │ ├── nintendods │ │ └── README │ │ ├── old │ │ ├── Makefile.emx │ │ ├── Makefile.riscos │ │ ├── README │ │ ├── descrip.mms │ │ ├── os2 │ │ │ ├── Makefile.os2 │ │ │ └── zlib.def │ │ └── visual-basic.txt │ │ ├── pf_project │ │ ├── include │ │ │ ├── crc32.h │ │ │ ├── deflate.h │ │ │ ├── gzguts.h │ │ │ ├── inffast.h │ │ │ ├── inffixed.h │ │ │ ├── inflate.h │ │ │ ├── inftrees.h │ │ │ ├── trees.h │ │ │ ├── zconf.h │ │ │ ├── zconf_linux.h │ │ │ ├── zlib.h │ │ │ └── zutil.h │ │ ├── proj.linux │ │ │ └── CMakeLists.txt │ │ ├── proj.win │ │ │ ├── resource.h │ │ │ ├── zlib.rc │ │ │ ├── zlib.vcxproj │ │ │ └── zlib.vcxproj.filters │ │ ├── src │ │ │ ├── CMakeLists.txt │ │ │ ├── adler32.c │ │ │ ├── compress.c │ │ │ ├── crc32.c │ │ │ ├── deflate.c │ │ │ ├── gzclose.c │ │ │ ├── gzlib.c │ │ │ ├── gzread.c │ │ │ ├── gzwrite.c │ │ │ ├── infback.c │ │ │ ├── inffast.c │ │ │ ├── inflate.c │ │ │ ├── inftrees.c │ │ │ ├── trees.c │ │ │ ├── uncompr.c │ │ │ └── zutil.c │ │ └── zlib.pproject │ │ ├── pf_zlib.vc9.vcproj │ │ ├── qnx │ │ └── package.qpg │ │ ├── test │ │ ├── example.c │ │ ├── infcover.c │ │ └── minigzip.c │ │ ├── treebuild.xml │ │ ├── trees.c │ │ ├── trees.h │ │ ├── uncompr.c │ │ ├── vc_build │ │ ├── ALL_BUILD.vcproj │ │ ├── CMakeLists.txt │ │ ├── CTestTestfile.cmake │ │ ├── INSTALL.vcproj │ │ ├── RUN_TESTS.vcproj │ │ ├── ZERO_CHECK.vcproj │ │ ├── example.vcproj │ │ ├── minigzip.vcproj │ │ ├── pf_zlib.vc9.vcproj │ │ ├── zconf.h │ │ ├── zlib.pc │ │ ├── zlib.sln │ │ ├── zlib.vcproj │ │ └── zlibstatic.vcproj │ │ ├── watcom │ │ ├── watcom_f.mak │ │ └── watcom_l.mak │ │ ├── win32 │ │ ├── DLL_FAQ.txt │ │ ├── Makefile.bor │ │ ├── Makefile.gcc │ │ ├── Makefile.msc │ │ ├── README-WIN32.txt │ │ ├── VisualC.txt │ │ ├── zlib.def │ │ └── zlib1.rc │ │ ├── zconf.h │ │ ├── zconf.h.included │ │ ├── zconf_linux.h │ │ ├── zlib.3 │ │ ├── zlib.3.pdf │ │ ├── zlib.h │ │ ├── zlib.map │ │ ├── zlib.pc.cmakein │ │ ├── zlib.pc.in │ │ ├── zlib2ansi │ │ ├── zutil.c │ │ └── zutil.h └── plugin │ └── pak │ ├── README.md │ ├── generate_pak.sh │ ├── include │ └── pak │ │ ├── compress.h │ │ ├── config.h │ │ ├── encrypt.h │ │ ├── file.h │ │ ├── interface.h │ │ ├── listfile.h │ │ └── util.h │ ├── misc │ ├── bzip2 │ │ ├── blocksort.c │ │ ├── bzip2.c │ │ ├── bzip2recover.c │ │ ├── bzlib.c │ │ ├── bzlib.h │ │ ├── bzlib_private.h │ │ ├── compress.c │ │ ├── crctable.c │ │ ├── decompress.c │ │ ├── dlltest.c │ │ ├── huffman.c │ │ ├── libbz2.def │ │ ├── mk251.c │ │ ├── randtable.c │ │ ├── spewG.c │ │ └── unzcrash.c │ ├── crc32.cpp │ ├── crc32.h │ ├── huffman │ │ ├── huff.cpp │ │ └── huff.h │ ├── md5.cpp │ ├── md5.h │ ├── pklib │ │ ├── crc32.c │ │ ├── explode.c │ │ ├── implode.c │ │ └── pklib.h │ └── wave │ │ ├── wave.cpp │ │ └── wave.h │ ├── mk_tags │ ├── plugin_pak.pproject │ ├── proj.linux │ └── CMakeLists.txt │ ├── proj.win │ ├── plugin_pak.rc │ ├── plugin_pak.vcxproj │ ├── plugin_pak.vcxproj.filters │ └── resource.h │ ├── src │ ├── CMakeLists32.txt │ ├── CMakeLists64.txt │ ├── compress.cc │ ├── encrypt.cc │ ├── file.cc │ ├── interface.cc │ ├── listfile.cc │ └── util.cc │ ├── tests │ ├── CMakeLists.txt │ ├── include │ │ └── main.h │ ├── scripts │ │ ├── pak_simple.vc9.sln │ │ └── pak_simple.vc9.vcproj │ └── src │ │ ├── CMakeLists.txt │ │ └── main.cc │ └── tool │ ├── CMakeLists.txt │ ├── include │ └── main.h │ ├── scripts │ ├── pak_simple.vc9.sln │ └── pak_simple.vc9.vcproj │ ├── src │ ├── CMakeLists.txt │ └── main.cc │ ├── test │ └── test.c └── tools └── script ├── bat └── rename_forvsbuild.bat ├── linux ├── compile │ └── compiler.sh └── install │ ├── install_environment.sh │ ├── install_web_develop.sh │ ├── libmyodbc5a.so │ ├── odbc.ini │ ├── test.sh │ └── unixODBC-2.3.2.tar.gz ├── lua └── update_cmakelist │ ├── LuaXml.lua │ ├── readvcproj.lua │ └── update_CMakeLists.lua ├── php └── vcbuild.php └── sql └── sword_user.sql /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: cpp 2 | sudo: required 3 | compiler: 4 | - gcc 5 | # Change this to your needs 6 | before_install: 7 | - sudo apt-get install gcc-multilib 8 | - cd tools/script/linux/install/ && sudo bash install_environment.sh --full && cd ../../../../ 9 | - cd pf/dependencies/iconv/proj.linux/ && cmake ./ && make && cd ../../../../ 10 | - cd pf/dependencies/lua/5.3.0/proj.linux/ && cmake ./ && make && cd ../../../../../ 11 | script: cd pf/core/proj.linux && cmake ./ && make 12 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License(For Open Code) 2 | 3 | Copyright (c) <2012> 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | 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, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /applications/bin/config/center_info.ini: -------------------------------------------------------------------------------- 1 | [System] 2 | Desc=世界服务器相关配置 3 | 4 | ZoneID=0 5 | ID=101 6 | GuildShareMemoryKey=2001 7 | MailShareMemoryKey=3001 8 | PetShareMemoryKey=8001 9 | CityShareMemoryKey=9001 10 | GlobalDataShareMemoryKey=5001 11 | LeagueShareMemoryKey=10001 12 | FindFriendShareMemoryKey=11001 13 | EnableShareMemory=1 14 | -------------------------------------------------------------------------------- /applications/bin/config/gateway_info.ini: -------------------------------------------------------------------------------- 1 | [System] 2 | DBIP=localhost 3 | DBPort=3306 4 | DBConnectionOrDBName=sword_user; 连接或数据库名称 5 | DBUser=root 6 | DBPassword=mysql 7 | DBConnectorType=0; 连接类型 0 odbc, 1 mysql, 2 sqlserver, 3 mongodb(现在只实现了ODBC) 8 | EncryptDBPassword=0; 是否加密了数据库密码 9 | NetListenIP=127.0.0.1; 网络监听IP 10 | NetListenPort=12680; 网络监听端口 11 | NetConnectionMax=10240; 最大支持的网络连接数量 12 | -------------------------------------------------------------------------------- /applications/bin/config/login_info.ini: -------------------------------------------------------------------------------- 1 | [System] 2 | ID=2 3 | DBIP=localhost 4 | DBPort=3306 5 | DBConnectionOrDBName=sword_character; 连接或数据库名称 6 | DBUser=root 7 | DBPassword=mysql 8 | DBConnectorType=0; 连接类型 0 odbc, 1 mysql, 2 sqlserver, 3 mongodb(现在只实现了ODBC) 9 | EncryptDBPassword=0; 是否加密了数据库密码 10 | ClientVersion=1005 11 | DBConnectCount=10 12 | TurnPlayerCount=100 13 | ClientInSameIpMax=15; 同一个IP可以拥有的最大玩家数量 14 | NetConnectionMax=10240; 网络最大连接数量 15 | ProxyConnect=0 16 | 17 | EnableLicense=0 18 | ReLoginLimit=0 19 | ReLoginStop=0 20 | ReLoginStopTime=60000 21 | NotifySafeSign=0 22 | -------------------------------------------------------------------------------- /applications/bin/config/machine_info.ini: -------------------------------------------------------------------------------- 1 | [System] 2 | MachineNumber=1; 游戏世界的服务器总数 3 | 4 | 5 | [Machine0] 6 | MachineID=0; 服务器的MachineID 7 | -------------------------------------------------------------------------------- /applications/bin/config/scene_info.ini: -------------------------------------------------------------------------------- 1 | [System] 2 | SceneNumber=1; //总的场景数量 3 | 4 | [Scene0] 5 | ThreadIndex=30; 驱动线程的索引 6 | ClientResourceIndex=0; 客户端使用的场景资源,定义于客户端/config/scene_define.txt文件的最开始列数值 7 | Name=洛阳; 场景名字 8 | Active=1; 场景是否激活 9 | File=luoyang_new_snow.scn; 场景文件名 10 | ServerID=0; 此场景是由哪个服务器端程序调用的 11 | Type=0; 场景类型,如果是0,表示普通游戏场景,如果是1表示副本 4表示帮会城市 12 | PvpRuler=0; 详细含义参见 Server\Config\PvpRuler.txt 13 | BeginPlus=8122400; 附加项有效时间起始(年月日时,YYMMDDHH) 14 | PlusClientResourceIndex=242; 有效时间内使用此项替换clientres 15 | EndPlus=9030100; 附加项有效时间终止(年月日时,YYMMDDHH) 16 | Relive=0; 是否允许新手在本场景原地复活,缺省为0时新手不能在原地复活 17 | -------------------------------------------------------------------------------- /applications/bin/config/share_memory_info.ini: -------------------------------------------------------------------------------- 1 | [System] 2 | DBIP=localhost 3 | DBPort=3306 4 | DBConnectionOrDBName=sword_character; 连接或数据库名称 5 | DBUser=root 6 | DBPassword=mysql 7 | DBConnectorType=0; 连接类型 0 odbc, 1 mysql, 2 sqlserver, 3 mongodb(现在只实现了ODBC) 8 | WorldDataSaveInterval=1200000; world数据存盘时间(毫秒) 9 | HumanDataSaveInterval=900000; Human数据存盘时间(毫秒) 10 | Type=0; 0 center 1 server 11 | EncryptDBPassword=0; 是否加密了数据库密码 12 | 13 | [Key] 14 | KeyCount=11 15 | Key0=1001 16 | Type0=1; Human 17 | Key1=2001 18 | Type1=2; Guild 19 | Key2=3001 20 | Type2=3; Mail 21 | Key3=4001 22 | Type3=4; PlayerShop 23 | Key4=5001 24 | Type4=5; GlobalData 25 | Key5=6001 26 | Type5=6; CommisionShop 27 | Key6=7001 28 | Type6=7; ItemSerial 29 | Key7=8001 30 | Type7=8; PetProcreateItem 31 | Key8=9001 32 | Type8=9; City 33 | Key9=10001 34 | Type9=10; GuildLeague 35 | Key10=11001 36 | Type10=11; FindFriend 37 | -------------------------------------------------------------------------------- /applications/bin/public/data/script/global.lua: -------------------------------------------------------------------------------- 1 | print("[script.lua] script var file is loading") 2 | -------------------------------------------------------------------------------- /applications/bin/public/data/script/preload.lua: -------------------------------------------------------------------------------- 1 | require("public/data/script/test") 2 | local test = luatest() 3 | mytest() 4 | print(test["basekey1"]["key7"]) 5 | local tb = file.opentab("public/data/setting/hairstyle.txt") 6 | print(tb[0].cost_itemid) 7 | local tb1 = file.openini("public/data/setting/hostset.ini"); 8 | print(tb1.WorldSet["1_File"]) 9 | -------------------------------------------------------------------------------- /applications/bin/public/data/script/test.lua: -------------------------------------------------------------------------------- 1 | function mytest() 2 | log.fast_debug("[script] mytest function is done") 3 | end 4 | -------------------------------------------------------------------------------- /applications/bin/public/data/setting/hairstyle.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/applications/bin/public/data/setting/hairstyle.txt -------------------------------------------------------------------------------- /applications/bin/public/data/setting/hostset.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/applications/bin/public/data/setting/hostset.ini -------------------------------------------------------------------------------- /applications/common/include/common/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/15 16:59 9 | * @uses the game module config file 10 | * cn: 客户端与服务器公用作为区别的宏__SERVER__为服务器与服务器公用 11 | * 因为客户端一般只有一个,而服务器会存在多个的缘故 12 | */ 13 | #ifndef COMMON_CONFIG_H_ 14 | #define COMMON_CONFIG_H_ 15 | 16 | #include "pf/base/config.h" 17 | 18 | #endif //COMMON_CONFIG_H_ 19 | -------------------------------------------------------------------------------- /applications/common/include/common/db/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/30 16:53 9 | * @uses the config file for db module 10 | */ 11 | #ifndef COMMON_DB_CONFIG_H_ 12 | #define COMMON_DB_CONFIG_H_ 13 | 14 | #include "common/config.h" 15 | 16 | #endif //COMMON_DB_CONFIG_H_ 17 | -------------------------------------------------------------------------------- /applications/common/include/common/db/define.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id define.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/30 16:57 9 | * @uses the defines for db module 10 | */ 11 | #ifndef COMMON_DB_DEFINE_H_ 12 | #define COMMON_DB_DEFINE_H_ 13 | 14 | #include "common/db/config.h" 15 | 16 | #pragma pack(push, 1) 17 | 18 | namespace common { 19 | 20 | namespace db { 21 | 22 | typedef enum { 23 | kTypeUser = 0, 24 | kTypeCharacter, 25 | } type_t; 26 | 27 | /* structs { */ 28 | typedef struct globaldata_struct { 29 | int32_t poolid; 30 | int32_t data; 31 | void clear() { 32 | poolid = 0; 33 | data = 0; 34 | } 35 | } globaldata_t; 36 | /* } structs */ 37 | 38 | /* tables { */ 39 | extern const char *kTableNameGloablData; 40 | extern const char *kTableNameRole; 41 | /* } tables */ 42 | 43 | /* sqls { */ 44 | extern const char *kSqlSelectGlobalData; 45 | extern const char *kSqlSaveGlobalData; 46 | extern const char *kSqlGetRoleNumber; 47 | /* } sqls */ 48 | 49 | }; //namespace db 50 | 51 | }; //namespace common 52 | 53 | #pragma pack(pop) 54 | 55 | #endif //COMMON_DB_DEFINE_H_ 56 | -------------------------------------------------------------------------------- /applications/common/include/common/define/all.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id all.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/10 16:43 9 | * @uses the game define module all define header file 10 | */ 11 | #ifndef COMMON_DEFINE_ALL_H_ 12 | #define COMMON_DEFINE_ALL_H_ 13 | 14 | #include "common/define/config.h" 15 | #include "common/define/macros.h" 16 | #include "common/define/net/packet/id/all.h" 17 | 18 | #endif //COMMON_DEFINE_ALL_H_ 19 | -------------------------------------------------------------------------------- /applications/common/include/common/define/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/10 16:42 9 | * @uses the application define module config file 10 | */ 11 | #ifndef COMMON_DEFINE_CONFIG_H_ 12 | #define COMMON_DEFINE_CONFIG_H_ 13 | 14 | #include "common/config.h" 15 | 16 | #endif //COMMON_DEFINE_CONFIG_H_ 17 | -------------------------------------------------------------------------------- /applications/common/include/common/define/enum.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id enum.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/08/06 15:17 9 | * @uses the common define for applications 10 | */ 11 | #ifndef COMMON_DEFINE_ENUM_H_ 12 | #define COMMON_DEFINE_ENUM_H_ 13 | 14 | #ifdef __SERVER__ 15 | 16 | typedef enum { 17 | kPlayerStatusLoginEmpty = 1, 18 | kPlayerStatusLoginProcessTurn, //登陆排队中 19 | kPlayerStatusLoginConnect, //登陆连接中 20 | kPlayerStatusLoginServerReady, //登陆服务器已准备 21 | kPlayerStatusLoginNormal, //登陆正常 22 | } playerstatus_t; 23 | 24 | typedef enum { 25 | kServerTypeServer = 0, //游戏服务器 26 | kServerTypeLogin, //登陆服务器 27 | kServerTypeShareMemory, //共享内存 28 | kServerTypeCenter, //中心服务器 29 | kServerTypeGateway, //网关服务器 30 | kServerTypeNumber, 31 | } servertype_t; 32 | 33 | #endif 34 | 35 | typedef enum { 36 | kLoginTurnStatusInTurn = 0, //登陆排队中 37 | kLoginTurnStatusNormal 38 | } login_turnstatus_t; 39 | 40 | #endif //COMMON_DEFINE_ENUM_H_ 41 | -------------------------------------------------------------------------------- /applications/common/include/common/define/file.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id filedefine.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/15 17:37 9 | * @uses application file defines 10 | */ 11 | #ifndef COMMON_DEFINE_FILE_H_ 12 | #define COMMON_DEFINE_FILE_H_ 13 | 14 | #define CONFIG_INFO_FILE "./config/config_info.ini" 15 | #define GATEWAY_INFO_FILE "./config/gateway_info.ini" 16 | #define LOGIN_INFO_FILE "./config/login_info.ini" 17 | #define CENTER_INFO_FILE "./config/center_info.ini" 18 | #define SHARE_MEMORY_INFO_FILE "./config/share_memory_info.ini" 19 | #define MACHINE_INFO_FILE "./config/machine_info.ini" 20 | #define SERVER_INFO_FILE "./config/server_info.ini" 21 | #define SCENE_INFO_FILE "./config/scene_info.ini" 22 | #define BASE_VALUE_FILE "./config/base_value.ini" 23 | #define ITEM_SERIAL_FILE "./config/item_serial.ini" 24 | 25 | #endif //COMMON_DEFINE_FILE_H_ 26 | -------------------------------------------------------------------------------- /applications/common/include/common/define/log.h: -------------------------------------------------------------------------------- 1 | #ifndef PF_BASE_LOG_DEFINE_H_ 2 | #define PF_BASE_LOG_DEFINE_H_ 3 | 4 | static const char *item_log_format = "IOL:%d,%d,%d,%d,%d,%X,%X,%d,%d,%d,%d,%d"; 5 | 6 | #endif //PF_BASE_LOG_DEFINE_H_ 7 | -------------------------------------------------------------------------------- /applications/common/include/common/define/macros.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id macros.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/10 16:45 9 | * @uses the game define module all macros file 10 | */ 11 | #ifndef COMMON_DEFINE_MACROS_H_ 12 | #define COMMON_DEFINE_MACROS_H_ 13 | 14 | /* account about { */ 15 | #define ACCOUNT_LENGTH_MAX 32 //邮箱账号会长一些 16 | #define PASSWORD_LENGTH_MAX 36 17 | /* } account about */ 18 | 19 | /* role about */ 20 | #define ROLE_NAME_LENGTH_MAX (3*10) 21 | /* role about */ 22 | 23 | /* guild about { */ 24 | #define GUILDLEVEL_MAX 5 //公会最大等级 25 | /* } guild about */ 26 | 27 | /* scene about { */ 28 | #define SCENE_MAX 1024 29 | /* } scene about */ 30 | 31 | /* server about { */ 32 | #define OVER_SERVER_MAX 256 //一组(区)服务器最大的服务器数量 33 | #define GROUP_SERVER_MAX 24 //一组(组)服务器最大的服务器数量 34 | /* } server about */ 35 | 36 | /* database about { */ 37 | #define DB_ROLE_MAX 6 //数据库最多的角色数量 38 | /* } database about */ 39 | 40 | #endif //COMMON_DEFINE_MACROS_H_ 41 | -------------------------------------------------------------------------------- /applications/common/include/common/define/net/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/22 22:01 9 | * @uses the application net define module config file 10 | */ 11 | #ifndef COMMON_DEFINE_NET_CONFIG_H_ 12 | #define COMMON_DEFINE_NET_CONFIG_H_ 13 | 14 | #include "common/define/config.h" 15 | 16 | #endif //COMMON_DEFINE_NET_CONFIG_H_ 17 | -------------------------------------------------------------------------------- /applications/common/include/common/define/net/packet/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/22 22:03 9 | * @uses application net define packet module config file 10 | */ 11 | #ifndef COMMON_DEFINE_NET_PACKET_CONFIG_H_ 12 | #define COMMON_DEFINE_NET_PACKET_CONFIG_H_ 13 | 14 | #include "common/define/net/config.h" 15 | 16 | #endif //COMMON_DEFINE_NET_PACKET_CONFIG_H_ 17 | -------------------------------------------------------------------------------- /applications/common/include/common/define/net/packet/id/all.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id all.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/06/23 11:17 9 | * @uses 游戏服务器网络包ID的定义,彻底改变天龙与武侠的设计模式,不过这里需要 10 | * 包含游戏基本定义中的宏,单独包含进来即可,不用担心ID重复 11 | * (看似有局限,其实可以任意扩展) 12 | */ 13 | #ifndef COMMON_DEFINE_NET_PACKET_ID_ALL_H_ 14 | #define COMMON_DEFINE_NET_PACKET_ID_ALL_H_ 15 | 16 | #include "common/define/net/packet/id/config.h" 17 | 18 | #include "common/define/net/packet/id/clientlogin.h" 19 | #include "common/define/net/packet/id/clientserver.h" 20 | #include "common/define/net/packet/id/gatewaylogin.h" 21 | #include "common/define/net/packet/id/logincenter.h" 22 | #include "common/define/net/packet/id/servercenter.h" 23 | #include "common/define/net/packet/id/serverserver.h" 24 | 25 | #endif //COMMON_DEFINE_NET_PACKET_ID_ALL_H_ 26 | -------------------------------------------------------------------------------- /applications/common/include/common/define/net/packet/id/servercenter.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id servercenter.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/06/23 19:40 9 | * @uses net packets define of server between center 10 | */ 11 | #ifndef COMMON_DEFINE_NET_PACKET_ID_SERVERCENTER_H_ 12 | #define COMMON_DEFINE_NET_PACKET_ID_SERVERCENTER_H_ 13 | 14 | #include "common/define/net/packet/id/config.h" 15 | 16 | APPLICATION_DEFINE_NET_PACKET_ID_NAMESPACE_START 17 | 18 | namespace servercenter { 19 | 20 | enum packetid_enum { 21 | kFirst = SERVERCENTER_PACKETID_MIN, 22 | kLast, 23 | kMax = SERVERCENTER_PACKETID_MAX, 24 | }; 25 | 26 | }; //namespace servercenter 27 | 28 | namespace server_tocenter { 29 | 30 | enum packetid_enum { 31 | kFirst = CENTER_TOSERVER_PACKETID_MIN, 32 | kLast, 33 | kMax = CENTER_TOSERVER_PACKETID_MAX, 34 | }; 35 | 36 | }; //server_tocenter 37 | 38 | namespace center_toserver { 39 | 40 | enum packetid_enum { 41 | kFirst = SERVER_TOCENTER_PACKETID_MIN, 42 | kLast, 43 | kMax = SERVER_TOCENTER_PACKETID_MAX, 44 | }; 45 | 46 | }; //center_toserver 47 | 48 | APPLICATION_DEFINE_NET_PACKET_ID_NAMESPACE_END 49 | 50 | #endif //COMMON_DEFINE_NET_PACKET_ID_SERVERCENTER_H_ 51 | -------------------------------------------------------------------------------- /applications/common/include/common/define/net/packet/id/serverserver.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id serverserver.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/06/23 11:21 9 | * @uses 服务器与服务器之间的通讯包 10 | */ 11 | #ifndef COMMON_DEFINE_NET_PACKET_ID_SERVERSERVER_H_ 12 | #define COMMON_DEFINE_NET_PACKET_ID_SERVERSERVER_H_ 13 | 14 | #include "common/define/net/packet/id/config.h" //must include this 15 | 16 | APPLICATION_DEFINE_NET_PACKET_ID_NAMESPACE_START 17 | 18 | namespace serverserver { //服务器与服务器公用 19 | 20 | typedef enum { 21 | kFirst = 0, //起始ID 22 | kConnect, 23 | kLast, /* the last packetid */ 24 | kMax = 7, 25 | } packetid_enum; 26 | 27 | }; //namespace serverserver 28 | 29 | APPLICATION_DEFINE_NET_PACKET_ID_NAMESPACE_END 30 | 31 | #endif //COMMON_DEFINE_NET_PACKET_ID_SERVERSERVER_H_ 32 | -------------------------------------------------------------------------------- /applications/common/include/common/net/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/24 17:18 9 | * @uses application net config file 10 | */ 11 | #ifndef COMMON_NET_CONFIG_H_ 12 | #define COMMON_NET_CONFIG_H_ 13 | 14 | #include "common/config.h" 15 | 16 | #endif //COMMON_NET_CONFIG_H_ 17 | -------------------------------------------------------------------------------- /applications/common/include/common/net/connection/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/08/12 16:22 9 | * @uses net connection config file 10 | */ 11 | #ifndef COMMON_NET_CONNECTION_CONFIG_H_ 12 | #define COMMON_NET_CONNECTION_CONFIG_H_ 13 | 14 | #include "common/net/config.h" 15 | 16 | #endif //COMMON_NET_CONNECTION_CONFIG_H_ 17 | -------------------------------------------------------------------------------- /applications/common/include/common/net/manager/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/08/12 14:33 9 | * @uses common net manager config file 10 | */ 11 | #ifndef COMMON_NET_MANAGER_CONFIG_H_ 12 | #define COMMON_NET_MANAGER_CONFIG_H_ 13 | 14 | #include "common/net/config.h" 15 | 16 | #endif //COMMON_NET_MANAGER_CONFIG_H_ 17 | -------------------------------------------------------------------------------- /applications/common/include/common/net/packet/client_tologin/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/08/14 17:00 9 | * @uses your description 10 | */ 11 | #ifndef COMMON_NET_PACKET_CLIENT_TOLOGIN_CONFIG_H_ 12 | #define COMMON_NET_PACKET_CLIENT_TOLOGIN_CONFIG_H_ 13 | 14 | #include "common/net/packet/config.h" 15 | 16 | #endif //COMMON_NET_PACKET_CLIENT_TOLOGIN_CONFIG_H_ 17 | -------------------------------------------------------------------------------- /applications/common/include/common/net/packet/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/06/23 19:20 9 | * @uses the application packet config file 10 | */ 11 | #ifndef COMMON_NET_PACKET_CONFIG_H_ 12 | #define COMMON_NET_PACKET_CONFIG_H_ 13 | 14 | #include "common/net/config.h" 15 | #include "pf/net/config.h" 16 | 17 | #endif //PF_APPLICATION_NET_PACKET_CONFIG_H_ 18 | -------------------------------------------------------------------------------- /applications/common/include/common/net/packet/gateway_tologin/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/10 19:16 9 | * @uses net packets gateway to login config file 10 | */ 11 | #ifndef COMMON_NET_PACKET_GATEWAY_TOLOGIN_CONFIG_H_ 12 | #define COMMON_NET_PACKET_GATEWAY_TOLOGIN_CONFIG_H_ 13 | 14 | #include "common/net/packet/config.h" 15 | 16 | #endif //COMMON_NET_PACKET_GATEWAY_TOLOGIN_CONFIG_H_ 17 | -------------------------------------------------------------------------------- /applications/common/include/common/net/packet/login_tocenter/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/08/13 22:08 9 | * @uses common net packet for login to center config file 10 | */ 11 | #ifndef COMMON_NET_PACKET_LOGIN_TOCENTER_CONFIG_H_ 12 | #define COMMON_NET_PACKET_LOGIN_TOCENTER_CONFIG_H_ 13 | 14 | #include "common/net/packet/config.h" 15 | 16 | #endif //COMMON_NET_PACKET_LOGIN_TOCENTER_CONFIG_H_ 17 | -------------------------------------------------------------------------------- /applications/common/include/common/net/packet/login_toclient/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/08/13 22:11 9 | * @uses common net packet for login to client config file 10 | */ 11 | #ifndef COMMON_NET_PACKET_LOGIN_TOCLIENT_CONFIG_H_ 12 | #define COMMON_NET_PACKET_LOGIN_TOCLIENT_CONFIG_H_ 13 | 14 | #include "common/net/packet/config.h" 15 | 16 | #endif //COMMON_NET_PACKET_LOGIN_TOCLIENT_CONFIG_H_ 17 | -------------------------------------------------------------------------------- /applications/common/include/common/net/packet/login_togateway/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/10 16:25 9 | * @uses the net packets module login to gateway config file 10 | */ 11 | #ifndef COMMON_NET_PACKET_LOGIN_TOGATEWAY_CONFIG_H_ 12 | #define COMMON_NET_PACKET_LOGIN_TOGATEWAY_CONFIG_H_ 13 | 14 | #include "common/net/packet/config.h" 15 | 16 | #endif //COMMON_NET_PACKET_LOGIN_TOGATEWAY_CONFIG_H_ 17 | -------------------------------------------------------------------------------- /applications/common/include/common/net/packet/login_togateway/playeronline.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/applications/common/include/common/net/packet/login_togateway/playeronline.h -------------------------------------------------------------------------------- /applications/common/include/common/net/packet/serverserver/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/06/23 19:25 9 | * @uses net packets server to server config file 10 | */ 11 | #ifndef PF_NET_PACKETS_SERVERSERVER_CONFIG_H_ 12 | #define PF_NET_PACKETS_SERVERSERVER_CONFIG_H_ 13 | 14 | #include "common/net/packet/config.h" 15 | 16 | #endif //PF_NET_PACKETS_SERVERSERVER_CONFIG_H_ 17 | -------------------------------------------------------------------------------- /applications/common/include/common/net/packetfactory.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id packetfactory.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/28 18:05 9 | * @uses packet factory common functions 10 | */ 11 | #ifndef COMMON_NET_PACKETFACTORY_H_ 12 | #define COMMON_NET_PACKETFACTORY_H_ 13 | 14 | #include "common/config.h" 15 | 16 | namespace common { 17 | 18 | namespace net { 19 | 20 | bool __stdcall registerfactories(); 21 | bool __stdcall isvalid_packetid(uint16_t id); 22 | uint16_t get_facctorysize(); 23 | 24 | }; //namespace net 25 | 26 | }; //namespace common 27 | 28 | #endif //COMMON_NET_PACKETFACTORY_H_ 29 | -------------------------------------------------------------------------------- /applications/common/include/common/sharememory/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/30 17:20 9 | * @uses the config file for sharememory 10 | */ 11 | #ifndef COMMON_SHAREMEMORY_CONFIG_H_ 12 | #define COMMON_SHAREMEMORY_CONFIG_H_ 13 | 14 | #include "common/config.h" 15 | 16 | #endif //COMMON_SHAREMEMORY_CONFIG_H_ 17 | -------------------------------------------------------------------------------- /applications/common/src/db/define.cc: -------------------------------------------------------------------------------- 1 | #include "common/db/define.h" 2 | 3 | namespace common { 4 | 5 | namespace db { 6 | 7 | /* tables {*/ 8 | const char *kTableNameGloablData = "t_global"; 9 | const char *kTableNameRole = "t_role"; 10 | /* } tables */ 11 | 12 | 13 | /* sqls { */ 14 | const char *kSqlSelectGlobalData = "SELECT poolid, data FROM %s"; 15 | const char *kSqlSaveGlobalData = "UPDATE %s SET data = %d WHERE poolid = %d"; 16 | const char *kSqlGetRoleNumber = "SELECT COUNT(`id`) AS `count` FROM %s" 17 | " WHERE `account` = '%s'"; 18 | /* } sqls */ 19 | 20 | 21 | } //namespace db 22 | 23 | } //namespace common 24 | -------------------------------------------------------------------------------- /applications/common/src/net/packetfactory.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/applications/common/src/net/packetfactory.cc -------------------------------------------------------------------------------- /applications/common/src/sharememory/define.cc: -------------------------------------------------------------------------------- 1 | #include "pf/sys/memory/share.h" 2 | #include "common/sharememory/define.h" 3 | 4 | bool g_commond_exit = false; 5 | 6 | namespace common { 7 | 8 | namespace sharememory { 9 | 10 | head_struct::head_struct() { 11 | __ENTER_FUNCTION 12 | cleanup(); 13 | __LEAVE_FUNCTION 14 | } 15 | 16 | head_struct::~head_struct() { 17 | //do nothing 18 | } 19 | 20 | void head_struct::cleanup() { 21 | __ENTER_FUNCTION 22 | using namespace pf_sys::memory::share; 23 | poolid = 0; 24 | id = -1; 25 | playerid = -1; 26 | usestatus = kUseStatusFree; 27 | initword(flag, kFlagFree); 28 | savetime = 0; 29 | __LEAVE_FUNCTION 30 | } 31 | 32 | } //namespace sharememory 33 | 34 | } //namespace common 35 | -------------------------------------------------------------------------------- /applications/gateway/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | CMAKE_MINIMUM_REQUIRED(VERSION 2.6) 2 | PROJECT (gateway) 3 | 4 | ADD_SUBDIRECTORY(src) 5 | -------------------------------------------------------------------------------- /applications/gateway/include/.keepme: -------------------------------------------------------------------------------- 1 | keep me 2 | -------------------------------------------------------------------------------- /applications/gateway/include/application/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/08/01 16:36 9 | * @uses the gateway config file 10 | * 每个应用需要建立此文件,用来定义应用的独立配置 11 | */ 12 | #ifndef APPLICATION_CONFIG_H_ 13 | #define APPLICATION_CONFIG_H_ 14 | 15 | #include "pf/base/config.h" 16 | #define _APPLICATION_NAME "gateway" 17 | 18 | #endif //APPLICATION_CONFIG_H_ 19 | -------------------------------------------------------------------------------- /applications/gateway/include/db/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/10 20:41 9 | * @uses the db module config file 10 | */ 11 | #ifndef DB_CONFIG_H_ 12 | #define DB_CONFIG_H_ 13 | 14 | #include "pf/base/config.h" 15 | #include "common/define/macros.h" 16 | #include "application/config.h" 17 | 18 | #define DB_TABLE_USER "users" 19 | 20 | namespace db { 21 | 22 | struct _user { 23 | uint32_t id; 24 | char name[ACCOUNT_LENGTH_MAX]; 25 | char password[PASSWORD_LENGTH_MAX]; 26 | char truename[ROLE_NAME_LENGTH_MAX]; 27 | char birthday[DATE_LENGTH_MAX]; 28 | char superpassword[PASSWORD_LENGTH_MAX]; 29 | uint32_t money; 30 | uint32_t today_logintimes; 31 | bool locked; 32 | uint8_t viplevel; 33 | _user() { 34 | id = 0; 35 | memset(name, 0, sizeof(name)); 36 | memset(password, 0, sizeof(password)); 37 | memset(truename, 0, sizeof(truename)); 38 | memset(birthday, 0, sizeof(birthday)); 39 | memset(superpassword, 0, sizeof(superpassword)); 40 | money = 0; 41 | today_logintimes = 0; 42 | locked = false; 43 | viplevel = 0; 44 | }; 45 | }; 46 | 47 | typedef _user user_t; 48 | 49 | }; //namespace db 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /applications/gateway/include/db/user.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id user.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/10 20:38 9 | * @uses the db user table operator module 10 | */ 11 | #ifndef DB_USER_H_ 12 | #define DB_USER_H_ 13 | 14 | #include "db/config.h" 15 | 16 | namespace db { 17 | 18 | namespace user { 19 | 20 | void get_fullinfo(const char *name, user_t& info); 21 | 22 | }; //namespace user 23 | 24 | }; //namespace db 25 | 26 | #endif //DB_USER_H_ 27 | -------------------------------------------------------------------------------- /applications/gateway/include/engine/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/11 10:37 9 | * @uses the engine config file 10 | */ 11 | #ifndef ENGINE_CONFIG_H_ 12 | #define ENGINE_CONFIG_H_ 13 | 14 | #include "application/config.h" 15 | 16 | #endif //ENGINE_CONFIG_H_ 17 | -------------------------------------------------------------------------------- /applications/gateway/include/engine/system.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id system.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/11 10:36 9 | * @uses engine system class 10 | */ 11 | #ifndef ENGINE_SYSTEM_H_ 12 | #define ENGINE_SYSTEM_H_ 13 | 14 | #include "engine/config.h" 15 | #include "pf/base/singleton.h" 16 | #include "pf/engine/kernel.h" 17 | 18 | namespace engine { 19 | 20 | class System : public pf_engine::Kernel, 21 | public pf_base::Singleton { 22 | 23 | public: 24 | System(); 25 | ~System(); 26 | 27 | public: 28 | static System *getsingleton_pointer(); 29 | static System &getsingleton(); 30 | 31 | public: 32 | bool init(); 33 | 34 | public: 35 | pf_db::Manager *get_dbmanager(); 36 | 37 | private: 38 | bool init_setting(); 39 | 40 | }; 41 | 42 | }; //namespace engine 43 | 44 | #define ENGINE_SYSTEM_POINTER engine::System::getsingleton_pointer() 45 | 46 | extern engine::System *g_engine_system; 47 | 48 | #endif //ENGINE_SYSTEM_H_ 49 | -------------------------------------------------------------------------------- /applications/gateway/include/gateway.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id gateway.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/01 16:44 9 | * @uses the gateway server main file 10 | */ 11 | #ifndef GATEWAY_H_ 12 | #define GATEWAY_H_ 13 | 14 | #include "application/config.h" 15 | 16 | #endif //GATEWAY_H_ 17 | -------------------------------------------------------------------------------- /applications/gateway/include/message/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/15 10:19 9 | * @uses message config file 10 | */ 11 | #ifndef MESSAGE_CONFIG_H_ 12 | #define MESSAGE_CONFIG_H_ 13 | 14 | #include "application/config.h" 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /applications/gateway/include/message/delegator/account.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id account.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/10 16:11 9 | * @uses the gateway message account delegator 10 | */ 11 | #ifndef MESSAGE_DELEGATOR_ACCOUNT_H_ 12 | #define MESSAGE_DELEGATOR_ACCOUNT_H_ 13 | 14 | #include "message/delegator/config.h" 15 | #include "common/net/packet/login_togateway/askauth.h" 16 | 17 | namespace message { 18 | 19 | namespace delegator { 20 | 21 | namespace account { 22 | 23 | void auth(common::net::packet::login_togateway::AskAuth *message, 24 | pf_net::connection::Base* connection); 25 | 26 | }; //namespace account 27 | 28 | }; //namespace delegator 29 | 30 | }; //namespace message 31 | 32 | #endif //MESSAGE_DELEGATOR_ACCOUNT_H_ 33 | -------------------------------------------------------------------------------- /applications/gateway/include/message/delegator/config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework ) 3 | * $Id config.h 4 | * @link https://github.com/viticm/plainframework for the canonical source repository 5 | * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com ) 6 | * @license 7 | * @user viticm 8 | * @date 2014/07/15 10:25 9 | * @uses message delegator config file 10 | */ 11 | #ifndef MESSAGE_DELEGATOR_CONFIG_H_ 12 | #define MESSAGE_DELEGATOR_CONFIG_H_ 13 | 14 | #include "application/config.h" 15 | 16 | #endif //MESSAGE_DELEGATOR_CONFIG_H_ 17 | -------------------------------------------------------------------------------- /applications/gateway/mk_tags: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | #@desc this script can auto create cscope file and ctags 3 | #@date 2013-12-9 13:53:44 4 | #@author viticm 5 | paths=" 6 | ./ ../../pf/core/include 7 | ../../pf/dependencies/iconv/include 8 | ../../pf/dependencies/lua/src 9 | ../common/ 10 | " 11 | types="php lua h cpp c cc hpp erl hrl inl" 12 | n=0 13 | 14 | is_win32=false 15 | ENV_PATH="F:\tools\editor\vim\vim74" 16 | if [[ `uname | grep W32_NT` != "" ]] ; then 17 | is_win32=true 18 | export PATH=$ENV_PATH 19 | fi 20 | 21 | for path in ${paths} 22 | do 23 | cmd="find ${path}" 24 | i=0 25 | for filetype in ${types} 26 | do 27 | if [[ 0 -eq ${i} ]] ; then 28 | cmd=${cmd}" -name \*."${filetype} 29 | else 30 | cmd=${cmd}" -o -name \*."${filetype} 31 | fi 32 | ((++i)) 33 | done 34 | if [[ 0 -eq ${n} ]] ; then 35 | cmd=${cmd}" > cscope.files" 36 | else 37 | cmd=${cmd}" >> cscope.files" 38 | fi 39 | echo ${cmd} | sh 40 | ((++n)) 41 | done 42 | 43 | if $is_win32 ; then 44 | if [ -f ./cscope.out ] ; then 45 | echo "please close gvim and delete current cscope.out, then try angin." 46 | exit 1 47 | fi 48 | cscope -bk -i cscope.files 49 | else 50 | cscope -bkq -i cscope.files 51 | fi 52 | ctags -R 53 | -------------------------------------------------------------------------------- /applications/gateway/replace.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | files=`find ./ -name "*.cc" -o -name "*.h" -o -name "*.inl"` 4 | 5 | for filename in $files 6 | do 7 | echo $filename 8 | sed -i 's;PS_COMMON;PF;g' $filename 9 | sed -i 's;common/;pf/;g' $filename 10 | sed -i 's;PLAIN SERVER Engine;PLAIN FRAMEWORK;g' $filename 11 | sed -i 's;plainserver;plainframework;g' $filename 12 | sed -i 's;ps_common_;pf_;g' $filename 13 | sed -i 's;plianserver;plainframework;g' $filename 14 | done 15 | -------------------------------------------------------------------------------- /applications/gateway/src/message/delegator/account.cc: -------------------------------------------------------------------------------- 1 | #include "pf/base/log.h" 2 | #include "common/net/packet/gateway_tologin/resultauth.h" 3 | #include "db/user.h" 4 | #include "message/delegator/account.h" 5 | 6 | using namespace message::delegator; 7 | using namespace pf_net; 8 | using namespace common::net::packet; 9 | 10 | void account::auth(login_togateway::AskAuth *message, 11 | connection::Base *connection) { 12 | __ENTER_FUNCTION 13 | db::user_t userinfo; 14 | db::user::get_fullinfo(message->getaccount(), userinfo); 15 | uint8_t result = 1; 16 | if (strcmp(userinfo.name, message->getpassword())) { 17 | result = 0; 18 | } 19 | gateway_tologin::ResultAuth resultmessage; 20 | resultmessage.setresult(result); 21 | resultmessage.setaccount(message->getaccount()); 22 | resultmessage.setpassword(message->getpassword()); 23 | connection->sendpacket(&resultmessage); 24 | SLOW_LOG("gateway", 25 | "[message.delegator] (account::auth) success!" 26 | " account: %s, result: %d", 27 | message->getaccount(), 28 | result); 29 | __LEAVE_FUNCTION 30 | } 31 | -------------------------------------------------------------------------------- /applications/gateway/src/message/handler/gateway_tologin/resultauth.cc: -------------------------------------------------------------------------------- 1 | #include "message/delegator/account.h" 2 | #include "common/net/packet/gateway_tologin/resultauth.h" 3 | 4 | using namespace common::net::packet::gateway_tologin; 5 | 6 | uint32_t ResultAuthHandler::execute(ResultAuth *packet, 7 | pf_net::connection::Base *connection) { 8 | __ENTER_FUNCTION 9 | USE_PARAM(packet); 10 | USE_PARAM(connection); 11 | return kPacketExecuteStatusContinue; 12 | __LEAVE_FUNCTION 13 | return kPacketExecuteStatusError; 14 | } 15 | -------------------------------------------------------------------------------- /applications/gateway/src/message/handler/login_togateway/askauth.cc: -------------------------------------------------------------------------------- 1 | #include "message/delegator/account.h" 2 | #include "common/net/packet/login_togateway/askauth.h" 3 | 4 | using namespace common::net::packet::login_togateway; 5 | 6 | uint32_t AskAuthHandler::execute(AskAuth *packet, 7 | pf_net::connection::Base *connection) { 8 | __ENTER_FUNCTION 9 | message::delegator::account::auth(packet, connection); 10 | return kPacketExecuteStatusContinue; 11 | __LEAVE_FUNCTION 12 | return kPacketExecuteStatusError; 13 | } 14 | -------------------------------------------------------------------------------- /applications/gateway/src/message/handler/login_togateway/playerleave.cc: -------------------------------------------------------------------------------- 1 | #include "common/net/packet/login_togateway/playerleave.h" 2 | 3 | using namespace common::net::packet::login_togateway; 4 | 5 | uint32_t PlayerLeaveHandler::execute( 6 | PlayerLeave *packet, 7 | pf_net::connection::Base *connection) { 8 | __ENTER_FUNCTION 9 | USE_PARAM(connection); 10 | USE_PARAM(packet); 11 | return kPacketExecuteStatusContinue; 12 | __LEAVE_FUNCTION 13 | return kPacketExecuteStatusError; 14 | } 15 | -------------------------------------------------------------------------------- /applications/gateway/src/message/handler/login_togateway/playeronline.cc: -------------------------------------------------------------------------------- 1 | #include "pf/base/log.h" 2 | #include "common/net/packet/login_togateway/playeronline.h" 3 | 4 | using namespace common::net::packet::login_togateway; 5 | 6 | uint32_t PlayerOnlineHandler::execute( 7 | PlayerOnline *packet, 8 | pf_net::connection::Base *connection) { 9 | __ENTER_FUNCTION 10 | USE_PARAM(connection); 11 | FAST_LOG(kApplicationLogFile, 12 | "[gateway][message][handler][login_togateway]" 13 | " (PlayerOnlineHandler::execute) success." 14 | " center id: %d, online player: %d", 15 | packet->get_centerid(), 16 | packet->getonline()); 17 | return kPacketExecuteStatusContinue; 18 | __LEAVE_FUNCTION 19 | return kPacketExecuteStatusError; 20 | } 21 | -------------------------------------------------------------------------------- /applications/gateway/src/message/handler/serverserver/connect.cc: -------------------------------------------------------------------------------- 1 | #include "pf/base/log.h" 2 | #include "common/net/packet/serverserver/connect.h" 3 | 4 | using namespace common::net::packet::serverserver; 5 | uint32_t ConnectHandler::execute(Connect* packet, 6 | pf_net::connection::Base* connection) { 7 | __ENTER_FUNCTION 8 | USE_PARAM(connection); 9 | FAST_LOG(kApplicationLogFile, 10 | "[gateway][message][handler][serverver]" 11 | " (ConnectHandler::execute) success" 12 | " server id: %d", 13 | packet->get_serverid()); 14 | return kPacketExecuteStatusContinue; 15 | __LEAVE_FUNCTION 16 | return kPacketExecuteStatusError; 17 | } 18 | -------------------------------------------------------------------------------- /applications/pf_simple/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | CMAKE_MINIMUM_REQUIRED(VERSION 2.6) 2 | PROJECT (pf_simple) 3 | 4 | ADD_SUBDIRECTORY(src) 5 | -------------------------------------------------------------------------------- /applications/pf_simple/include/main.h: -------------------------------------------------------------------------------- 1 | #ifndef MAIN_H_ 2 | #define MAIN_H_ 3 | 4 | #endif //MAIN_H_ -------------------------------------------------------------------------------- /applications/pf_simple/scripts/pf_simple.vc9.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual Studio 2008 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "pf_simple", "pf_simple.vc9.vcproj", "{D78A9474-FC59-4C87-B957-022EFD4BEC92}" 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 | {D78A9474-FC59-4C87-B957-022EFD4BEC92}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {D78A9474-FC59-4C87-B957-022EFD4BEC92}.Debug|Win32.Build.0 = Debug|Win32 14 | {D78A9474-FC59-4C87-B957-022EFD4BEC92}.Release|Win32.ActiveCfg = Release|Win32 15 | {D78A9474-FC59-4C87-B957-022EFD4BEC92}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /applications/pf_simple/src/main.cc: -------------------------------------------------------------------------------- 1 | #include "pf/engine/kernel.h" 2 | #include "main.h" 3 | 4 | pf_engine::Kernel g_engine_kernel; 5 | int32_t main(int32_t argc, char * argv[]) { 6 | #if __WINDOWS__ 7 | USE_PARAM(argc); 8 | USE_PARAM(argv); 9 | _CrtSetDbgFlag(_CrtSetDbgFlag(0) | _CRTDBG_LEAK_CHECK_DF); 10 | system("color 02"); //color green 11 | system("mode con cols=120"); //cmd size 12 | WORD versionrequested; 13 | WSADATA data; 14 | int32_t error; 15 | versionrequested = MAKEWORD(2, 2); 16 | error = WSAStartup(versionrequested, &data); 17 | #endif 18 | //g_engine_kernel.setconfig(ENGINE_CONFIG_NET_ISACTIVE, true); 19 | g_engine_kernel.init(); 20 | g_engine_kernel.run(); 21 | g_engine_kernel.stop(); 22 | return 0; 23 | } 24 | -------------------------------------------------------------------------------- /documentation/examples/gateway.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/documentation/examples/gateway.gif -------------------------------------------------------------------------------- /documentation/manual/docs/hairstyle.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/documentation/manual/docs/hairstyle.txt -------------------------------------------------------------------------------- /documentation/manual/docs/hostset.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/documentation/manual/docs/hostset.ini -------------------------------------------------------------------------------- /documentation/manual/images/pf_base_module.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/documentation/manual/images/pf_base_module.png -------------------------------------------------------------------------------- /documentation/manual/images/pf_db_module.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/documentation/manual/images/pf_db_module.png -------------------------------------------------------------------------------- /documentation/manual/images/pf_engine_module.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/documentation/manual/images/pf_engine_module.png -------------------------------------------------------------------------------- /documentation/manual/images/pf_event_module.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/documentation/manual/images/pf_event_module.png -------------------------------------------------------------------------------- /documentation/manual/images/pf_file_module.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/documentation/manual/images/pf_file_module.png -------------------------------------------------------------------------------- /documentation/manual/images/pf_modules.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/documentation/manual/images/pf_modules.png -------------------------------------------------------------------------------- /documentation/manual/images/pf_net_module.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/documentation/manual/images/pf_net_module.png -------------------------------------------------------------------------------- /documentation/manual/images/pf_performance_module.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/documentation/manual/images/pf_performance_module.png -------------------------------------------------------------------------------- /documentation/manual/images/pf_script_module.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/documentation/manual/images/pf_script_module.png -------------------------------------------------------------------------------- /documentation/manual/images/pf_simple_linux.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/documentation/manual/images/pf_simple_linux.png -------------------------------------------------------------------------------- /documentation/manual/images/pf_simple_windows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/documentation/manual/images/pf_simple_windows.png -------------------------------------------------------------------------------- /documentation/manual/images/pf_sys_module.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/documentation/manual/images/pf_sys_module.png -------------------------------------------------------------------------------- /documentation/manual/images/pf_util_module.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/documentation/manual/images/pf_util_module.png -------------------------------------------------------------------------------- /documentation/manual/js/main.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Apply google prettyprint to all
 elements within the
 3 |  * documentation.
 4 |  */
 5 | jQuery(document).ready(function($)
 6 | {
 7 | 	$('.content pre, table code').addClass('prettyprint');
 8 | 	prettyPrint();
 9 | 
10 | 	var amount = null;
11 | 
12 | 	$('#donateButton').click(function(e){
13 | 		var token = function(res){
14 | 			var $input = $('').val(res.id),
15 | 				$amountInput = $('').val(amount);
16 | 			$('form').append($input).append($amountInput).submit();
17 | 		};
18 | 
19 | 		e.preventDefault();
20 | 
21 | 		amount = parseInt(prompt("How much would you like to donate in US dollars?", '10').trim());
22 | 
23 | 		if (isNaN(amount) || amount < 1)
24 | 		{
25 | 			alert("Sorry, you must enter a numerical value of $1 or more!");
26 | 		}
27 | 		else
28 | 		{
29 | 			StripeCheckout.open({
30 | 				key:         'pk_MsRVTNtBo9ojXn7PyUQmjrmlvnTIe',
31 | 				amount:      amount * 100,
32 | 				image: 		 'http://frozennode.com/images/fn-icon-128.png',
33 | 				currency:    'usd',
34 | 				name:        'FrozenNode',
35 | 				description: 'Donate to Administrator',
36 | 				panelLabel:  'Donate',
37 | 				token:       token
38 | 			});
39 | 		}
40 | 	});
41 | });
42 | 


--------------------------------------------------------------------------------
/documentation/manual/js/plugins.js:
--------------------------------------------------------------------------------
 1 | // Avoid `console` errors in browsers that lack a console.
 2 | (function() {
 3 |     var method;
 4 |     var noop = function noop() {};
 5 |     var methods = [
 6 |         'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
 7 |         'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
 8 |         'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd',
 9 |         'timeStamp', 'trace', 'warn'
10 |     ];
11 |     var length = methods.length;
12 |     var console = (window.console = window.console || {});
13 | 
14 |     while (length--) {
15 |         method = methods[length];
16 | 
17 |         // Only stub undefined methods.
18 |         if (!console[method]) {
19 |             console[method] = noop;
20 |         }
21 |     }
22 | }());
23 | 
24 | // Place any jQuery/helper plugins in here.
25 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/base/base64.hpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/core/include/pf/base/base64.hpp


--------------------------------------------------------------------------------
/pf/core/include/pf/base/hashmap/config.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id config.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/27 11:29
 9 |  * @uses the base hashmap module config
10 |  */
11 | #ifndef PF_BASE_HASHMAP_INTEGER_H_
12 | #define PF_BASE_HASHMAP_INTEGER_H_
13 | 
14 | #include "pf/base/config.h"
15 | 
16 | #undef max
17 | #undef min
18 | 
19 | #ifdef __DEPRECATED /* { */
20 | #include 
21 | #elif __LINUX__ /* }{ */
22 | #include 
23 | #elif __WINDOWS__ /* }{ */
24 | #include 
25 | #endif /* } */
26 | 
27 | #ifndef max
28 | #define max(a,b) ((a) > (b) ? (a) : (b))
29 | #define min(a,b) ((a) < (b) ? (a) : (b))
30 | #endif
31 | 
32 | #ifdef __DEPRECATED /* { */
33 | #define hash_map std::tr1::unordered_map
34 | #elif __SGI_STL_PORT /* }{ */
35 | #define hash_map std::hash_map
36 | #elif __LINUX__ /* }{ */
37 | #define hash_map __gnu_cxx::hash_map
38 | #elif __WINDOWS__ /* }{ */
39 | #define hash_map stdext::hash_map
40 | #endif /* } */
41 | 
42 | #endif //PF_BASE_HASHMAP_INTEGER_H_
43 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/base/hashmap/integer.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id integerex.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/27 12:09
 9 |  * @uses base hashmap module integer extend template class 
10 |  */
11 | #ifndef PF_BASE_HASHMAP_INTEGEREX_H_
12 | #define PF_BASE_HASHMAP_INTEGEREX_H_
13 | 
14 | #include "pf/base/hashmap/config.h"
15 | 
16 | namespace pf_base {
17 | 
18 | namespace hashmap {
19 | 
20 | class PF_API Integer {
21 | 
22 |  public:
23 |    typedef hash_map hashmap_t;
24 |    typedef hashmap_t::iterator iterator_t;
25 | 
26 |  public:
27 |    Integer();
28 |    ~Integer();
29 | 
30 |  public:
31 |    void init(uint32_t count);
32 |    bool add(uint32_t id, void *pointer);
33 |    void *get(uint32_t);
34 |    bool remove(uint32_t);
35 |    uint32_t getcount() const;
36 |    uint32_t get_maxcount() const;
37 |    void clear();
38 |    iterator_t begin();
39 |    iterator_t end();
40 | 
41 |  private:
42 |    hashmap_t hashmap_;
43 |    iterator_t iterator_;
44 |    uint32_t maxcount_;
45 | 
46 | };
47 | 
48 | }; //namespace hashmap
49 | 
50 | }; //namespace pf_base
51 | 
52 | #endif //PF_BASE_HASHMAP_INTEGEREX_H_
53 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/base/io.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id io.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/18 13:41
 9 |  * @uses your description
10 |  */
11 | 
12 | #ifndef PF_BASE_IO_H_
13 | #define PF_BASE_IO_H_
14 | 
15 | #include "pf/base/config.h"
16 | 
17 | PF_API void baseio_perror(const char *format, ...);
18 | PF_API void baseio_pwarn(const char *format, ...);
19 | PF_API void baseio_pdebug(const char *format, ...);
20 | 
21 | #endif //PF_BASE_CONFIG_H_
22 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/base/singleton.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id singleton.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/18 16:05
 9 |  * @uses Template class for creating single-instance global classes.
10 |  */
11 | #ifndef PF_BASE_SINGLETON_H_
12 | #define PF_BASE_SINGLETON_H_
13 | 
14 | #include "pf/base/config.h"
15 | 
16 | namespace pf_base {
17 | 
18 | template  class Singleton {
19 |  
20 |  public:
21 |    Singleton() {
22 |      Assert(!singleton_);
23 |      singleton_ = static_cast(this);
24 |    }
25 | 
26 |    ~Singleton() {
27 |      Assert(singleton_);
28 |      singleton_ = NULL;
29 |    }
30 | 
31 |    static T &getsingleton() {
32 |      Assert(singleton_);
33 |      return *singleton_;
34 |    }
35 | 
36 |    static T *getsingleton_pointer() {
37 |      return singleton_;
38 |    }
39 | 
40 |  protected:
41 |    static T *singleton_;
42 | 
43 |  private:
44 |    Singleton(const Singleton &);
45 |    Singleton& operator=(const Singleton &);
46 | 
47 | };
48 | 
49 | }; //namespace pf_base
50 | 
51 | #endif //PF_BASE_SINGLETON_H_
52 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/base/tinytimer.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id tinytimer.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/08/11 19:06
 9 |  * @uses tiny timer class
10 |  */
11 | #ifndef PF_BASE_TINYTIMER_H_
12 | #define PF_BASE_TINYTIMER_H_
13 | 
14 | #include "pf/base/config.h"
15 | 
16 | namespace pf_base {
17 | 
18 | class PF_API TinyTimer {
19 | 
20 |  public:
21 |    TinyTimer();
22 |    ~TinyTimer();
23 | 
24 |  public:
25 |    bool isstart() const;
26 |    void set_termtime(uint32_t time);
27 |    uint32_t get_termtime() const;
28 |    uint32_t get_last_ticktime() const;
29 |    void cleanup();
30 |    void start(uint32_t term, uint32_t now);
31 |    bool counting(uint32_t time);
32 | 
33 |  private:
34 |    uint32_t tick_termtime_;
35 |    uint32_t last_ticktime_;
36 |    bool isstart_;
37 | 
38 | };
39 | 
40 | }; //namespace pf_base
41 | 
42 | #endif //PF_BASE_TINYTIMER_H_
43 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/cache/manager.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/pap )
 3 |  * $Id manager.h
 4 |  * @link https://github.com/viticm/pap for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm@126.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2015/04/10 17:16
 9 |  * @uses cache manager class
10 |  */
11 | #ifndef PF_CACHE_MANAGER_H_
12 | #define PF_CACHE_MANAGER_H_
13 | 
14 | #include "pf/cache/config.h"
15 | 
16 | namespace pf_cache {
17 | 
18 | class PF_API Manager {
19 | 
20 |  public:
21 |    Manager();
22 |    ~Manager();
23 | 
24 |  public:
25 |    Repository *create_dbdirver();
26 |    Repository *get_dbdirver();
27 | 
28 |  private:
29 |    Repository *dbdirver_;
30 | 
31 | };
32 | 
33 | }; //namespace pf_cache
34 | 
35 | #endif //PF_CACHE_MANAGER_H_
36 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/db/define.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/pap )
 3 |  * $Id define.h
 4 |  * @link https://github.com/viticm/pap for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm@126.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2015/04/09 10:58
 9 |  * @uses db define file
10 |  */
11 | #ifndef PF_DB_DEFINE_H_
12 | #define PF_DB_DEFINE_H_
13 | 
14 | #include "pf/db/config.h"
15 | 
16 | #endif //PF_DB_DEFINE_H_
17 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/db/odbc/config.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id config.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/19 11:01
 9 |  * @uses the common db odbc base config
10 |  */
11 | #ifndef PF_DB_ODBC_CONFIG_H_
12 | #define PF_DB_ODBC_CONFIG_H_
13 | 
14 | #include "pf/db/config.h"
15 | 
16 | #define HOST_LENGTH 30
17 | #define CONNECTION_NAME_LENGTH 32
18 | #define COLUMN_NAME_MAX 30 //column name max length
19 | #define COLUMN_INFO_BUFFER_MAX (1024*8) //normal one column value length
20 | #define COLUMN_VALUE_BUFFER_MAX (1024*400)
21 | #define ERROR_MESSAGE_LENGTH_MAX 255
22 | #define DB_ODBC_COLUMN_NAME_LENGTH_MAX 256
23 | 
24 | #endif //PF_DB_ODBC_CONFIG_H_
25 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/engine/thread/config.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id config.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/07/03 14:29
 9 |  * @uses the engine thread config file
10 |  */
11 | #ifndef PF_ENGINE_THREAD_CONFIG_H_
12 | #define PF_ENGINE_THREAD_CONFIG_H_
13 | 
14 | #include "pf/engine/config.h"
15 | 
16 | #define ENGINE_THREAD_FRAME 60 //默认引擎线程帧率,注意线程运行不应为纯粹死循环
17 | 
18 | #endif //PF_ENGINE_THREAD_CONFIG_H_
19 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/engine/thread/db.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id db.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/07/03 14:26
 9 |  * @uses the engine db thread module
10 |  */
11 | #ifndef PF_ENGINE_THREAD_DB_H_
12 | #define PF_ENGINE_THREAD_DB_H_
13 | 
14 | #include "pf/engine/thread/config.h"
15 | #include "pf/sys/thread.h"
16 | #include "pf/db/manager.h"
17 | 
18 | namespace pf_engine {
19 | 
20 | namespace thread {
21 | 
22 | class PF_API DB : public pf_db::Manager, public pf_sys::Thread  {
23 | 
24 |  public:
25 |    DB();
26 |    ~DB();
27 |  
28 |  public:
29 |    bool init(const char *connection_or_dbname,
30 |              const char *username,
31 |              const char *password);
32 |    virtual void run();
33 |    virtual void stop();
34 |    void quit();
35 |    bool isactive();
36 | 
37 |  private:
38 |    bool isactive_;
39 | 
40 | };
41 | 
42 | }; //namespace thread
43 | 
44 | }; //namespace pf_engine
45 | 
46 | #endif //PF_ENGINE_THREAD_DB_H_
47 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/engine/thread/net.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id net.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/07/03 16:05
 9 |  * @uses your description
10 |  */
11 | #ifndef PF_ENGINE_THREAD_NET_H_
12 | #define PF_ENGINE_THREAD_NET_H_
13 | 
14 | #include "pf/engine/thread/config.h"
15 | #include "pf/sys/thread.h"
16 | #include "pf/net/manager.h"
17 | 
18 | namespace pf_engine {
19 | 
20 | namespace thread {
21 | 
22 | class PF_API Net : public pf_net::Manager, public pf_sys::Thread {
23 | 
24 |  public:
25 |    Net();
26 |    ~Net();
27 | 
28 |  public:
29 |    bool init(uint16_t connectionmax = NET_CONNECTION_MAX,
30 |              uint16_t listenport = 0,
31 |              const char *listenip = NULL);
32 |    virtual void run();
33 |    virtual void stop();
34 |    void quit();
35 |    bool isactive() const;
36 | 
37 |  private:
38 |    bool isactive_;
39 | 
40 | };
41 | 
42 | }; //namespace thread
43 | 
44 | }; //namespace pf_engine
45 | 
46 | #endif //PF_ENGINE_THREAD_NET_H_
47 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/engine/thread/performance.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id performance.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/07/03 16:23
 9 |  * @uses the engine performance thread
10 |  */
11 | #ifndef PF_ENGINE_THREAD_PERFORMANCE_H_
12 | #define PF_ENGINE_THREAD_PERFORMANCE_H_
13 | 
14 | #include "pf/engine/thread/config.h"
15 | #include "pf/sys/thread.h"
16 | 
17 | namespace pf_engine {
18 | 
19 | namespace thread {
20 | 
21 | class PF_API Performance : public pf_sys::Thread {
22 | 
23 |  public:
24 |    Performance();
25 |    ~Performance();
26 | 
27 |  public:
28 |    bool init();
29 |    virtual void run();
30 |    virtual void stop();
31 |    void quit();
32 |    bool isactive();
33 | 
34 |  private:
35 |    bool isactive_;
36 | 
37 | };
38 | 
39 | }; //namespace thread
40 | 
41 | }; //namespace pf_engine
42 | 
43 | #endif //PF_ENGINE_THREAD_PERFORMANCE_H_
44 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/engine/thread/script.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id script.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/07/03 16:28
 9 |  * @uses the engine script thread class
10 |  */
11 | #ifndef PF_ENGINE_THREAD_SCRIPT_H_
12 | #define PF_ENGINE_THREAD_SCRIPT_H_
13 | 
14 | #include "pf/engine/thread/config.h"
15 | #include "pf/sys/thread.h"
16 | 
17 | namespace pf_engine {
18 | 
19 | namespace thread {
20 | 
21 | class PF_API Script : public pf_sys::Thread {
22 | 
23 |  public:
24 |    Script();
25 |    ~Script();
26 | 
27 |  public:
28 |    bool init(const char *rootpath = NULL,
29 |              const char *workpath = NULL,
30 |              const char *globalfile = NULL);
31 |    virtual void run();
32 |    virtual void stop();
33 |    void quit();
34 |    bool isactive();
35 | 
36 |  private:
37 |    bool isactive_;
38 | 
39 | };
40 | 
41 | }; //namespace thread
42 | 
43 | }; //namespace pf_engine
44 | 
45 | #endif //PF_ENGINE_THREAD_SCRIPT_H_
46 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/file/config.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id config.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/19 14:15
 9 |  * @uses common file base config
10 |  */
11 | #ifndef PF_FILE_CONFIG_H_
12 | #define PF_FILE_CONFIG_H_
13 | 
14 | #include "pf/base/config.h"
15 | 
16 | //定义此宏则文件数据库读取的字符串将从GBK转为UTF-8
17 | #define FILE_DATABASE_CONVERT_GBK_TO_UTF8
18 | //文件数据标识,只有该类型的二进制文件才会认为正确
19 | #define FILE_DATABASE_INDENTIFY 0XDDBBCC00 
20 | 
21 | #endif //PF_FILE_CONFIG_H_
22 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/net/config.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/core/include/pf/net/config.h


--------------------------------------------------------------------------------
/pf/core/include/pf/net/connection/config.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id config.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/23 13:47
 9 |  * @uses the net connection base config file
10 |  */
11 | #ifndef PF_NET_CONNECTION_CONFIG_H_
12 | #define PF_NET_CONNECTION_CONFIG_H_
13 | 
14 | #include "pf/net/config.h"
15 | 
16 | //默认每帧执行的消息数量上限
17 | #define NET_CONNECTION_EXECUTE_COUNT_PRE_TICK_DEFAULT 12
18 | #define NET_CONNECTION_MAX 1024
19 | #define NET_CONNECTION_CACHESIZE_MAX 1024
20 | #define NET_CONNECTION_KICKTIME 6000000 //超过该时间则断开连接
21 | #define NET_CONNECTION_INCOME_KICKTIME 60000
22 | #define NET_CONNECTION_POOL_SIZE_DEFAULT 1280 //连接池默认大小
23 | 
24 | enum {
25 |   kConnectionCompressNone = 0, //不压缩
26 |   kConnectionCompressInput, //只压缩输入流
27 |   kConnectionCompressOutput, //只压缩输出流
28 |   kConnectionCompressAll, //输入流和输出流都压缩
29 | }; //连接压缩模式
30 | 
31 | #endif //PF_NET_CONNECTION_CONFIG_H_
32 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/net/connection/manager/config.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id config.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/23 13:47
 9 |  * @uses the net connection manager config file
10 |  */
11 | #ifndef PF_NET_CONNECTION_MANAGER_CONFIG_H_
12 | #define PF_NET_CONNECTION_MANAGER_CONFIG_H_
13 | 
14 | #include "pf/net/connection/config.h"
15 | 
16 | #endif //PF_NET_CONNECTION_MANAGER_CONFIG_H_
17 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/net/connection/manager/iocp.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id iocp.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/07/17 17:38
 9 |  * @uses the connection iocp manager
10 |  */
11 | #ifndef PF_NET_CONNECTION_MANAGER_IOCP_H_
12 | #define PF_NET_CONNECTION_MANAGER_IOCP_H_
13 | 
14 | #if __WINDOWS__ && defined(_PF_NET_IOCP)
15 | #include "pf/net/connection/manager/config.h"
16 | #include "pf/net/connection/manager/base.h"
17 | #error iocp connection manager not completed!
18 | 
19 | namespace pf_net {
20 | 
21 | namespace connection {
22 | 
23 | namespace manager {
24 | 
25 | class PF_API Iocp : public Base {
26 | 
27 |  public:
28 |    Iocp();
29 |    virtual ~Iocp();
30 | 
31 | };
32 | 
33 | }; //namespace manager
34 | 
35 | }; //namespace connection
36 | 
37 | }; //namespace pf_net
38 | #endif
39 | 
40 | #endif //PF_NET_CONNECTION_MANAGER_IOCP_H_
41 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/net/packet/config.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id config.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/23 11:05
 9 |  * @uses the net packet config file
10 |  */
11 | #ifndef PF_NET_PACKET_CONFIG_H_
12 | #define PF_NET_PACKET_CONFIG_H_
13 | 
14 | #include "pf/net/config.h"
15 | 
16 | #define NET_PACKET_DYNAMIC_ONCESIZE (1024) //动态网络包每次重新增加的内存大小
17 | #define NET_PACKET_DYNAMIC_SIZEMAX (1024 * 100) //动态网络包的最大内存大小
18 | 
19 | #endif //PF_NET_PACKET_CONFIG_H_
20 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/net/packet/factory.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/pap )
 3 |  * $Id packetfactory.h
 4 |  * @link https://github.com/viticm/pap for the canonical source repository
 5 |  * @copyright Copyright (c) 2013-2013 viticm( viticm@126.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014-1-3 10:11:38
 9 |  * @uses server and client net packet factory class interface
10 |  */
11 | #ifndef PF_NET_PACKET_FACTORY_H_
12 | #define PF_NET_PACKET_FACTORY_H_
13 | 
14 | #include "pf/net/config.h"
15 | 
16 | namespace pf_net {
17 | 
18 | namespace packet {
19 | 
20 | class PF_API Factory {
21 | 
22 |  public:
23 |    virtual ~Factory() {};
24 |    virtual Base *createpacket() = 0;
25 |    virtual uint16_t get_packetid() const = 0;
26 |    virtual uint32_t get_packet_maxsize() const = 0;
27 | 
28 | };
29 | 
30 | }; //namespace packet
31 | 
32 | }; //namespace pf_net
33 | 
34 | #endif //PF_NET_PACKET_FACTORY_H_
35 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/net/socket/encryptor.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id encryptor.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm/viticm.ti@gmail.com
 8 |  * @date 2015/01/25 22:06
 9 |  * @uses encryptor of net socket stream
10 | */
11 | #ifndef PF_NET_SOCKET_ENCRYPTOR_H_
12 | #define PF_NET_SOCKET_ENCRYPTOR_H_
13 | 
14 | #include "pf/net/socket/config.h"
15 | 
16 | namespace pf_net {
17 | 
18 | namespace socket {
19 | 
20 | class PF_API Encryptor {
21 | 
22 |  public:
23 |    Encryptor();
24 |    ~Encryptor();
25 | 
26 |  public:
27 |    enum { kKeyLength = 16, };
28 | 
29 |  public:
30 |    void *encrypt(void *out, const void *in, uint32_t count);
31 |    void *decrypt(void *out, const void *in, uint32_t count);
32 | 
33 |  public:
34 |    void setkey(const char *key);
35 |    const char *getkey();
36 |    void enable(bool enable);
37 |    bool isenable() const;
38 | 
39 |  private:
40 |    char key_[kKeyLength];
41 |    bool isenable_;
42 | 
43 | };
44 | 
45 | }; //namespace socket
46 | 
47 | }; //namespace pf_net
48 | 
49 | #endif //PF_NET_SOCKET_ENCRYPTOR_H_
50 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/net/socket/server.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id server.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/20 11:18
 9 |  * @uses server net model socket class
10 |  */
11 | #ifndef PF_NET_SOCKET_SERVER_H_
12 | #define PF_NET_SOCKET_SERVER_H_
13 | 
14 | #include "pf/net/socket/base.h"
15 | 
16 | namespace pf_net {
17 | 
18 | namespace socket {
19 | 
20 | class PF_API Server {
21 | 
22 |  public:
23 |    Server(uint16_t port, const char *ip = NULL, uint32_t backlog = 5);
24 |    ~Server();
25 | 
26 |  public:
27 |    void close();
28 |    bool accept(pf_net::socket::Base *socket);
29 |    uint32_t getlinger() const;
30 |    bool setlinger(uint32_t lingertime);
31 |    bool is_nonblocking() const;
32 |    bool set_nonblocking(bool on = true);
33 |    uint32_t getreceive_buffersize() const;
34 |    bool setreceive_buffersize(uint32_t size);
35 |    uint32_t getsend_buffersize() const;
36 |    bool setsend_buffersize(uint32_t size);
37 |    int32_t getid() const;
38 |    uint16_t getport() const;
39 | 
40 |  protected:
41 |    pf_net::socket::Base* socket_;
42 | 
43 | };
44 | 
45 | }; //namespace socket
46 | 
47 | }; //namespace pf_net
48 | 
49 | #endif //PF_NET_SOCKET_SERVER_H_
50 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/performance/config.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id config.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/07/07 10:14
 9 |  * @uses the perfoemance module config file
10 |  */
11 | #ifndef PF_PERFORMANCE_CONFIG_H_
12 | #define PF_PERFORMANCE_CONFIG_H_
13 | 
14 | #include "pf/base/config.h"
15 | 
16 | //默认输出性能信息的时间间隔(s) 
17 | #define PERFORMANCE_EYES_PRINT_INTERVAL_DEFAULT 30
18 | 
19 | #endif //PF_PERFORMANCE_CONFIG_H_
20 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/script/cache/base.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id base.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/27 14:55
 9 |  * @uses script cache base class
10 |  */
11 | #ifndef PF_SCRIPT_CACHE_BASE_H_
12 | #define PF_SCRIPT_CACHE_BASE_H_
13 | 
14 | #include "pf/script/cache/config.h"
15 | 
16 | namespace pf_script {
17 | 
18 | namespace cache {
19 | 
20 | class PF_API Base {
21 | 
22 |  public:
23 |    Base();
24 |    ~Base();
25 |    
26 |  public:
27 |    virtual bool init(int32_t id, const char *filename, FILE *fp);
28 |    virtual void clear();
29 | 
30 |  public:
31 |    int32_t getid() const;
32 |    const char *get_filename() const;
33 | 
34 |  protected:
35 |    int32_t id_;
36 |    char filename_[FILENAME_MAX];
37 | 
38 | };
39 | 
40 | }; //namespace cache
41 | 
42 | }; //namespace pf_script
43 | 
44 | #endif //PF_SCRIPT_CACHE_BASE_H_
45 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/script/cache/config.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id config.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/27 14:56
 9 |  * @uses script cache module config
10 |  */
11 | #ifndef PF_SCRIPT_CACHE_CONFIG_H_
12 | #define PF_SCRIPT_CACHE_CONFIG_H_
13 | 
14 | #include "pf/script/config.h"
15 | 
16 | #define SCRIPT_CACHE_TABLE_DATA_MAX (1024*8)
17 | 
18 | #endif //PF_SCRIPT_CACHE_CONFIG_H_
19 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/script/config.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id config.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/25 19:06
 9 |  * @uses script module base config file
10 |  */
11 | #ifndef PF_SCRIPT_CONFIG_H_
12 | #define PF_SCRIPT_CONFIG_H_
13 | 
14 | #include "pf/base/config.h"
15 | 
16 | #if __WINDOWS__
17 | #define SCRIPT_ROOT_PATH_DEFAULT "public\\data\\script"
18 | #define SCRIPT_WORK_PATH_DEFAULT "\\"
19 | #elif __LINUX__
20 | #define SCRIPT_ROOT_PATH_DEFAULT "public/data/script"
21 | #define SCRIPT_WORK_PATH_DEFAULT "/"
22 | #endif
23 | 
24 | #endif //PF_SCRIPT_CONFIG_H_
25 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/script/lua/stack.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id stack.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/26 16:12
 9 |  * @uses script lua module about stack classes
10 |  */
11 | #ifndef PF_SCRIPT_LUA_STACK_H_
12 | #define PF_SCRIPT_LUA_STACK_H_
13 | 
14 | #include "pf/script/lua/config.h"
15 | 
16 | namespace pf_script {
17 | 
18 | namespace lua {
19 | 
20 | class PF_API StackStep {
21 | 
22 |  public:
23 |    StackStep();
24 |    ~StackStep();
25 | 
26 |  public:
27 |    void reset();
28 | 
29 |  public:
30 |    int32_t scriptid_;
31 |    char functionname_[SCRIPT_LUA_STACK_FUNCTION_LENGTH_MAX];
32 | 
33 | };
34 | 
35 | class PF_API Stack {
36 | 
37 |  public:
38 |    Stack();
39 |    ~Stack();
40 | 
41 |  public:
42 |    void reset();
43 |    bool stepenter(const char *functionname, int32_t scriptid);
44 |    bool stepleave();
45 | 
46 |  public:
47 |    int32_t currentstep_;
48 |    StackStep step_[SCRIPT_LUA_STACK_STEP_MAX];
49 | 
50 |  public:
51 |    static Stack run_[SCRIPT_LUA_SCENE_MAX];
52 | 
53 | };
54 | 
55 | }; //namespace lua
56 | 
57 | }; //namespace pf_script
58 | 
59 | #endif //PF_SCRIPT_LUA_STACK_H_
60 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/sys/config.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id config.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2013-2013 viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/18 17:04
 9 |  * @uses 模块配置文件,放置本模块内的宏定义以及需要用到的宏方法,
10 |  *       每个模块都需要新建出这个文件来(如果有冲突,可以更名为define.h),
11 |  *       即每个模块下需要有define.h或config.h里面放置公用定义以及方法。
12 |  */
13 | #ifndef PF_SYS_CONFIG_H_
14 | #define PF_SYS_CONFIG_H_
15 | 
16 | #include "pf/base/config.h"
17 | 
18 | #define INTERFACE_NAME_MAX 20
19 | #ifndef LINE_MAX
20 | #define LINE_MAX 1024
21 | #endif
22 | #define SYSTEM_NAME_MAX 126
23 | #define CPU_NAME_MAX 256
24 | 
25 | #endif //PF_SYS_CONFIG_H_
26 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/sys/memory/config.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id config.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/25 20:41
 9 |  * @uses system memory base config file
10 |  */
11 | #ifndef PF_SYS_MEMORY_CONFIG_H_
12 | #define PF_SYS_MEMORY_CONFIG_H_
13 | 
14 | #include "pf/sys/config.h"
15 | 
16 | typedef enum {
17 |   kCmdModelClearAll = 1,
18 |   kCmdModelLoadDump = 2,
19 |   kCmdModelRecover = 3,
20 | } cmd_model_t; //命令行模式
21 | 
22 | #define SYS_MEMORY_SHARENODE_DETECT_IDLE 5000
23 | #define SYS_MEMORY_SHARENODE_SAVEINTERVAL 300000
24 | #define SYS_MEMORY_SHARENODE_SAVECOUNT_PERTICK 5
25 | 
26 | #endif //PF_SYS_MEMORY_CONFIG_H_
27 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/sys/memory/dynamic_allocator.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id dynamic_allocator.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/25 20:47
 9 |  * @uses the system memory manger base class
10 |  */
11 | #ifndef PF_SYS_MEMORY_DYNAMIC_ALLOCATOR_H_
12 | #define PF_SYS_MEMORY_DYNAMIC_ALLOCATOR_H_
13 | 
14 | #include "pf/sys/memory/config.h"
15 | 
16 | namespace pf_sys {
17 | 
18 | namespace memory {
19 | 
20 | class PF_API DynamicAllocator {
21 | 
22 |  public:
23 |    DynamicAllocator();
24 |    ~DynamicAllocator();
25 | 
26 |  public:
27 |    void *malloc(size_t size);
28 |    void free();
29 |    void *getpointer();
30 |    size_t getsize() const;
31 |  
32 |  private:
33 |    void *pointer_;
34 |    size_t size_;
35 | 
36 | }; 
37 | 
38 | }; //namespace memory
39 | 
40 | }; //namespace pf_sys
41 | 
42 | #endif //PF_SYS_MEMORY_DYNAMIC_ALLOCATOR_H_
43 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/sys/memory/static_allocator.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id static_allocator.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/06/25 20:47
 9 |  * @uses the system memory allocator
10 |  */
11 | #ifndef PF_SYS_MEMORY_STATIC_ALLOCATOR_H_
12 | #define PF_SYS_MEMORY_STATIC_ALLOCATOR_H_
13 | 
14 | #include "pf/sys/config.h"
15 | 
16 | namespace pf_sys {
17 | 
18 | namespace memory {
19 | 
20 | class PF_API StaticAllocator {
21 | 
22 |  public:
23 |    StaticAllocator();
24 |    ~StaticAllocator();
25 | 
26 |  public:
27 |    void init(char *buffer, size_t size);
28 |    void clear();
29 |    void *malloc(size_t size);
30 |    void *calloc(size_t count, size_t size);
31 |    void *realloc(void *data, size_t newsize);
32 |    void free(void *data);
33 | 
34 |  private:
35 |    char *buffer_;
36 |    size_t size_;
37 |    size_t offset_;
38 | 
39 | };
40 | 
41 | }; //namespace memory
42 | 
43 | }; //namespace pf_sys
44 | 
45 | #endif //PF_SYS_MEMORY_STATIC_ALLOCATOR_H_
46 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/sys/minidump.h:
--------------------------------------------------------------------------------
 1 | #ifndef PAP_COMMON_SYS_MINIDUMP_H_
 2 | #define PAP_COMMON_SYS_MINIDUMP_H_
 3 | 
 4 | #include "pf/sys/config.h"
 5 | 
 6 | extern const char *g_dump_exename;
 7 | 
 8 | namespace pap_common_sys {
 9 | 
10 | namespace minidump {
11 | 
12 | #if __WINDOWS__
13 | #include 
14 | PF_API LONG WINAPI unhandled_exceptionfilter(
15 |   struct _EXCEPTION_POINTERS* exceptioninfo);
16 | #endif
17 | 
18 | }; //namespace minidump
19 | 
20 | }; //namespace pap_common_sys
21 | 
22 | #endif //PAP_COMMON_SYS_MINIDUMP_H_
23 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/sys/util.h:
--------------------------------------------------------------------------------
 1 | #ifndef PF_SYS_UTIL_H_
 2 | #define PF_SYS_UTIL_H_
 3 | 
 4 | #include "pf/sys/config.h"
 5 | 
 6 | namespace pf_sys {
 7 | 
 8 | namespace util {
 9 | 
10 | PF_API void dumpstack(const char *log_fileprefix, const char *type);
11 | //执行系统命令,并将结果输出返回到result
12 | PF_API int32_t exec(const char *command, char *result, size_t size);
13 | PF_API bool set_core_rlimit();
14 | 
15 | }; //namespace util
16 | 
17 | }; //namespace pf_sys
18 | 
19 | #endif //PF_SYS_UTIL_H_
20 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/util/compressor/config.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id config.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/07/11 13:43
 9 |  * @uses the util compressor config file
10 |  */
11 | #ifndef PF_UTIL_COMPRESSOR_CONFIG_H_
12 | #define PF_UTIL_COMPRESSOR_CONFIG_H_
13 | 
14 | #include "pf/util/config.h"
15 | 
16 | #endif //PF_UTIL_COMPRESSOR_CONFIG_H_
17 | 


--------------------------------------------------------------------------------
/pf/core/include/pf/util/config.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PLAIN FRAMEWORK ( https://github.com/viticm/plainframework )
 3 |  * $Id config.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm.ti@gmail.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/07/11 13:44
 9 |  * @uses the util config file
10 |  */
11 | #ifndef PF_UTIL_CONFIG_H_
12 | #define PF_UTIL_CONFIG_H_
13 | 
14 | #include "pf/base/config.h"
15 | 
16 | #endif //PF_UTIL_CONFIG_H_
17 | 


--------------------------------------------------------------------------------
/pf/core/mk_tags:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | #@desc this script can auto create cscope file and ctags
 3 | #@date 2013-12-9 13:53:44
 4 | #@author viticm
 5 | paths="./"
 6 | types="php lua h cpp c cc hpp erl hrl inl tpp"
 7 | n=0
 8 | 
 9 | is_win32=false
10 | ENV_PATH="F:\tools\editor\vim\vim74"
11 | if [[ `uname | grep W32_NT` != "" ]] ; then
12 |   is_win32=true
13 |   export PATH=$ENV_PATH
14 | fi
15 | 
16 | for path in ${paths}
17 | do
18 |   cmd="find ${path}"
19 |   i=0
20 |   for filetype in ${types} 
21 |   do
22 |     if [[ 0 -eq ${i} ]] ; then
23 |       cmd=${cmd}" -name \*."${filetype}
24 |     else
25 |       cmd=${cmd}" -o -name \*."${filetype}
26 |     fi
27 |     ((++i))
28 |   done
29 |   if [[ 0 -eq ${n} ]] ; then
30 |     cmd=${cmd}" > cscope.files"
31 |   else
32 |     cmd=${cmd}" >> cscope.files"
33 |   fi
34 |   echo ${cmd} | sh
35 |   ((++n))
36 | done
37 | 
38 | if $is_win32 ; then
39 |   if [ -f ./cscope.out ] ; then
40 |     echo "please close gvim and delete current cscope.out, then try angin."
41 |     exit 1
42 |   fi
43 |   cscope -bk -i cscope.files
44 | else
45 |   cscope -bkq -i cscope.files
46 | fi
47 | ctags -R
48 | 


--------------------------------------------------------------------------------
/pf/core/pf_core.pproject:
--------------------------------------------------------------------------------
 1 | /**
 2 |   Plain framework project file.
 3 |   Version:              The project current version.
 4 |   Type:                 Project type [library|executable].
 5 |   LinkDirectories:      Link directories as the Dependencies directories.
 6 |   IncludeDirectories:   Include directories.
 7 |   ExtraSources:         Extra source file or directories.
 8 |   SourceFilters:        Source directory or filename filter(not active).
 9 |   OutputPath:           The project output path.
10 |   Definitions:          Macros definitions.
11 |   Dependencies:         Dependencies library.
12 | **/
13 | {
14 |   "Version": "1.0.5",
15 |   "Type": "library",
16 |   "LinkDirectories": [
17 |     "./",
18 |     "./../../dependencies/dll"
19 |   ],
20 |   "IncludeDirectories": [
21 |     "../include",
22 |     "../../dependencies/lua/5.3.0/include",
23 |     "../../dependencies/iconv/include",
24 |     "/usr/local/unixODBC/include"
25 |   ],
26 |   "ExtraSources": [
27 |   ],
28 |   "SourceFilters": [
29 |     "CMakeFiles"
30 |   ],  
31 |   "DisableSpecificWarnings": "4819;",
32 |   "OutputPath": "./../dll/",
33 |   "Definitions": [
34 |     "PF_CORE"
35 |   ],
36 |   "Dependencies": [
37 |     "lua",
38 |     "odbc",
39 |     "iconv"
40 |   ]
41 | }
42 | 


--------------------------------------------------------------------------------
/pf/core/pf_cores.pproject:
--------------------------------------------------------------------------------
 1 | /**
 2 |   Plain framework project file.
 3 |   lib pf_cores 中不支持脚本,并且不支持ODBC,所有方法为空实现
 4 |   Version:              The project current version.
 5 |   Type:                 Project type [library|executable].
 6 |   LinkDirectories:      Link directories as the Dependencies directories.
 7 |   IncludeDirectories:   Include directories.
 8 |   ExtraSources:         Extra source file or directories.
 9 |   SourceFilters:        Source directory or filename filter(not active).
10 |   OutputPath:           The project output path.
11 |   Definitions:          Macros definitions.
12 |   Dependencies:         Dependencies library.
13 | **/
14 | {
15 |   "Version": "1.0.5",
16 |   "Type": "library",
17 |   "LinkDirectories": [
18 |     "./",
19 |     "./../../dependencies/dll"
20 |   ],
21 |   "IncludeDirectories": [
22 |     "../include",
23 |     "../../dependencies/iconv/include"
24 |   ],
25 |   "ExtraSources": [
26 |   ],
27 |   "SourceFilters": [
28 |     "CMakeFiles"
29 |   ],  
30 |   "DisableSpecificWarnings": "4819;",
31 |   "OutputPath": "./../dll/",
32 |   "Definitions": [
33 |     "PF_CORE",
34 |     "PF_CORE_WITH_NOLUA",
35 |     "PF_CORE_WITH_NOODBC"
36 |   ],
37 |   "Dependencies": [
38 |     "iconv"
39 |   ]
40 | }
41 | 


--------------------------------------------------------------------------------
/pf/core/proj.win/pf_core.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/core/proj.win/pf_core.rc


--------------------------------------------------------------------------------
/pf/core/proj.win/resource.h:
--------------------------------------------------------------------------------
 1 | //{{NO_DEPENDENCIES}}
 2 | // Microsoft Visual C++ generated include file.
 3 | 
 4 | // Next default values for new objects
 5 | // 
 6 | #ifdef APSTUDIO_INVOKED
 7 | #ifndef APSTUDIO_READONLY_SYMBOLS
 8 | #define _APF_NEXT_RESOURCE_VALUE        101
 9 | #define _APF_NEXT_COMMAND_VALUE         40001
10 | #define _APF_NEXT_CONTROL_VALUE         1001
11 | #define _APF_NEXT_SYMED_VALUE           101
12 | #endif
13 | #endif
14 | 


--------------------------------------------------------------------------------
/pf/core/proj.win1/pf_cores.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/core/proj.win1/pf_cores.rc


--------------------------------------------------------------------------------
/pf/core/proj.win1/resource.h:
--------------------------------------------------------------------------------
 1 | //{{NO_DEPENDENCIES}}
 2 | // Microsoft Visual C++ generated include file.
 3 | 
 4 | // Next default values for new objects
 5 | // 
 6 | #ifdef APSTUDIO_INVOKED
 7 | #ifndef APSTUDIO_READONLY_SYMBOLS
 8 | #define _APF_NEXT_RESOURCE_VALUE        101
 9 | #define _APF_NEXT_COMMAND_VALUE         40001
10 | #define _APF_NEXT_CONTROL_VALUE         1001
11 | #define _APF_NEXT_SYMED_VALUE           101
12 | #endif
13 | #endif
14 | 


--------------------------------------------------------------------------------
/pf/core/replace.sh:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | 
 3 | files=`find ./ -name "*.cc" -o -name "*.h" -o -name "*.inl"`
 4 | 
 5 | for filename in $files 
 6 | do
 7 |   echo $filename
 8 |   sed -i 's;PS_COMMON;PF;g' $filename
 9 |   sed -i 's;common/;pf/;g' $filename
10 |   sed -i 's;PLAIN SERVER Engine;PLAIN FRAMEWORK;g' $filename
11 |   sed -i 's;plainserver;plainframework;g' $filename
12 |   sed -i 's;PS_;PF_;g' $filename
13 |   sed -i 's;ps_common_;pf_;g' $filename
14 |   sed -i 's;plianserver;plainframework;g' $filename
15 |   sed -i 's;_PF_GATEWAY;_VGATEWAY;g' $filename
16 |   sed -i 's;_PF_LOGIN;_VLOGIN;g' $filename
17 |   sed -i 's;_PF_CENTER;_VCENTER;g' $filename
18 |   sed -i 's;_PF_SERVER;_VSERVER;g' $filename
19 |   sed -i 's;char\* ;char \*;g' $filename
20 |   sed -i 's;void\* ;void \*;g' $filename
21 |   sed -i 's;int32_t\& ;int32_t \&;g' $filename
22 |   sed -i 's;PAP Engine;PLAIN FRAMEWORK;g' $filename
23 | done
24 | 


--------------------------------------------------------------------------------
/pf/core/src/base/string.cc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/core/src/base/string.cc


--------------------------------------------------------------------------------
/pf/core/src/cache/manager.cc:
--------------------------------------------------------------------------------
 1 | #include "pf/cache/dbstore.h"
 2 | #include "pf/cache/repository.h"
 3 | #include "pf/cache/manager.h"
 4 | 
 5 | namespace pf_cache {
 6 | 
 7 | Manager::Manager() {
 8 |   __ENTER_FUNCTION
 9 |     dbdirver_ = NULL;
10 |   __LEAVE_FUNCTION
11 | }
12 |    
13 | Manager::~Manager() {
14 |   __ENTER_FUNCTION
15 |     SAFE_DELETE(dbdirver_);
16 |   __LEAVE_FUNCTION
17 | }
18 | 
19 | Repository *Manager::create_dbdirver() {
20 |   __ENTER_FUNCTION
21 |     Repository *result = 
22 |       is_null(dbdirver_) ? new Repository(new DBStore) : dbdirver_;
23 |     dbdirver_ = is_null(dbdirver_) ? result : dbdirver_;
24 |     return result;
25 |   __LEAVE_FUNCTION
26 |     return NULL;
27 | }
28 |    
29 | Repository *Manager::get_dbdirver() {
30 |   return dbdirver_;
31 | }
32 | 
33 | } //namespace pf_cache
34 | 


--------------------------------------------------------------------------------
/pf/core/src/engine/thread/db.cc:
--------------------------------------------------------------------------------
 1 | #include "pf/base/util.h"
 2 | #include "pf/engine/thread/db.h"
 3 | 
 4 | using namespace pf_engine::thread;
 5 | 
 6 | DB::DB() {
 7 |   isactive_ = false;
 8 | }
 9 | 
10 | DB::~DB() {
11 |   //do nothing
12 | }
13 | 
14 | bool DB::init(const char *connection_or_dbname,
15 |               const char *username,
16 |               const char *password) {
17 |   __ENTER_FUNCTION
18 |     using namespace pf_db;
19 |     isactive_  = Manager::init(connection_or_dbname, username, password);
20 |     return isactive_;
21 |   __LEAVE_FUNCTION
22 |     return false;
23 | }
24 | 
25 | void DB::run() {
26 |   __ENTER_FUNCTION
27 |     using namespace pf_db;
28 |     while (isactive()) {
29 |       Manager::check_db_connect();
30 |       int32_t waittime = 
31 |         static_cast(1000 / ENGINE_THREAD_FRAME);
32 |       pf_base::util::sleep(waittime);
33 |     }
34 |   __LEAVE_FUNCTION
35 | }
36 | 
37 | bool DB::isactive() {
38 |   return isactive_;
39 | }
40 | 
41 | void DB::stop() {
42 |   isactive_ = false;
43 | }
44 | 
45 | void DB::quit() {
46 |   //do nothing
47 | }
48 | 


--------------------------------------------------------------------------------
/pf/core/src/engine/thread/net.cc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/core/src/engine/thread/net.cc


--------------------------------------------------------------------------------
/pf/core/src/engine/thread/performance.cc:
--------------------------------------------------------------------------------
 1 | #include "pf/performance/eyes.h"
 2 | #include "pf/base/util.h"
 3 | #include "pf/engine/thread/performance.h"
 4 | 
 5 | using namespace pf_engine::thread;
 6 | 
 7 | Performance::Performance() {
 8 |   isactive_ = false;
 9 | }
10 | 
11 | Performance::~Performance() {
12 |   __ENTER_FUNCTION
13 |     SAFE_DELETE(g_performance_eyes);
14 |   __LEAVE_FUNCTION
15 | }
16 | 
17 | bool Performance::init() {
18 |   __ENTER_FUNCTION
19 |     using namespace pf_performance;
20 |     if (!PERFORMANCE_EYES_POINTER)
21 |       g_performance_eyes = new Eyes();
22 |     if (!PERFORMANCE_EYES_POINTER) return false;
23 |     isactive_ = true;
24 |     return true;
25 |   __LEAVE_FUNCTION
26 |     return false;
27 | }
28 | 
29 | void Performance::run() {
30 |   __ENTER_FUNCTION
31 |     while (isactive()) {
32 |       if (PERFORMANCE_EYES_POINTER) {
33 |         PERFORMANCE_EYES_POINTER->activate();
34 |       }
35 |       pf_base::util::sleep(1);
36 |     }
37 |   __LEAVE_FUNCTION
38 | }
39 | 
40 | void Performance::stop() {
41 |   isactive_ = false;
42 | }
43 | 
44 | bool Performance::isactive() {
45 |   return isactive_;
46 | }
47 | 


--------------------------------------------------------------------------------
/pf/core/src/net/connection/manager/iocp.cc:
--------------------------------------------------------------------------------
 1 | #include "pf/net/connection/manager/iocp.h"
 2 | 
 3 | #if __WINDOWS__ && defined(_PF_NET_IOCP)
 4 | namespace pf_net {
 5 | 
 6 | namespace connection {
 7 | 
 8 | namespace manager {
 9 | 
10 | Iocp::Iocp() {
11 |   //do nothing
12 | }
13 | 
14 | Iocp::~Iocp() {
15 |   //do nothing
16 | }
17 | 
18 | } //namespace manager
19 | 
20 | } //namespace connection
21 | 
22 | } //namespace pf_net
23 | #endif
24 | 


--------------------------------------------------------------------------------
/pf/core/src/script/cache/base.cc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/core/src/script/cache/base.cc


--------------------------------------------------------------------------------
/pf/core/src/script/lua/system.cc:
--------------------------------------------------------------------------------
 1 | #include "pf/base/log.h"
 2 | #include "pf/script/lua/vm.h"
 3 | #include "pf/script/lua/system.h"
 4 | 
 5 | pf_script::lua::System *g_script_luasystem = NULL;
 6 | 
 7 | template <> 
 8 | pf_script::lua::System 
 9 |   *pf_base::Singleton::singleton_ = NULL;
10 | 
11 | namespace pf_script {
12 | 
13 | namespace lua {
14 | 
15 | System *System::getsingleton_pointer() {
16 |   return singleton_;
17 | }
18 | 
19 | System &System::getsingleton() {
20 |   Assert(singleton_);
21 |   return *singleton_;
22 | }
23 | 
24 | System::System() {
25 |   //do nothing
26 | }
27 | 
28 | System::~System() {
29 |   //do nothing
30 | }
31 | 
32 | void System::registerfunctions() {
33 |   __ENTER_FUNCTION
34 |     if (function_registers_) function_registers_();
35 |   __LEAVE_FUNCTION
36 | }
37 | 
38 | void System::set_function_registers(function_registers function) {
39 |   function_registers_ = function;
40 | }
41 | 
42 | void System::tick(uint32_t time) {
43 |   __ENTER_FUNCTION
44 | #ifndef PF_CORE_WITH_NOLUA
45 |     if (time > 0) get_vm()->checkgc(time);
46 | #else
47 |     USE_PARAM(time);
48 | #endif
49 |   __LEAVE_FUNCTION
50 | }
51 | 
52 | } //namespace lua
53 | 
54 | } //namespace pf_script
55 | 


--------------------------------------------------------------------------------
/pf/core/src/sys/info.cc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/core/src/sys/info.cc


--------------------------------------------------------------------------------
/pf/core/src/util/bitflag.cc:
--------------------------------------------------------------------------------
1 | #include "pf/util/bitflag.h"
2 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/README.txt:
--------------------------------------------------------------------------------
1 | #version: 1.14


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/aliases_aix.h:
--------------------------------------------------------------------------------
 1 |   S(aix_0, "CP856", ei_cp856 )
 2 |   S(aix_1, "CP922", ei_cp922 )
 3 |   S(aix_2, "CP943", ei_cp943 )
 4 |   S(aix_3, "CP1046", ei_cp1046 )
 5 |   S(aix_4, "CP1124", ei_cp1124 )
 6 |   S(aix_5, "CP1129", ei_cp1129 )
 7 |   S(aix_6, "CP1161", ei_cp1161 )
 8 |   S(aix_7, "IBM1161", ei_cp1161 )
 9 |   S(aix_8, "IBM-1161", ei_cp1161 )
10 |   S(aix_9, "CSIBM1161", ei_cp1161 )
11 |   S(aix_10, "CP1162", ei_cp1162 )
12 |   S(aix_11, "IBM1162", ei_cp1162 )
13 |   S(aix_12, "IBM-1162", ei_cp1162 )
14 |   S(aix_13, "CSIBM1162", ei_cp1162 )
15 |   S(aix_14, "CP1163", ei_cp1163 )
16 |   S(aix_15, "IBM1163", ei_cp1163 )
17 |   S(aix_16, "IBM-1163", ei_cp1163 )
18 |   S(aix_17, "CSIBM1163", ei_cp1163 )
19 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/aliases_aix_sysaix.h:
--------------------------------------------------------------------------------
 1 |   S(aix_0, "CP856", ei_cp856 )
 2 |   S(aix_1, "IBM-856", ei_cp856 )
 3 |   S(aix_2, "CP922", ei_cp922 )
 4 |   S(aix_3, "IBM-922", ei_cp922 )
 5 |   S(aix_4, "CP943", ei_cp943 )
 6 |   S(aix_5, "IBM-943", ei_cp943 )
 7 |   S(aix_6, "CP1046", ei_cp1046 )
 8 |   S(aix_7, "IBM-1046", ei_cp1046 )
 9 |   S(aix_8, "CP1124", ei_cp1124 )
10 |   S(aix_9, "IBM-1124", ei_cp1124 )
11 |   S(aix_10, "CP1129", ei_cp1129 )
12 |   S(aix_11, "IBM-1129", ei_cp1129 )
13 |   S(aix_12, "CP1161", ei_cp1161 )
14 |   S(aix_13, "IBM1161", ei_cp1161 )
15 |   S(aix_14, "IBM-1161", ei_cp1161 )
16 |   S(aix_15, "CSIBM1161", ei_cp1161 )
17 |   S(aix_16, "CP1162", ei_cp1162 )
18 |   S(aix_17, "IBM1162", ei_cp1162 )
19 |   S(aix_18, "IBM-1162", ei_cp1162 )
20 |   S(aix_19, "CSIBM1162", ei_cp1162 )
21 |   S(aix_20, "CP1163", ei_cp1163 )
22 |   S(aix_21, "IBM1163", ei_cp1163 )
23 |   S(aix_22, "IBM-1163", ei_cp1163 )
24 |   S(aix_23, "CSIBM1163", ei_cp1163 )
25 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/aliases_extra.h:
--------------------------------------------------------------------------------
 1 |   S(extra_0, "EUC-JISX0213", ei_euc_jisx0213 )
 2 |   S(extra_1, "EUC-JIS-2004", ei_euc_jisx0213 )
 3 |   S(extra_2, "SHIFT_JISX0213", ei_shift_jisx0213 )
 4 |   S(extra_3, "SHIFT_JIS-2004", ei_shift_jisx0213 )
 5 |   S(extra_4, "ISO-2022-JP-3", ei_iso2022_jp3 )
 6 |   S(extra_5, "ISO-2022-JP-2004", ei_iso2022_jp3 )
 7 |   S(extra_6, "BIG5-2003", ei_big5_2003 )
 8 |   S(extra_7, "TDS565", ei_tds565 )
 9 |   S(extra_8, "ISO-IR-230", ei_tds565 )
10 |   S(extra_9, "ATARIST", ei_atarist )
11 |   S(extra_10, "ATARI", ei_atarist )
12 |   S(extra_11, "RISCOS-LATIN1", ei_riscos1 )
13 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/aliases_osf1.h:
--------------------------------------------------------------------------------
1 |   S(osf1_0, "DEC-KANJI", ei_dec_kanji )
2 |   S(osf1_1, "DEC-HANYU", ei_dec_hanyu )
3 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/aliases_osf1_sysosf1.h:
--------------------------------------------------------------------------------
1 |   S(osf1_0, "DEC-KANJI", ei_dec_kanji )
2 |   S(osf1_1, "DECKANJI", ei_dec_kanji )
3 |   S(osf1_2, "DEC-HANYU", ei_dec_hanyu )
4 |   S(osf1_3, "DECHANYU", ei_dec_hanyu )
5 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/canonical_aix.h:
--------------------------------------------------------------------------------
 1 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_0,
 2 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_1,
 3 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_2,
 4 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_3,
 5 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_4,
 6 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_5,
 7 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_6,
 8 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_10,
 9 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_14,
10 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/canonical_aix_sysaix.h:
--------------------------------------------------------------------------------
 1 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_0,
 2 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_2,
 3 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_4,
 4 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_6,
 5 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_8,
 6 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_10,
 7 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_12,
 8 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_16,
 9 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_aix_20,
10 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/canonical_dos.h:
--------------------------------------------------------------------------------
 1 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_dos_0,
 2 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_dos_4,
 3 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_dos_5,
 4 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_dos_8,
 5 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_dos_12,
 6 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_dos_13,
 7 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_dos_17,
 8 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_dos_21,
 9 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_dos_22,
10 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_dos_26,
11 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_dos_31,
12 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_dos_35,
13 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_dos_38,
14 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_dos_42,
15 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_dos_47,
16 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/canonical_extra.h:
--------------------------------------------------------------------------------
1 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_extra_0,
2 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_extra_2,
3 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_extra_4,
4 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_extra_6,
5 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_extra_7,
6 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_extra_9,
7 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_extra_11,
8 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/canonical_local.h:
--------------------------------------------------------------------------------
1 |   (int)(long)&((struct stringpool_t *)0)->stringpool_str271,
2 |   (int)(long)&((struct stringpool_t *)0)->stringpool_str664,
3 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/canonical_local_sysaix.h:
--------------------------------------------------------------------------------
1 |   (int)(long)&((struct stringpool_t *)0)->stringpool_str307,
2 |   (int)(long)&((struct stringpool_t *)0)->stringpool_str543,
3 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/canonical_local_syshpux.h:
--------------------------------------------------------------------------------
1 |   (int)(long)&((struct stringpool_t *)0)->stringpool_str258,
2 |   (int)(long)&((struct stringpool_t *)0)->stringpool_str390,
3 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/canonical_local_sysosf1.h:
--------------------------------------------------------------------------------
1 |   (int)(long)&((struct stringpool_t *)0)->stringpool_str275,
2 |   (int)(long)&((struct stringpool_t *)0)->stringpool_str465,
3 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/canonical_local_syssolaris.h:
--------------------------------------------------------------------------------
1 |   (int)(long)&((struct stringpool_t *)0)->stringpool_str38,
2 |   (int)(long)&((struct stringpool_t *)0)->stringpool_str515,
3 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/canonical_osf1.h:
--------------------------------------------------------------------------------
1 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_osf1_0,
2 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_osf1_1,
3 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/canonical_osf1_sysosf1.h:
--------------------------------------------------------------------------------
1 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_osf1_0,
2 |   (int)(long)&((struct stringpool2_t *)0)->stringpool_osf1_2,
3 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/cp943.h:
--------------------------------------------------------------------------------
 1 | /*
 2 |  * Copyright (C) 1999-2001 Free Software Foundation, Inc.
 3 |  * This file is part of the GNU LIBICONV Library.
 4 |  *
 5 |  * The GNU LIBICONV Library is free software; you can redistribute it
 6 |  * and/or modify it under the terms of the GNU Library General Public
 7 |  * License as published by the Free Software Foundation; either version 2
 8 |  * of the License, or (at your option) any later version.
 9 |  *
10 |  * The GNU LIBICONV Library is distributed in the hope that it will be
11 |  * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
12 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 |  * Library General Public License for more details.
14 |  *
15 |  * You should have received a copy of the GNU Library General Public
16 |  * License along with the GNU LIBICONV Library; see the file COPYING.LIB.
17 |  * If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
18 |  * Fifth Floor, Boston, MA 02110-1301, USA.
19 |  */
20 | 
21 | /*
22 |  * IBM CP943
23 |  */
24 | 
25 | /* This is essentially CP932, with many mappings missing in the AIX conversion
26 |    table. We just pretend it were the same as CP932. */
27 | 
28 | #define cp943_mbtowc cp932_mbtowc
29 | #define cp943_wctomb cp932_wctomb
30 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/encodings_local.def:
--------------------------------------------------------------------------------
 1 | /* Copyright (C) 2000-2001 Free Software Foundation, Inc.
 2 |    This file is part of the GNU LIBICONV Library.
 3 | 
 4 |    The GNU LIBICONV Library is free software; you can redistribute it
 5 |    and/or modify it under the terms of the GNU Library General Public
 6 |    License as published by the Free Software Foundation; either version 2
 7 |    of the License, or (at your option) any later version.
 8 | 
 9 |    The GNU LIBICONV Library is distributed in the hope that it will be
10 |    useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11 |    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 |    Library General Public License for more details.
13 | 
14 |    You should have received a copy of the GNU Library General Public
15 |    License along with the GNU LIBICONV Library; see the file COPYING.LIB.
16 |    If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
17 |    Fifth Floor, Boston, MA 02110-1301, USA.  */
18 | 
19 | /* Names for locale dependent encodings. */
20 | 
21 | DEFENCODING(( "CHAR",
22 |             ),
23 |             local_char,
24 |             { NULL, NULL },               { NULL, NULL })
25 | 
26 | DEFENCODING(( "WCHAR_T",                /* glibc */
27 |             ),
28 |             local_wchar_t,
29 |             { NULL, NULL },               { NULL, NULL })
30 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/flushwc.h:
--------------------------------------------------------------------------------
 1 | /*
 2 |  * Copyright (C) 2001 Free Software Foundation, Inc.
 3 |  * This file is part of the GNU LIBICONV Library.
 4 |  *
 5 |  * The GNU LIBICONV Library is free software; you can redistribute it
 6 |  * and/or modify it under the terms of the GNU Library General Public
 7 |  * License as published by the Free Software Foundation; either version 2
 8 |  * of the License, or (at your option) any later version.
 9 |  *
10 |  * The GNU LIBICONV Library is distributed in the hope that it will be
11 |  * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
12 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 |  * Library General Public License for more details.
14 |  *
15 |  * You should have received a copy of the GNU Library General Public
16 |  * License along with the GNU LIBICONV Library; see the file COPYING.LIB.
17 |  * If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
18 |  * Fifth Floor, Boston, MA 02110-1301, USA.
19 |  */
20 | 
21 | #ifndef _FLUSHWC_H
22 | #define _FLUSHWC_H
23 | 
24 | static int
25 | normal_flushwc (conv_t conv, ucs4_t *pwc)
26 | {
27 |   ucs4_t last_wc = conv->istate;
28 |   if (last_wc) {
29 |     /* Output the buffered character. */
30 |     conv->istate = 0;
31 |     *pwc = (ucs4_t) last_wc;
32 |     return 1;
33 |   } else
34 |     return 0;
35 | }
36 | 
37 | #endif /* _FLUSHWC_H */
38 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/iso8859_1.h:
--------------------------------------------------------------------------------
 1 | /*
 2 |  * Copyright (C) 1999-2001 Free Software Foundation, Inc.
 3 |  * This file is part of the GNU LIBICONV Library.
 4 |  *
 5 |  * The GNU LIBICONV Library is free software; you can redistribute it
 6 |  * and/or modify it under the terms of the GNU Library General Public
 7 |  * License as published by the Free Software Foundation; either version 2
 8 |  * of the License, or (at your option) any later version.
 9 |  *
10 |  * The GNU LIBICONV Library is distributed in the hope that it will be
11 |  * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
12 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 |  * Library General Public License for more details.
14 |  *
15 |  * You should have received a copy of the GNU Library General Public
16 |  * License along with the GNU LIBICONV Library; see the file COPYING.LIB.
17 |  * If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
18 |  * Fifth Floor, Boston, MA 02110-1301, USA.
19 |  */
20 | 
21 | /*
22 |  * ISO-8859-1
23 |  */
24 | 
25 | static int
26 | iso8859_1_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, int n)
27 | {
28 |   unsigned char c = *s;
29 |   *pwc = (ucs4_t) c;
30 |   return 1;
31 | }
32 | 
33 | static int
34 | iso8859_1_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n)
35 | {
36 |   if (wc < 0x0100) {
37 |     *r = wc;
38 |     return 1;
39 |   }
40 |   return RET_ILUNI;
41 | }
42 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/include/loops.h:
--------------------------------------------------------------------------------
 1 | /*
 2 |  * Copyright (C) 2000 Free Software Foundation, Inc.
 3 |  * This file is part of the GNU LIBICONV Library.
 4 |  *
 5 |  * The GNU LIBICONV Library is free software; you can redistribute it
 6 |  * and/or modify it under the terms of the GNU Library General Public
 7 |  * License as published by the Free Software Foundation; either version 2
 8 |  * of the License, or (at your option) any later version.
 9 |  *
10 |  * The GNU LIBICONV Library is distributed in the hope that it will be
11 |  * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
12 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 |  * Library General Public License for more details.
14 |  *
15 |  * You should have received a copy of the GNU Library General Public
16 |  * License along with the GNU LIBICONV Library; see the file COPYING.LIB.
17 |  * If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
18 |  * Fifth Floor, Boston, MA 02110-1301, USA.
19 |  */
20 | 
21 | /* This file defines all the loops. */
22 | 
23 | #include "loop_unicode.h"
24 | #include "loop_wchar.h"
25 | 
26 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/mk_tags:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | #@desc this script can auto create cscope file and ctags
 3 | #@date 2013-12-9 13:53:44
 4 | #@author viticm
 5 | paths="./"
 6 | types="php lua h cpp c cc hpp erl hrl inl"
 7 | n=0
 8 | 
 9 | is_win32=false
10 | ENV_PATH="F:\tools\editor\vim\vim74"
11 | if [[ `uname | grep W32_NT` != "" ]] ; then
12 |   is_win32=true
13 |   export PATH=$ENV_PATH
14 | fi
15 | 
16 | for path in ${paths}
17 | do
18 |   cmd="find ${path}"
19 |   i=0
20 |   for filetype in ${types} 
21 |   do
22 |     if [[ 0 -eq ${i} ]] ; then
23 |       cmd=${cmd}" -name \*."${filetype}
24 |     else
25 |       cmd=${cmd}" -o -name \*."${filetype}
26 |     fi
27 |     ((++i))
28 |   done
29 |   if [[ 0 -eq ${n} ]] ; then
30 |     cmd=${cmd}" > cscope.files"
31 |   else
32 |     cmd=${cmd}" >> cscope.files"
33 |   fi
34 |   echo ${cmd} | sh
35 |   ((++n))
36 | done
37 | 
38 | if $is_win32 ; then
39 |   if [ -f ./cscope.out ] ; then
40 |     echo "please close gvim and delete current cscope.out, then try angin."
41 |     exit 1
42 |   fi
43 |   cscope -bk -i cscope.files
44 | else
45 |   cscope -bkq -i cscope.files
46 | fi
47 | ctags -R
48 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/proj.win/iconv.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/iconv/proj.win/iconv.rc


--------------------------------------------------------------------------------
/pf/dependencies/iconv/proj.win/iconv.vcxproj.filters:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 |    
 5 |     
 6 |       
 7 |     
 8 |     
 9 |     
10 |       
11 |     
12 |   
13 |    
14 |     
15 |       include
16 |     
17 |     
18 |     
19 |     
20 |       src
21 |     
22 |     
23 |       src
24 |     
25 |     
26 |       src
27 |     
28 |   
29 |    
30 |     
31 |   
32 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/proj.win/resource.h:
--------------------------------------------------------------------------------
 1 | //{{NO_DEPENDENCIES}}
 2 | // Microsoft Visual C++ generated include file.
 3 | 
 4 | // Next default values for new objects
 5 | // 
 6 | #ifdef APSTUDIO_INVOKED
 7 | #ifndef APSTUDIO_READONLY_SYMBOLS
 8 | #define _APS_NEXT_RESOURCE_VALUE        101
 9 | #define _APS_NEXT_COMMAND_VALUE         40001
10 | #define _APS_NEXT_CONTROL_VALUE         1001
11 | #define _APS_NEXT_SYMED_VALUE           101
12 | #endif
13 | #endif
14 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/src/CMakeLists32.txt:
--------------------------------------------------------------------------------
 1 | SET(TF_CURRENT_BINARY_PATH_LIB "../../dll")
 2 | SET(LIBRARY_OUTPUT_PATH ${TF_CURRENT_BINARY_PATH_LIB})
 3 | 
 4 | INCLUDE_DIRECTORIES(../include)
 5 | 
 6 | ##update_begin
 7 | 
 8 | 
 9 | INCLUDE_DIRECTORIES(../../../../include)
10 | 
11 | 
12 | SET (INCLUDE_LIST
13 | 	../include/iconv.h
14 | )
15 | 
16 | SET (SRC_LIST
17 | 	../src/iconv.c
18 | 	../src/localcharset.c
19 | 	../src/relocatable.c
20 | )
21 | 
22 | SET (RESOURCE_LIST
23 | 	../src/libiconv.rc
24 | )
25 | 
26 | 
27 | 
28 | if (WIN32)
29 | 	source_group(include FILES ${INCLUDE_LIST})
30 | 	source_group(src FILES ${SRC_LIST})
31 | 	source_group(resource FILES ${RESOURCE_LIST})
32 | endif()
33 | 
34 | 
35 | ADD_LIBRARY(iconv32 SHARED
36 | 	${INCLUDE_LIST}
37 | 	${SRC_LIST}
38 | 	${RESOURCE_LIST}
39 | )
40 | 
41 | 
42 | ##update_end
43 | 
44 | set(USE_32BITS 1)
45 | 
46 | IF(CMAKE_SYSTEM MATCHES Windows)
47 |   TARGET_LINK_LIBRARIES(iconv32)
48 | ELSE()
49 |   SET(CMAKE_C_FLAGS "-Wall -ggdb -pipe -march=i386 -mtune=i686 -fPIC")
50 |   SET(CMAKE_CXX_FLAGS "-Wall -ggdb -pipe -march=i386 -mtune=i686 -fPIC")
51 | ENDIF(CMAKE_SYSTEM MATCHES Windows)
52 | 


--------------------------------------------------------------------------------
/pf/dependencies/iconv/src/CMakeLists64.txt:
--------------------------------------------------------------------------------
 1 | SET(TF_CURRENT_BINARY_PATH_LIB "../../dll")
 2 | SET(LIBRARY_OUTPUT_PATH ${TF_CURRENT_BINARY_PATH_LIB})
 3 | 
 4 | INCLUDE_DIRECTORIES(../include)
 5 | 
 6 | ##update_begin
 7 | 
 8 | 
 9 | INCLUDE_DIRECTORIES(../../../../include)
10 | 
11 | 
12 | SET (INCLUDE_LIST
13 | 	../include/iconv.h
14 | )
15 | 
16 | SET (SRC_LIST
17 | 	../src/iconv.c
18 | 	../src/localcharset.c
19 | 	../src/relocatable.c
20 | )
21 | 
22 | SET (RESOURCE_LIST
23 | 	../src/libiconv.rc
24 | )
25 | 
26 | 
27 | 
28 | if (WIN32)
29 | 	source_group(include FILES ${INCLUDE_LIST})
30 | 	source_group(src FILES ${SRC_LIST})
31 | 	source_group(resource FILES ${RESOURCE_LIST})
32 | endif()
33 | 
34 | 
35 | ADD_LIBRARY(iconv64 SHARED
36 | 	${INCLUDE_LIST}
37 | 	${SRC_LIST}
38 | 	${RESOURCE_LIST}
39 | )
40 | 
41 | 
42 | ##update_end
43 | 
44 | set(USE_32BITS 0)
45 | 
46 | IF(CMAKE_SYSTEM MATCHES Windows)
47 |   TARGET_LINK_LIBRARIES(iconv64 ws2_32)
48 | ELSE()
49 |   SET(CMAKE_C_FLAGS "-Wall -ggdb -pipe -march=x86-64 -mtune=i686 -fPIC")
50 |   SET(CMAKE_CXX_FLAGS "-Wall -ggdb -pipe -march=x86-64 -mtune=i686 -fPIC")
51 | ENDIF(CMAKE_SYSTEM MATCHES Windows)
52 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.1.4/CMakeLists.txt:
--------------------------------------------------------------------------------
 1 | CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 2 | 
 3 | PROJECT (lua)
 4 | 
 5 | IF(CMAKE_SYSTEM MATCHES Linux)
 6 |   ADD_DEFINITIONS(-D_LIB)
 7 |   ADD_DEFINITIONS(-DLUA_USE_MKSTEMP)
 8 |   ADD_DEFINITIONS(-DLUA_COMPAT_MODULE)
 9 | ELSE(CMAKE_SYSTEM MATCHES Linux)
10 |   ADD_DEFINITIONS(-D_USRDLL)
11 |   ADD_DEFINITIONS(-DLUALIBDLL_EXPORTS)
12 |   ADD_DEFINITIONS(-DLUA_COMPAT_MODULE)
13 | ENDIF(CMAKE_SYSTEM MATCHES Linux)
14 | 
15 | INCLUDE_DIRECTORIES(src)
16 | ADD_SUBDIRECTORY(src)
17 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.1.4/include/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 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.1.4/include/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 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.1.4/include/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 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.1.4/include/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 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.1.4/include/ltable.h:
--------------------------------------------------------------------------------
 1 | /*
 2 | ** $Id: ltable.h,v 2.10.1.1 2007/12/27 13:02:25 roberto Exp $
 3 | ** Lua tables (hash)
 4 | ** See Copyright Notice in lua.h
 5 | */
 6 | 
 7 | #ifndef ltable_h
 8 | #define ltable_h
 9 | 
10 | #include "lobject.h"
11 | 
12 | 
13 | #define gnode(t,i)	(&(t)->node[i])
14 | #define gkey(n)		(&(n)->i_key.nk)
15 | #define gval(n)		(&(n)->i_val)
16 | #define gnext(n)	((n)->i_key.nk.next)
17 | 
18 | #define key2tval(n)	(&(n)->i_key.tvk)
19 | 
20 | 
21 | LUAI_FUNC const TValue *luaH_getnum (Table *t, int key);
22 | LUAI_FUNC TValue *luaH_setnum (lua_State *L, Table *t, int key);
23 | LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
24 | LUAI_FUNC TValue *luaH_setstr (lua_State *L, Table *t, TString *key);
25 | LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key);
26 | LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key);
27 | LUAI_FUNC Table *luaH_new (lua_State *L, int narray, int lnhash);
28 | LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize);
29 | LUAI_FUNC void luaH_free (lua_State *L, Table *t);
30 | LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key);
31 | LUAI_FUNC int luaH_getn (Table *t);
32 | 
33 | 
34 | #if defined(LUA_DEBUG)
35 | LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key);
36 | LUAI_FUNC int luaH_isdummy (Node *n);
37 | #endif
38 | 
39 | 
40 | #endif
41 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.1.4/include/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 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.1.4/include/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 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.1.4/include/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 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.1.4/include/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 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.1.4/include/lvm.h:
--------------------------------------------------------------------------------
 1 | /*
 2 | ** $Id: lvm.h,v 2.5.1.1 2007/12/27 13:02:25 roberto Exp $
 3 | ** Lua virtual machine
 4 | ** See Copyright Notice in lua.h
 5 | */
 6 | 
 7 | #ifndef lvm_h
 8 | #define lvm_h
 9 | 
10 | 
11 | #include "ldo.h"
12 | #include "lobject.h"
13 | #include "ltm.h"
14 | 
15 | 
16 | #define tostring(L,o) ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o)))
17 | 
18 | #define tonumber(o,n)	(ttype(o) == LUA_TNUMBER || \
19 |                          (((o) = luaV_tonumber(o,n)) != NULL))
20 | 
21 | #define equalobj(L,o1,o2) \
22 | 	(ttype(o1) == ttype(o2) && luaV_equalval(L, o1, o2))
23 | 
24 | 
25 | LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
26 | LUAI_FUNC int luaV_equalval (lua_State *L, const TValue *t1, const TValue *t2);
27 | LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n);
28 | LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj);
29 | LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key,
30 |                                             StkId val);
31 | LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key,
32 |                                             StkId val);
33 | LUAI_FUNC void luaV_execute (lua_State *L, int nexeccalls);
34 | LUAI_FUNC void luaV_concat (lua_State *L, int total, int last);
35 | 
36 | #endif
37 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.1.4/lua.pproject:
--------------------------------------------------------------------------------
 1 | /**
 2 |   Plain framework project file.
 3 |   Version:             The project current version.
 4 |   Type:                Project type [library|executable].
 5 |   LinkDirectories:     Link directories as the Dependencies directories.
 6 |   IncludeDirectories:  Include directories.
 7 |   ExtraSources:        Extra source file or directories.
 8 |   SourceFilters:       Source directory or filename filter(not active).
 9 |   OutputPath:          The project output path.
10 |   Definitions:         Macros definitions.
11 |   Dependencies:        Dependencies library.
12 | **/
13 | {
14 |   "Version": "5.1.4",
15 |   "Type": "library",
16 |   "LinkDirectories": [
17 |     "./"
18 |   ],
19 |   "IncludeDirectories": [
20 |     "../include"
21 |   ],
22 |   "ExtraSources": [
23 |   ],
24 |   "SourceFilters": [
25 |     "CMakeFiles",
26 |     "lua.c",
27 |     "luac.c"
28 |   ],
29 |   "DisableSpecificWarnings": "4819;",
30 |   "OutputPath": "./../../../dll/",
31 |   "Definitions": [
32 |     "LUA_USE_MKSTEMP"
33 |   ],
34 |   "Dependencies": [
35 |   ]
36 | }
37 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.1.4/proj.win/lua.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/lua/5.1.4/proj.win/lua.rc


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.1.4/proj.win/resource.h:
--------------------------------------------------------------------------------
 1 | //{{NO_DEPENDENCIES}}
 2 | // Microsoft Visual C++ generated include file.
 3 | 
 4 | // Next default values for new objects
 5 | // 
 6 | #ifdef APSTUDIO_INVOKED
 7 | #ifndef APSTUDIO_READONLY_SYMBOLS
 8 | #define _APS_NEXT_RESOURCE_VALUE        101
 9 | #define _APS_NEXT_COMMAND_VALUE         40001
10 | #define _APS_NEXT_CONTROL_VALUE         1001
11 | #define _APS_NEXT_SYMED_VALUE           101
12 | #endif
13 | #endif
14 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.1.4/scripts/lua.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/lua/5.1.4/scripts/lua.rc


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.1.4/scripts/resource.h:
--------------------------------------------------------------------------------
 1 | //{{NO_DEPENDENCIES}}
 2 | // Microsoft Visual C++ generated include file.
 3 | 
 4 | // Next default values for new objects
 5 | // 
 6 | #ifdef APSTUDIO_INVOKED
 7 | #ifndef APSTUDIO_READONLY_SYMBOLS
 8 | #define _APS_NEXT_RESOURCE_VALUE        101
 9 | #define _APS_NEXT_COMMAND_VALUE         40001
10 | #define _APS_NEXT_CONTROL_VALUE         1001
11 | #define _APS_NEXT_SYMED_VALUE           101
12 | #endif
13 | #endif
14 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.1.4/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 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.2.3/CMakeLists.txt:
--------------------------------------------------------------------------------
 1 | CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 2 | 
 3 | PROJECT (lua)
 4 | 
 5 | IF(CMAKE_SYSTEM MATCHES Linux)
 6 |   ADD_DEFINITIONS(-D_LIB)
 7 |   ADD_DEFINITIONS(-DLUA_USE_MKSTEMP)
 8 |   ADD_DEFINITIONS(-DLUA_COMPAT_MODULE)
 9 | ELSE(CMAKE_SYSTEM MATCHES Linux)
10 |   ADD_DEFINITIONS(-D_USRDLL)
11 |   ADD_DEFINITIONS(-DLUALIBDLL_EXPORTS)
12 |   ADD_DEFINITIONS(-DLUA_COMPAT_MODULE)
13 | ENDIF(CMAKE_SYSTEM MATCHES Linux)
14 | 
15 | INCLUDE_DIRECTORIES(src)
16 | ADD_SUBDIRECTORY(src)
17 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.2.3/include/lapi.h:
--------------------------------------------------------------------------------
 1 | /*
 2 | ** $Id: lapi.h,v 2.7.1.1 2013/04/12 18:48:47 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 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.2.3/include/ldebug.h:
--------------------------------------------------------------------------------
 1 | /*
 2 | ** $Id: ldebug.h,v 2.7.1.1 2013/04/12 18:48:47 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 getfuncline(f,pc)	(((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
17 | 
18 | #define resethookcount(L)	(L->hookcount = L->basehookcount)
19 | 
20 | /* Active Lua function (given call info) */
21 | #define ci_func(ci)		(clLvalue((ci)->func))
22 | 
23 | 
24 | LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
25 |                                                 const char *opname);
26 | LUAI_FUNC l_noret luaG_concaterror (lua_State *L, StkId p1, StkId p2);
27 | LUAI_FUNC l_noret luaG_aritherror (lua_State *L, const TValue *p1,
28 |                                                  const TValue *p2);
29 | LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1,
30 |                                                  const TValue *p2);
31 | LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...);
32 | LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
33 | 
34 | #endif
35 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.2.3/include/lfunc.h:
--------------------------------------------------------------------------------
 1 | /*
 2 | ** $Id: lfunc.h,v 2.8.1.1 2013/04/12 18:48:47 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);
23 | LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems);
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_freeupval (lua_State *L, UpVal *uv);
29 | LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number,
30 |                                          int pc);
31 | 
32 | 
33 | #endif
34 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.2.3/include/ltm.h:
--------------------------------------------------------------------------------
 1 | /*
 2 | ** $Id: ltm.h,v 2.11.1.1 2013/04/12 18:48:47 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_LEN,
24 |   TM_EQ,  /* last tag method with `fast' access */
25 |   TM_ADD,
26 |   TM_SUB,
27 |   TM_MUL,
28 |   TM_DIV,
29 |   TM_MOD,
30 |   TM_POW,
31 |   TM_UNM,
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 | #define ttypename(x)	luaT_typenames_[(x) + 1]
47 | #define objtypename(x)	ttypename(ttypenv(x))
48 | 
49 | LUAI_DDEC const char *const luaT_typenames_[LUA_TOTALTAGS];
50 | 
51 | 
52 | LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
53 | LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o,
54 |                                                        TMS event);
55 | LUAI_FUNC void luaT_init (lua_State *L);
56 | 
57 | #endif
58 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.2.3/include/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 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.2.3/include/lualib.h:
--------------------------------------------------------------------------------
 1 | /*
 2 | ** $Id: lualib.h,v 1.43.1.1 2013/04/12 18:48:47 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 | 
15 | LUAMOD_API int (luaopen_base) (lua_State *L);
16 | 
17 | #define LUA_COLIBNAME	"coroutine"
18 | LUAMOD_API int (luaopen_coroutine) (lua_State *L);
19 | 
20 | #define LUA_TABLIBNAME	"table"
21 | LUAMOD_API int (luaopen_table) (lua_State *L);
22 | 
23 | #define LUA_IOLIBNAME	"io"
24 | LUAMOD_API int (luaopen_io) (lua_State *L);
25 | 
26 | #define LUA_OSLIBNAME	"os"
27 | LUAMOD_API int (luaopen_os) (lua_State *L);
28 | 
29 | #define LUA_STRLIBNAME	"string"
30 | LUAMOD_API int (luaopen_string) (lua_State *L);
31 | 
32 | #define LUA_BITLIBNAME	"bit32"
33 | LUAMOD_API int (luaopen_bit32) (lua_State *L);
34 | 
35 | #define LUA_MATHLIBNAME	"math"
36 | LUAMOD_API int (luaopen_math) (lua_State *L);
37 | 
38 | #define LUA_DBLIBNAME	"debug"
39 | LUAMOD_API int (luaopen_debug) (lua_State *L);
40 | 
41 | #define LUA_LOADLIBNAME	"package"
42 | LUAMOD_API int (luaopen_package) (lua_State *L);
43 | 
44 | 
45 | /* open all previous libraries */
46 | LUALIB_API void (luaL_openlibs) (lua_State *L);
47 | 
48 | 
49 | 
50 | #if !defined(lua_assert)
51 | #define lua_assert(x)	((void)0)
52 | #endif
53 | 
54 | 
55 | #endif
56 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.2.3/include/lundump.h:
--------------------------------------------------------------------------------
 1 | /*
 2 | ** $Id: lundump.h,v 1.39.1.1 2013/04/12 18:48:47 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 Closure* 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 (lu_byte* 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 | /* data to catch conversion errors */
23 | #define LUAC_TAIL		"\x19\x93\r\n\x1a\n"
24 | 
25 | /* size in bytes of header of binary files */
26 | #define LUAC_HEADERSIZE		(sizeof(LUA_SIGNATURE)-sizeof(char)+2+6+sizeof(LUAC_TAIL)-sizeof(char))
27 | 
28 | #endif
29 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.2.3/lua.pproject:
--------------------------------------------------------------------------------
 1 | /**
 2 |   Plain framework project file.
 3 |   Version:             The project current version.
 4 |   Type:                Project type [library|executable].
 5 |   LinkDirectories:     Link directories as the Dependencies directories.
 6 |   IncludeDirectories:  Include directories.
 7 |   ExtraSources:        Extra source file or directories.
 8 |   SourceFilters:       Source directory or filename filter(not active).
 9 |   OutputPath:          The project output path.
10 |   Definitions:         Macros definitions.
11 |   Dependencies:        Dependencies library.
12 | **/
13 | {
14 |   "Version": "5.2.3",
15 |   "Type": "library",
16 |   "LinkDirectories": [
17 |     "./"
18 |   ],
19 |   "IncludeDirectories": [
20 |     "../include"
21 |   ],
22 |   "ExtraSources": [
23 |   ],
24 |   "SourceFilters": [
25 |     "CMakeFiles",
26 |     "lua.c",
27 |     "luac.c"
28 |   ],
29 |   "DisableSpecificWarnings": "4819;",
30 |   "OutputPath": "./../../../dll/",
31 |   "Definitions": [
32 |     "LUA_COMPAT_MODULE",
33 |     "LUA_USE_MKSTEMP"
34 |   ],
35 |   "Dependencies": [
36 |   ]
37 | }
38 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.2.3/proj.win/lua.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/lua/5.2.3/proj.win/lua.rc


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.2.3/proj.win/resource.h:
--------------------------------------------------------------------------------
 1 | //{{NO_DEPENDENCIES}}
 2 | // Microsoft Visual C++ generated include file.
 3 | 
 4 | // Next default values for new objects
 5 | // 
 6 | #ifdef APSTUDIO_INVOKED
 7 | #ifndef APSTUDIO_READONLY_SYMBOLS
 8 | #define _APS_NEXT_RESOURCE_VALUE        101
 9 | #define _APS_NEXT_COMMAND_VALUE         40001
10 | #define _APS_NEXT_CONTROL_VALUE         1001
11 | #define _APS_NEXT_SYMED_VALUE           101
12 | #endif
13 | #endif
14 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.3.0/CMakeLists.txt:
--------------------------------------------------------------------------------
 1 | CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 2 | 
 3 | PROJECT (lua)
 4 | 
 5 | IF(CMAKE_SYSTEM MATCHES Linux)
 6 |   ADD_DEFINITIONS(-D_LIB)
 7 |   ADD_DEFINITIONS(-DLUA_USE_MKSTEMP)
 8 |   ADD_DEFINITIONS(-DLUA_COMPAT_MODULE)
 9 | ELSE(CMAKE_SYSTEM MATCHES Linux)
10 |   ADD_DEFINITIONS(-D_USRDLL)
11 |   ADD_DEFINITIONS(-DLUALIBDLL_EXPORTS)
12 |   ADD_DEFINITIONS(-DLUA_COMPAT_MODULE)
13 | ENDIF(CMAKE_SYSTEM MATCHES Linux)
14 | 
15 | INCLUDE_DIRECTORIES(src)
16 | ADD_SUBDIRECTORY(src)
17 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.3.0/include/lapi.h:
--------------------------------------------------------------------------------
 1 | /*
 2 | ** $Id: lapi.h,v 2.8 2014/07/15 21:26: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->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((n) < (L->top - L->ci->func), \
21 | 				  "not enough elements in the stack")
22 | 
23 | 
24 | #endif
25 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.3.0/include/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 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.3.0/include/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 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.3.0/include/lundump.h:
--------------------------------------------------------------------------------
 1 | /*
 2 | ** $Id: lundump.h,v 1.44 2014/06/19 18:27:20 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, Mbuffer* buff,
27 |                                  const char* name);
28 | 
29 | /* dump one chunk; from ldump.c */
30 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w,
31 |                          void* data, int strip);
32 | 
33 | #endif
34 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.3.0/lua.pproject:
--------------------------------------------------------------------------------
 1 | /**
 2 |   Plain framework project file.
 3 |   Version:             The project current version.
 4 |   Type:                Project type [library|executable].
 5 |   LinkDirectories:     Link directories as the Dependencies directories.
 6 |   IncludeDirectories:  Include directories.
 7 |   ExtraSources:        Extra source file or directories.
 8 |   SourceFilters:       Source directory or filename filter(not active).
 9 |   OutputPath:          The project output path.
10 |   Definitions:         Macros definitions.
11 |   Dependencies:        Dependencies library.
12 | **/
13 | {
14 |   "Version": "5.3.0",
15 |   "Type": "library",
16 |   "LinkDirectories": [
17 |     "./"
18 |   ],
19 |   "IncludeDirectories": [
20 |     "../include"
21 |   ],
22 |   "ExtraSources": [
23 |   ],
24 |   "SourceFilters": [
25 |     "CMakeFiles",
26 |     "lua.c",
27 |     "luac.c"
28 |   ],
29 |   "DisableSpecificWarnings": "4819;",
30 |   "OutputPath": "./../../../dll/",
31 |   "Definitions": [
32 |     "LUA_COMPAT_MODULE"
33 |   ],
34 |   "Dependencies": [
35 |   ]
36 | }
37 | 


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.3.0/proj.win/lua.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/lua/5.3.0/proj.win/lua.rc


--------------------------------------------------------------------------------
/pf/dependencies/lua/5.3.0/proj.win/resource.h:
--------------------------------------------------------------------------------
 1 | //{{NO_DEPENDENCIES}}
 2 | // Microsoft Visual C++ generated include file.
 3 | 
 4 | // Next default values for new objects
 5 | // 
 6 | #ifdef APSTUDIO_INVOKED
 7 | #ifndef APSTUDIO_READONLY_SYMBOLS
 8 | #define _APS_NEXT_RESOURCE_VALUE        101
 9 | #define _APS_NEXT_COMMAND_VALUE         40001
10 | #define _APS_NEXT_CONTROL_VALUE         1001
11 | #define _APS_NEXT_SYMED_VALUE           101
12 | #endif
13 | #endif
14 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/CMakeLists.txt:
--------------------------------------------------------------------------------
 1 | cmake_minimum_required(VERSION 2.6)
 2 | 
 3 | SET(LIBRARY_OUTPUT_PATH "../dll")
 4 | 
 5 | ##update_begin
 6 | 
 7 | SET (SOURCEFILES_LIST
 8 | 	adler32.c
 9 | 	compress.c
10 | 	crc32.c
11 | 	deflate.c
12 | 	gzclose.c
13 | 	gzlib.c
14 | 	gzread.c
15 | 	gzwrite.c
16 | 	infback.c
17 | 	inffast.c
18 | 	inflate.c
19 | 	inftrees.c
20 | 	trees.c
21 | 	uncompr.c
22 | 	zutil.c
23 | )
24 | 
25 | SET (HEADERFILES_LIST
26 | 	crc32.h
27 | 	deflate.h
28 | 	gzguts.h
29 | 	inffast.h
30 | 	inffixed.h
31 | 	inflate.h
32 | 	inftrees.h
33 | 	trees.h
34 | 	zconf.h
35 | 	zlib.h
36 | 	zutil.h
37 | )
38 | 
39 | 
40 | 
41 | if (WIN32)
42 | 	source_group(SourceFiles FILES ${SOURCEFILES_LIST})
43 | 	source_group(HeaderFiles FILES ${HEADERFILES_LIST})
44 | endif()
45 | 
46 | ADD_LIBRARY(zlib SHARED
47 | 	${SOURCEFILES_LIST}
48 | 	${HEADERFILES_LIST}
49 | )
50 | 
51 | 
52 | ##update_end
53 | 
54 | IF(CMAKE_SYSTEM MATCHES Windows)
55 | 
56 | ELSE()
57 |   if(USE_32BITS)
58 |     message(STATUS "using 32bits") 
59 |     SET(CMAKE_C_FLAGS "-Wall -ggdb -pipe -march=i386 -mtune=i686 -fPIC")
60 |     SET(CMAKE_CXX_FLAGS "-Wall -ggdb -pipe -march=i386 -mtune=i686 -fPIC")
61 |   else()
62 |     message(STATUS "using 64bits") 
63 |     SET(CMAKE_C_FLAGS "-Wall -ggdb -pipe -march=x86-64 -mtune=i686 -fPIC")
64 |     SET(CMAKE_CXX_FLAGS "-Wall -ggdb -pipe -march=x86-64 -mtune=i686 -fPIC")
65 |   endif(USE_32BITS)
66 | ENDIF(CMAKE_SYSTEM MATCHES Windows)
67 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/CMakeLists32.txt:
--------------------------------------------------------------------------------
 1 | cmake_minimum_required(VERSION 2.6)
 2 | 
 3 | SET(LIBRARY_OUTPUT_PATH "../dll")
 4 | 
 5 | ##update_begin
 6 | 
 7 | SET (SOURCEFILES_LIST
 8 | 	adler32.c
 9 | 	compress.c
10 | 	crc32.c
11 | 	deflate.c
12 | 	gzclose.c
13 | 	gzlib.c
14 | 	gzread.c
15 | 	gzwrite.c
16 | 	infback.c
17 | 	inffast.c
18 | 	inflate.c
19 | 	inftrees.c
20 | 	trees.c
21 | 	uncompr.c
22 | 	zutil.c
23 | )
24 | 
25 | SET (HEADERFILES_LIST
26 | 	crc32.h
27 | 	deflate.h
28 | 	gzguts.h
29 | 	inffast.h
30 | 	inffixed.h
31 | 	inflate.h
32 | 	inftrees.h
33 | 	trees.h
34 | 	zconf.h
35 | 	zlib.h
36 | 	zutil.h
37 | )
38 | 
39 | 
40 | 
41 | if (WIN32)
42 | 	source_group(SourceFiles FILES ${SOURCEFILES_LIST})
43 | 	source_group(HeaderFiles FILES ${HEADERFILES_LIST})
44 | endif()
45 | 
46 | ADD_LIBRARY(zlib32 SHARED
47 | 	${SOURCEFILES_LIST}
48 | 	${HEADERFILES_LIST}
49 | )
50 | 
51 | 
52 | ##update_end
53 | 
54 | IF(CMAKE_SYSTEM MATCHES Windows)
55 | 
56 | ELSE()
57 |   SET(CMAKE_C_FLAGS "-Wall -ggdb -pipe -march=i386 -mtune=i686 -fPIC")
58 |   SET(CMAKE_CXX_FLAGS "-Wall -ggdb -pipe -march=i386 -mtune=i686 -fPIC")
59 | ENDIF(CMAKE_SYSTEM MATCHES Windows)
60 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/CMakeLists64.txt:
--------------------------------------------------------------------------------
 1 | cmake_minimum_required(VERSION 2.6)
 2 | 
 3 | SET(LIBRARY_OUTPUT_PATH "../dll")
 4 | 
 5 | ##update_begin
 6 | 
 7 | SET (SOURCEFILES_LIST
 8 | 	adler32.c
 9 | 	compress.c
10 | 	crc32.c
11 | 	deflate.c
12 | 	gzclose.c
13 | 	gzlib.c
14 | 	gzread.c
15 | 	gzwrite.c
16 | 	infback.c
17 | 	inffast.c
18 | 	inflate.c
19 | 	inftrees.c
20 | 	trees.c
21 | 	uncompr.c
22 | 	zutil.c
23 | )
24 | 
25 | SET (HEADERFILES_LIST
26 | 	crc32.h
27 | 	deflate.h
28 | 	gzguts.h
29 | 	inffast.h
30 | 	inffixed.h
31 | 	inflate.h
32 | 	inftrees.h
33 | 	trees.h
34 | 	zconf.h
35 | 	zlib.h
36 | 	zutil.h
37 | )
38 | 
39 | 
40 | 
41 | if (WIN32)
42 | 	source_group(SourceFiles FILES ${SOURCEFILES_LIST})
43 | 	source_group(HeaderFiles FILES ${HEADERFILES_LIST})
44 | endif()
45 | 
46 | ADD_LIBRARY(zlib64 SHARED
47 | 	${SOURCEFILES_LIST}
48 | 	${HEADERFILES_LIST}
49 | )
50 | 
51 | 
52 | ##update_end
53 | 
54 | IF(CMAKE_SYSTEM MATCHES Windows)
55 | 
56 | ELSE()
57 |   SET(CMAKE_C_FLAGS "-Wall -ggdb -pipe -march=x86-64 -mtune=i686 -fPIC")
58 |   SET(CMAKE_CXX_FLAGS "-Wall -ggdb -pipe -march=x86-64 -mtune=i686 -fPIC")
59 | ENDIF(CMAKE_SYSTEM MATCHES Windows)
60 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/ChangeLog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/zlib/ChangeLog


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/README.contrib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/zlib/contrib/README.contrib


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/ada/zlib.gpr:
--------------------------------------------------------------------------------
 1 | project Zlib is
 2 | 
 3 |    for Languages use ("Ada");
 4 |    for Source_Dirs use (".");
 5 |    for Object_Dir use ".";
 6 |    for Main use ("test.adb", "mtest.adb", "read.adb", "buffer_demo");
 7 | 
 8 |    package Compiler is
 9 |       for Default_Switches ("ada") use ("-gnatwcfilopru", "-gnatVcdfimorst", "-gnatyabcefhiklmnoprst");
10 |    end Compiler;
11 | 
12 |    package Linker is
13 |       for Default_Switches ("ada") use ("-lz");
14 |    end Linker;
15 | 
16 |    package Builder is
17 |       for Default_Switches ("ada") use ("-s", "-gnatQ");
18 |    end Builder;
19 | 
20 | end Zlib;
21 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/blast/README:
--------------------------------------------------------------------------------
1 | Read blast.h for purpose and usage.
2 | 
3 | Mark Adler
4 | madler@alumni.caltech.edu
5 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/blast/test.pk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/zlib/contrib/blast/test.pk


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/blast/test.txt:
--------------------------------------------------------------------------------
1 | AIAIAIAIAIAIA


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/delphi/ZLibConst.pas:
--------------------------------------------------------------------------------
 1 | unit ZLibConst;
 2 | 
 3 | interface
 4 | 
 5 | resourcestring
 6 |   sTargetBufferTooSmall = 'ZLib error: target buffer may be too small';
 7 |   sInvalidStreamOp = 'Invalid stream operation';
 8 | 
 9 | implementation
10 | 
11 | end.
12 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/dotzlib/DotZLib.build:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 	A .Net wrapper library around ZLib1.dll
 4 | 
 5 | 	
 6 | 	
 7 | 
 8 | 	
 9 | 	
10 | 
11 | 	
12 | 	
13 | 
14 | 	
15 | 		
16 | 	
17 | 
18 | 	
19 | 
20 | 		
21 | 		
22 | 			
23 | 				
24 | 			
25 | 			
26 | 				
27 | 				
28 | 			
29 | 			
30 | 		
31 | 	
32 | 
33 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/dotzlib/DotZLib.chm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/zlib/contrib/dotzlib/DotZLib.chm


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/dotzlib/DotZLib.sln:
--------------------------------------------------------------------------------
 1 | Microsoft Visual Studio Solution File, Format Version 8.00
 2 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotZLib", "DotZLib\DotZLib.csproj", "{BB1EE0B1-1808-46CB-B786-949D91117FC5}"
 3 | 	ProjectSection(ProjectDependencies) = postProject
 4 | 	EndProjectSection
 5 | EndProject
 6 | Global
 7 | 	GlobalSection(SolutionConfiguration) = preSolution
 8 | 		Debug = Debug
 9 | 		Release = Release
10 | 	EndGlobalSection
11 | 	GlobalSection(ProjectConfiguration) = postSolution
12 | 		{BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.ActiveCfg = Debug|.NET
13 | 		{BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.Build.0 = Debug|.NET
14 | 		{BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.ActiveCfg = Release|.NET
15 | 		{BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.Build.0 = Release|.NET
16 | 	EndGlobalSection
17 | 	GlobalSection(ExtensibilityGlobals) = postSolution
18 | 	EndGlobalSection
19 | 	GlobalSection(ExtensibilityAddIns) = postSolution
20 | 	EndGlobalSection
21 | EndGlobal
22 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/dotzlib/DotZLib/CodecBase.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/zlib/contrib/dotzlib/DotZLib/CodecBase.cs


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/dotzlib/DotZLib/Deflater.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/zlib/contrib/dotzlib/DotZLib/Deflater.cs


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/dotzlib/DotZLib/DotZLib.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/zlib/contrib/dotzlib/DotZLib/DotZLib.cs


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/dotzlib/DotZLib/GZipStream.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/zlib/contrib/dotzlib/DotZLib/GZipStream.cs


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/dotzlib/DotZLib/Inflater.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/zlib/contrib/dotzlib/DotZLib/Inflater.cs


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/dotzlib/LICENSE_1_0.txt:
--------------------------------------------------------------------------------
 1 | Boost Software License - Version 1.0 - August 17th, 2003
 2 | 
 3 | Permission is hereby granted, free of charge, to any person or organization
 4 | obtaining a copy of the software and accompanying documentation covered by
 5 | this license (the "Software") to use, reproduce, display, distribute,
 6 | execute, and transmit the Software, and to prepare derivative works of the
 7 | Software, and to permit third-parties to whom the Software is furnished to
 8 | do so, all subject to the following:
 9 | 
10 | The copyright notices in the Software and this entire statement, including
11 | the above license grant, this restriction and the following disclaimer,
12 | must be included in all copies of the Software, in whole or in part, and
13 | all derivative works of the Software, unless such copies or derivative
14 | works are solely in the form of machine-executable object code generated by
15 | a source language processor.
16 | 
17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
20 | SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
21 | FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
22 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23 | DEALINGS IN THE SOFTWARE.


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/infback9/README:
--------------------------------------------------------------------------------
1 | See infback9.h for what this is and how to use it.
2 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/iostream/test.cpp:
--------------------------------------------------------------------------------
 1 | 
 2 | #include "zfstream.h"
 3 | 
 4 | int main() {
 5 | 
 6 |   // Construct a stream object with this filebuffer.  Anything sent
 7 |   // to this stream will go to standard out.
 8 |   gzofstream os( 1, ios::out );
 9 | 
10 |   // This text is getting compressed and sent to stdout.
11 |   // To prove this, run 'test | zcat'.
12 |   os << "Hello, Mommy" << endl;
13 | 
14 |   os << setcompressionlevel( Z_NO_COMPRESSION );
15 |   os << "hello, hello, hi, ho!" << endl;
16 | 
17 |   setcompressionlevel( os, Z_DEFAULT_COMPRESSION )
18 |     << "I'm compressing again" << endl;
19 | 
20 |   os.close();
21 | 
22 |   return 0;
23 | 
24 | }
25 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/iostream2/zstream_test.cpp:
--------------------------------------------------------------------------------
 1 | #include "zstream.h"
 2 | #include 
 3 | #include 
 4 | #include 
 5 | 
 6 | void main() {
 7 |     char h[256] = "Hello";
 8 |     char* g = "Goodbye";
 9 |     ozstream out("temp.gz");
10 |     out < "This works well" < h < g;
11 |     out.close();
12 | 
13 |     izstream in("temp.gz"); // read it back
14 |     char *x = read_string(in), *y = new char[256], z[256];
15 |     in > y > z;
16 |     in.close();
17 |     cout << x << endl << y << endl << z << endl;
18 | 
19 |     out.open("temp.gz"); // try ascii output; zcat temp.gz to see the results
20 |     out << setw(50) << setfill('#') << setprecision(20) << x << endl << y << endl << z << endl;
21 |     out << z << endl << y << endl << x << endl;
22 |     out << 1.1234567890123456789 << endl;
23 | 
24 |     delete[] x; delete[] y;
25 | }
26 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/iostream3/TODO:
--------------------------------------------------------------------------------
 1 | Possible upgrades to gzfilebuf:
 2 | 
 3 | - The ability to do putback (e.g. putbackfail)
 4 | 
 5 | - The ability to seek (zlib supports this, but could be slow/tricky)
 6 | 
 7 | - Simultaneous read/write access (does it make sense?)
 8 | 
 9 | - Support for ios_base::ate open mode
10 | 
11 | - Locale support?
12 | 
13 | - Check public interface to see which calls give problems
14 |   (due to dependence on library internals)
15 | 
16 | - Override operator<<(ostream&, gzfilebuf*) to allow direct copying
17 |   of stream buffer to stream ( i.e. os << is.rdbuf(); )
18 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/masmx64/bld_ml64.bat:
--------------------------------------------------------------------------------
1 | ml64.exe /Flinffasx64 /c /Zi inffasx64.asm
2 | ml64.exe /Flgvmat64   /c /Zi gvmat64.asm
3 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/masmx64/readme.txt:
--------------------------------------------------------------------------------
 1 | Summary
 2 | -------
 3 | This directory contains ASM implementations of the functions
 4 | longest_match() and inflate_fast(), for 64 bits x86 (both AMD64 and Intel EM64t),
 5 | for use with Microsoft Macro Assembler (x64) for AMD64 and Microsoft C++ 64 bits.
 6 | 
 7 | gvmat64.asm is written by Gilles Vollant (2005), by using Brian Raiter 686/32 bits
 8 |    assembly optimized version from Jean-loup Gailly original longest_match function
 9 | 
10 | inffasx64.asm and inffas8664.c were written by Chris Anderson, by optimizing
11 |    original function from Mark Adler
12 | 
13 | Use instructions
14 | ----------------
15 | Assemble the .asm files using MASM and put the object files into the zlib source
16 | directory.  You can also get object files here:
17 | 
18 |      http://www.winimage.com/zLibDll/zlib124_masm_obj.zip
19 | 
20 | define ASMV and ASMINF in your project. Include inffas8664.c in your source tree,
21 | and inffasx64.obj and gvmat64.obj as object to link.
22 | 
23 | 
24 | Build instructions
25 | ------------------
26 | run bld_64.bat with Microsoft Macro Assembler (x64) for AMD64 (ml64.exe)
27 | 
28 | ml64.exe is given with Visual Studio 2005, Windows 2003 server DDK
29 | 
30 | You can get Windows 2003 server DDK with ml64 and cl for AMD64 from
31 |   http://www.microsoft.com/whdc/devtools/ddk/default.mspx for low price)
32 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/masmx86/bld_ml32.bat:
--------------------------------------------------------------------------------
1 | ml /coff /Zi /c /Flmatch686.lst match686.asm
2 | ml /coff /Zi /c /Flinffas32.lst inffas32.asm
3 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/masmx86/readme.txt:
--------------------------------------------------------------------------------
 1 | 
 2 | Summary
 3 | -------
 4 | This directory contains ASM implementations of the functions
 5 | longest_match() and inflate_fast().
 6 | 
 7 | 
 8 | Use instructions
 9 | ----------------
10 | Assemble using MASM, and copy the object files into the zlib source
11 | directory, then run the appropriate makefile, as suggested below.  You can
12 | donwload MASM from here:
13 | 
14 |     http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=7a1c9da0-0510-44a2-b042-7ef370530c64
15 | 
16 | You can also get objects files here:
17 | 
18 |     http://www.winimage.com/zLibDll/zlib124_masm_obj.zip
19 | 
20 | Build instructions
21 | ------------------
22 | * With Microsoft C and MASM:
23 | nmake -f win32/Makefile.msc LOC="-DASMV -DASMINF" OBJA="match686.obj inffas32.obj"
24 | 
25 | * With Borland C and TASM:
26 | make -f win32/Makefile.bor LOCAL_ZLIB="-DASMV -DASMINF" OBJA="match686.obj inffas32.obj" OBJPA="+match686c.obj+match686.obj+inffas32.obj"
27 | 
28 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/minizip/Makefile.am:
--------------------------------------------------------------------------------
 1 | lib_LTLIBRARIES = libminizip.la
 2 | 
 3 | if COND_DEMOS
 4 | bin_PROGRAMS = miniunzip minizip
 5 | endif
 6 | 
 7 | zlib_top_srcdir = $(top_srcdir)/../..
 8 | zlib_top_builddir = $(top_builddir)/../..
 9 | 
10 | AM_CPPFLAGS = -I$(zlib_top_srcdir)
11 | AM_LDFLAGS = -L$(zlib_top_builddir)
12 | 
13 | if WIN32
14 | iowin32_src = iowin32.c
15 | iowin32_h = iowin32.h
16 | endif
17 | 
18 | libminizip_la_SOURCES = \
19 | 	ioapi.c \
20 | 	mztools.c \
21 | 	unzip.c \
22 | 	zip.c \
23 | 	${iowin32_src}
24 | 
25 | libminizip_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 -lz
26 | 
27 | minizip_includedir = $(includedir)/minizip
28 | minizip_include_HEADERS = \
29 | 	crypt.h \
30 | 	ioapi.h \
31 | 	mztools.h \
32 | 	unzip.h \
33 | 	zip.h \
34 | 	${iowin32_h}
35 | 
36 | pkgconfigdir = $(libdir)/pkgconfig
37 | pkgconfig_DATA = minizip.pc
38 | 
39 | EXTRA_PROGRAMS = miniunzip minizip
40 | 
41 | miniunzip_SOURCES = miniunz.c
42 | miniunzip_LDADD = libminizip.la
43 | 
44 | minizip_SOURCES = minizip.c
45 | minizip_LDADD = libminizip.la -lz
46 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/minizip/MiniZip64_Changes.txt:
--------------------------------------------------------------------------------
1 | 
2 | MiniZip 1.1 was derrived from MiniZip at version 1.01f
3 | 
4 | Change in 1.0 (Okt 2009)
5 |  - **TODO - Add history**
6 | 
7 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/minizip/configure.ac:
--------------------------------------------------------------------------------
 1 | #                                               -*- Autoconf -*-
 2 | # Process this file with autoconf to produce a configure script.
 3 | 
 4 | AC_INIT([minizip], [1.2.8], [bugzilla.redhat.com])
 5 | AC_CONFIG_SRCDIR([minizip.c])
 6 | AM_INIT_AUTOMAKE([foreign])
 7 | LT_INIT
 8 | 
 9 | AC_MSG_CHECKING([whether to build example programs])
10 | AC_ARG_ENABLE([demos], AC_HELP_STRING([--enable-demos], [build example programs]))
11 | AM_CONDITIONAL([COND_DEMOS], [test "$enable_demos" = yes])
12 | if test "$enable_demos" = yes
13 | then
14 | 	AC_MSG_RESULT([yes])
15 | else
16 | 	AC_MSG_RESULT([no])
17 | fi
18 | 
19 | case "${host}" in
20 | 	*-mingw* | mingw*)
21 | 		WIN32="yes"
22 | 		;;
23 | 	*)
24 | 		;;
25 | esac
26 | AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"])
27 | 
28 | 
29 | AC_SUBST([HAVE_UNISTD_H], [0])
30 | AC_CHECK_HEADER([unistd.h], [HAVE_UNISTD_H=1], [])
31 | AC_CONFIG_FILES([Makefile minizip.pc])
32 | AC_OUTPUT
33 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/minizip/iowin32.h:
--------------------------------------------------------------------------------
 1 | /* iowin32.h -- IO base function header for compress/uncompress .zip
 2 |      Version 1.1, February 14h, 2010
 3 |      part of the MiniZip project - ( http://www.winimage.com/zLibDll/minizip.html )
 4 | 
 5 |          Copyright (C) 1998-2010 Gilles Vollant (minizip) ( http://www.winimage.com/zLibDll/minizip.html )
 6 | 
 7 |          Modifications for Zip64 support
 8 |          Copyright (C) 2009-2010 Mathias Svensson ( http://result42.com )
 9 | 
10 |          For more info read MiniZip_info.txt
11 | 
12 | */
13 | 
14 | #include 
15 | 
16 | 
17 | #ifdef __cplusplus
18 | extern "C" {
19 | #endif
20 | 
21 | void fill_win32_filefunc OF((zlib_filefunc_def* pzlib_filefunc_def));
22 | void fill_win32_filefunc64 OF((zlib_filefunc64_def* pzlib_filefunc_def));
23 | void fill_win32_filefunc64A OF((zlib_filefunc64_def* pzlib_filefunc_def));
24 | void fill_win32_filefunc64W OF((zlib_filefunc64_def* pzlib_filefunc_def));
25 | 
26 | #ifdef __cplusplus
27 | }
28 | #endif
29 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/minizip/make_vms.com:
--------------------------------------------------------------------------------
 1 | $ if f$search("ioapi.h_orig") .eqs. "" then copy ioapi.h ioapi.h_orig
 2 | $ open/write zdef vmsdefs.h
 3 | $ copy sys$input: zdef
 4 | $ deck
 5 | #define unix
 6 | #define fill_zlib_filefunc64_32_def_from_filefunc32 fillzffunc64from
 7 | #define Write_Zip64EndOfCentralDirectoryLocator Write_Zip64EoDLocator
 8 | #define Write_Zip64EndOfCentralDirectoryRecord Write_Zip64EoDRecord
 9 | #define Write_EndOfCentralDirectoryRecord Write_EoDRecord
10 | $ eod
11 | $ close zdef
12 | $ copy vmsdefs.h,ioapi.h_orig ioapi.h
13 | $ cc/include=[--]/prefix=all ioapi.c
14 | $ cc/include=[--]/prefix=all miniunz.c
15 | $ cc/include=[--]/prefix=all unzip.c
16 | $ cc/include=[--]/prefix=all minizip.c
17 | $ cc/include=[--]/prefix=all zip.c
18 | $ link miniunz,unzip,ioapi,[--]libz.olb/lib
19 | $ link minizip,zip,ioapi,[--]libz.olb/lib
20 | $ mcr []minizip test minizip_info.txt
21 | $ mcr []miniunz -l test.zip
22 | $ rename minizip_info.txt; minizip_info.txt_old
23 | $ mcr []miniunz test.zip
24 | $ delete test.zip;*
25 | $exit
26 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/minizip/minizip.pc.in:
--------------------------------------------------------------------------------
 1 | prefix=@prefix@
 2 | exec_prefix=@exec_prefix@
 3 | libdir=@libdir@
 4 | includedir=@includedir@/minizip
 5 | 
 6 | Name: minizip
 7 | Description: Minizip zip file manipulation library
 8 | Requires:
 9 | Version: @PACKAGE_VERSION@
10 | Libs: -L${libdir} -lminizip
11 | Libs.private: -lz
12 | Cflags: -I${includedir}
13 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/minizip/mztools.h:
--------------------------------------------------------------------------------
 1 | /*
 2 |   Additional tools for Minizip
 3 |   Code: Xavier Roche '2004
 4 |   License: Same as ZLIB (www.gzip.org)
 5 | */
 6 | 
 7 | #ifndef _zip_tools_H
 8 | #define _zip_tools_H
 9 | 
10 | #ifdef __cplusplus
11 | extern "C" {
12 | #endif
13 | 
14 | #ifndef _ZLIB_H
15 | #include "zlib.h"
16 | #endif
17 | 
18 | #include "unzip.h"
19 | 
20 | /* Repair a ZIP file (missing central directory)
21 |    file: file to recover
22 |    fileOut: output file after recovery
23 |    fileOutTmp: temporary file name used for recovery
24 | */
25 | extern int ZEXPORT unzRepair(const char* file,
26 |                              const char* fileOut,
27 |                              const char* fileOutTmp,
28 |                              uLong* nRecovered,
29 |                              uLong* bytesRecovered);
30 | 
31 | 
32 | #ifdef __cplusplus
33 | }
34 | #endif
35 | 
36 | 
37 | #endif
38 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/puff/zeros.raw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/zlib/contrib/puff/zeros.raw


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/testzlib/testzlib.txt:
--------------------------------------------------------------------------------
 1 | To build testzLib with Visual Studio 2005:
 2 | 
 3 | copy to a directory file from :
 4 | - root of zLib tree
 5 | - contrib/testzlib
 6 | - contrib/masmx86
 7 | - contrib/masmx64
 8 | - contrib/vstudio/vc7
 9 | 
10 | and open testzlib8.sln


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/untgz/Makefile.msc:
--------------------------------------------------------------------------------
 1 | CC=cl
 2 | CFLAGS=-MD
 3 | 
 4 | untgz.exe: untgz.obj ..\..\zlib.lib
 5 | 	$(CC) $(CFLAGS) untgz.obj ..\..\zlib.lib
 6 | 
 7 | untgz.obj: untgz.c ..\..\zlib.h
 8 | 	$(CC) $(CFLAGS) -c -I..\.. untgz.c
 9 | 
10 | ..\..\zlib.lib:
11 | 	cd ..\..
12 | 	$(MAKE) -f win32\makefile.msc
13 | 	cd contrib\untgz
14 | 
15 | clean:
16 | 	-del untgz.obj
17 | 	-del untgz.exe
18 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/vstudio/vc10/miniunz.vcxproj.filters:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 |   
 4 |     
 5 |       {048af943-022b-4db6-beeb-a54c34774ee2}
 6 |       cpp;c;cxx;def;odl;idl;hpj;bat;asm
 7 |     
 8 |     
 9 |       {c1d600d2-888f-4aea-b73e-8b0dd9befa0c}
10 |       h;hpp;hxx;hm;inl;inc
11 |     
12 |     
13 |       {0844199a-966b-4f19-81db-1e0125e141b9}
14 |       rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe
15 |     
16 |   
17 |   
18 |     
19 |       Source Files
20 |     
21 |   
22 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/vstudio/vc10/minizip.vcxproj.filters:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 |   
 4 |     
 5 |       {c0419b40-bf50-40da-b153-ff74215b79de}
 6 |       cpp;c;cxx;def;odl;idl;hpj;bat;asm
 7 |     
 8 |     
 9 |       {bb87b070-735b-478e-92ce-7383abb2f36c}
10 |       h;hpp;hxx;hm;inl;inc
11 |     
12 |     
13 |       {f46ab6a6-548f-43cb-ae96-681abb5bd5db}
14 |       rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe
15 |     
16 |   
17 |   
18 |     
19 |       Source Files
20 |     
21 |   
22 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj.filters:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 |   
 4 |     
 5 |       {fa61a89f-93fc-4c89-b29e-36224b7592f4}
 6 |       cpp;c;cxx;def;odl;idl;hpj;bat;asm
 7 |     
 8 |     
 9 |       {d4b85da0-2ba2-4934-b57f-e2584e3848ee}
10 |       h;hpp;hxx;hm;inl;inc
11 |     
12 |     
13 |       {e573e075-00bd-4a7d-bd67-a8cc9bfc5aca}
14 |       rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe
15 |     
16 |   
17 |   
18 |     
19 |       Source Files
20 |     
21 |   
22 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/vstudio/vc10/zlib.rc:
--------------------------------------------------------------------------------
 1 | #include 
 2 | 
 3 | #define IDR_VERSION1  1
 4 | IDR_VERSION1	VERSIONINFO	MOVEABLE IMPURE LOADONCALL DISCARDABLE
 5 |   FILEVERSION	 1,2,8,0
 6 |   PRODUCTVERSION 1,2,8,0
 7 |   FILEFLAGSMASK	VS_FFI_FILEFLAGSMASK
 8 |   FILEFLAGS	0
 9 |   FILEOS	VOS_DOS_WINDOWS32
10 |   FILETYPE	VFT_DLL
11 |   FILESUBTYPE	0	// not used
12 | BEGIN
13 |   BLOCK "StringFileInfo"
14 |   BEGIN
15 |     BLOCK "040904E4"
16 |     //language ID = U.S. English, char set = Windows, Multilingual
17 | 
18 |     BEGIN
19 |       VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20 |       VALUE "FileVersion",	"1.2.8\0"
21 |       VALUE "InternalName",	"zlib\0"
22 |       VALUE "OriginalFilename",	"zlibwapi.dll\0"
23 |       VALUE "ProductName",	"ZLib.DLL\0"
24 |       VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25 |       VALUE "LegalCopyright", "(C) 1995-2013 Jean-loup Gailly & Mark Adler\0"
26 |     END
27 |   END
28 |   BLOCK "VarFileInfo"
29 |   BEGIN
30 |     VALUE "Translation", 0x0409, 1252
31 |   END
32 | END
33 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/vstudio/vc11/zlib.rc:
--------------------------------------------------------------------------------
 1 | #include 
 2 | 
 3 | #define IDR_VERSION1  1
 4 | IDR_VERSION1	VERSIONINFO	MOVEABLE IMPURE LOADONCALL DISCARDABLE
 5 |   FILEVERSION	 1,2,8,0
 6 |   PRODUCTVERSION 1,2,8,0
 7 |   FILEFLAGSMASK	VS_FFI_FILEFLAGSMASK
 8 |   FILEFLAGS	0
 9 |   FILEOS	VOS_DOS_WINDOWS32
10 |   FILETYPE	VFT_DLL
11 |   FILESUBTYPE	0	// not used
12 | BEGIN
13 |   BLOCK "StringFileInfo"
14 |   BEGIN
15 |     BLOCK "040904E4"
16 |     //language ID = U.S. English, char set = Windows, Multilingual
17 | 
18 |     BEGIN
19 |       VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20 |       VALUE "FileVersion",	"1.2.8\0"
21 |       VALUE "InternalName",	"zlib\0"
22 |       VALUE "OriginalFilename",	"zlibwapi.dll\0"
23 |       VALUE "ProductName",	"ZLib.DLL\0"
24 |       VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25 |       VALUE "LegalCopyright", "(C) 1995-2013 Jean-loup Gailly & Mark Adler\0"
26 |     END
27 |   END
28 |   BLOCK "VarFileInfo"
29 |   BEGIN
30 |     VALUE "Translation", 0x0409, 1252
31 |   END
32 | END
33 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/contrib/vstudio/vc9/zlib.rc:
--------------------------------------------------------------------------------
 1 | #include 
 2 | 
 3 | #define IDR_VERSION1  1
 4 | IDR_VERSION1	VERSIONINFO	MOVEABLE IMPURE LOADONCALL DISCARDABLE
 5 |   FILEVERSION	 1,2,8,0
 6 |   PRODUCTVERSION 1,2,8,0
 7 |   FILEFLAGSMASK	VS_FFI_FILEFLAGSMASK
 8 |   FILEFLAGS	0
 9 |   FILEOS	VOS_DOS_WINDOWS32
10 |   FILETYPE	VFT_DLL
11 |   FILESUBTYPE	0	// not used
12 | BEGIN
13 |   BLOCK "StringFileInfo"
14 |   BEGIN
15 |     BLOCK "040904E4"
16 |     //language ID = U.S. English, char set = Windows, Multilingual
17 | 
18 |     BEGIN
19 |       VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
20 |       VALUE "FileVersion",	"1.2.8\0"
21 |       VALUE "InternalName",	"zlib\0"
22 |       VALUE "OriginalFilename",	"zlibwapi.dll\0"
23 |       VALUE "ProductName",	"ZLib.DLL\0"
24 |       VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
25 |       VALUE "LegalCopyright", "(C) 1995-2013 Jean-loup Gailly & Mark Adler\0"
26 |     END
27 |   END
28 |   BLOCK "VarFileInfo"
29 |   BEGIN
30 |     VALUE "Translation", 0x0409, 1252
31 |   END
32 | END
33 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/gzclose.c:
--------------------------------------------------------------------------------
 1 | /* gzclose.c -- zlib gzclose() function
 2 |  * Copyright (C) 2004, 2010 Mark Adler
 3 |  * For conditions of distribution and use, see copyright notice in zlib.h
 4 |  */
 5 | 
 6 | #include "gzguts.h"
 7 | 
 8 | /* gzclose() is in a separate file so that it is linked in only if it is used.
 9 |    That way the other gzclose functions can be used instead to avoid linking in
10 |    unneeded compression or decompression routines. */
11 | int ZEXPORT gzclose(file)
12 |     gzFile file;
13 | {
14 | #ifndef NO_GZCOMPRESS
15 |     gz_statep state;
16 | 
17 |     if (file == NULL)
18 |         return Z_STREAM_ERROR;
19 |     state = (gz_statep)file;
20 | 
21 |     return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
22 | #else
23 |     return gzclose_r(file);
24 | #endif
25 | }
26 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/inffast.h:
--------------------------------------------------------------------------------
 1 | /* inffast.h -- header to use inffast.c
 2 |  * Copyright (C) 1995-2003, 2010 Mark Adler
 3 |  * For conditions of distribution and use, see copyright notice in zlib.h
 4 |  */
 5 | 
 6 | /* WARNING: this file should *not* be used by applications. It is
 7 |    part of the implementation of the compression library and is
 8 |    subject to change. Applications should only use zlib.h.
 9 |  */
10 | 
11 | void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start));
12 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/nintendods/README:
--------------------------------------------------------------------------------
1 | This Makefile requires devkitARM (http://www.devkitpro.org/category/devkitarm/) and works inside "contrib/nds". It is based on a devkitARM template.
2 | 
3 | Eduardo Costa 
4 | January 3, 2009
5 | 
6 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/old/README:
--------------------------------------------------------------------------------
1 | This directory contains files that have not been updated for zlib 1.2.x
2 | 
3 | (Volunteers are encouraged to help clean this up.  Thanks.)
4 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/old/os2/zlib.def:
--------------------------------------------------------------------------------
 1 | ;
 2 | ; Slightly modified version of ../nt/zlib.dnt :-)
 3 | ;
 4 | 
 5 | LIBRARY		Z
 6 | DESCRIPTION	"Zlib compression library for OS/2"
 7 | CODE		PRELOAD MOVEABLE DISCARDABLE
 8 | DATA		PRELOAD MOVEABLE MULTIPLE
 9 | 
10 | EXPORTS
11 |     adler32
12 |     compress
13 |     crc32
14 |     deflate
15 |     deflateCopy
16 |     deflateEnd
17 |     deflateInit2_
18 |     deflateInit_
19 |     deflateParams
20 |     deflateReset
21 |     deflateSetDictionary
22 |     gzclose
23 |     gzdopen
24 |     gzerror
25 |     gzflush
26 |     gzopen
27 |     gzread
28 |     gzwrite
29 |     inflate
30 |     inflateEnd
31 |     inflateInit2_
32 |     inflateInit_
33 |     inflateReset
34 |     inflateSetDictionary
35 |     inflateSync
36 |     uncompress
37 |     zlibVersion
38 |     gzprintf
39 |     gzputc
40 |     gzgetc
41 |     gzseek
42 |     gzrewind
43 |     gztell
44 |     gzeof
45 |     gzsetparams
46 |     zError
47 |     inflateSyncPoint
48 |     get_crc_table
49 |     compress2
50 |     gzputs
51 |     gzgets
52 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/pf_project/include/inffast.h:
--------------------------------------------------------------------------------
 1 | /* inffast.h -- header to use inffast.c
 2 |  * Copyright (C) 1995-2003, 2010 Mark Adler
 3 |  * For conditions of distribution and use, see copyright notice in zlib.h
 4 |  */
 5 | 
 6 | /* WARNING: this file should *not* be used by applications. It is
 7 |    part of the implementation of the compression library and is
 8 |    subject to change. Applications should only use zlib.h.
 9 |  */
10 | 
11 | void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start));
12 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/pf_project/proj.win/resource.h:
--------------------------------------------------------------------------------
 1 | //{{NO_DEPENDENCIES}}
 2 | // Microsoft Visual C++ generated include file.
 3 | 
 4 | // Next default values for new objects
 5 | // 
 6 | #ifdef APSTUDIO_INVOKED
 7 | #ifndef APSTUDIO_READONLY_SYMBOLS
 8 | #define _APS_NEXT_RESOURCE_VALUE        101
 9 | #define _APS_NEXT_COMMAND_VALUE         40001
10 | #define _APS_NEXT_CONTROL_VALUE         1001
11 | #define _APS_NEXT_SYMED_VALUE           101
12 | #endif
13 | #endif
14 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/pf_project/proj.win/zlib.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/zlib/pf_project/proj.win/zlib.rc


--------------------------------------------------------------------------------
/pf/dependencies/zlib/pf_project/src/gzclose.c:
--------------------------------------------------------------------------------
 1 | /* gzclose.c -- zlib gzclose() function
 2 |  * Copyright (C) 2004, 2010 Mark Adler
 3 |  * For conditions of distribution and use, see copyright notice in zlib.h
 4 |  */
 5 | 
 6 | #include "gzguts.h"
 7 | 
 8 | /* gzclose() is in a separate file so that it is linked in only if it is used.
 9 |    That way the other gzclose functions can be used instead to avoid linking in
10 |    unneeded compression or decompression routines. */
11 | int ZEXPORT gzclose(file)
12 |     gzFile file;
13 | {
14 | #ifndef NO_GZCOMPRESS
15 |     gz_statep state;
16 | 
17 |     if (file == NULL)
18 |         return Z_STREAM_ERROR;
19 |     state = (gz_statep)file;
20 | 
21 |     return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
22 | #else
23 |     return gzclose_r(file);
24 | #endif
25 | }
26 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/pf_project/zlib.pproject:
--------------------------------------------------------------------------------
 1 | /**
 2 |   Plain framework project file.
 3 |   Version:             The project current version.
 4 |   Type:                Project type [library|executable].
 5 |   LinkDirectories:     Link directories as the Dependencies directories.
 6 |   IncludeDirectories:  Include directories.
 7 |   ExtraSources:        Extra source file or directories.
 8 |   SourceFilters:       Source directory or filename filter(not active).  
 9 |   OutputPath:          The project output path.
10 |   Definitions:         Macros definitions.
11 |   Dependencies:        Dependencies library.
12 | **/
13 | {
14 |   "Version": 1.20,
15 |   "Type": "library",
16 |   "LinkDirectories": [
17 |     "./"
18 |   ],
19 |   "IncludeDirectories": [
20 |     "../include"
21 |   ],
22 |   "ExtraSources": [
23 |   ],
24 |   "SourceFilters": [
25 |     "CMakeFiles",
26 |     "trees.h",
27 |     "crc32.h",
28 |     "zconf_linux.h",
29 |     "inffixed.h",
30 |     "inflate.h",
31 |     "inffast.h"
32 |   ],
33 |   "DisableSpecificWarnings": "4819;",
34 |   "OutputPath": "./../../../dll/",
35 |   "Definitions": [
36 |   ],
37 |   "Dependencies": [
38 |   ]
39 | }
40 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/vc_build/CTestTestfile.cmake:
--------------------------------------------------------------------------------
1 | # CMake generated Testfile for 
2 | # Source directory: E:/develop/workspace/GitHub/test/plainframework/pf/dependencies/zlib
3 | # Build directory: E:/develop/workspace/GitHub/test/plainframework/pf/dependencies/zlib/vc_build
4 | # 
5 | # This file includes the relevant testing commands required for 
6 | # testing this directory and lists subdirectories to be tested as well.
7 | ADD_TEST(example "example")
8 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/vc_build/zlib.pc:
--------------------------------------------------------------------------------
 1 | prefix=C:/Program Files (x86)/zlib
 2 | exec_prefix=C:/Program Files (x86)/zlib
 3 | libdir=C:/Program Files (x86)/zlib/lib
 4 | sharedlibdir=C:/Program Files (x86)/zlib/lib
 5 | includedir=C:/Program Files (x86)/zlib/include
 6 | 
 7 | Name: zlib
 8 | Description: zlib compression library
 9 | Version: 1.2.8
10 | 
11 | Requires:
12 | Libs: -L${libdir} -L${sharedlibdir} -lz
13 | Cflags: -I${includedir}
14 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/win32/VisualC.txt:
--------------------------------------------------------------------------------
1 | 
2 | To build zlib using the Microsoft Visual C++ environment,
3 | use the appropriate project from the projects/ directory.
4 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/win32/zlib1.rc:
--------------------------------------------------------------------------------
 1 | #include 
 2 | #include "../zlib.h"
 3 | 
 4 | #ifdef GCC_WINDRES
 5 | VS_VERSION_INFO		VERSIONINFO
 6 | #else
 7 | VS_VERSION_INFO		VERSIONINFO	MOVEABLE IMPURE LOADONCALL DISCARDABLE
 8 | #endif
 9 |   FILEVERSION		ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0
10 |   PRODUCTVERSION	ZLIB_VER_MAJOR,ZLIB_VER_MINOR,ZLIB_VER_REVISION,0
11 |   FILEFLAGSMASK		VS_FFI_FILEFLAGSMASK
12 | #ifdef _DEBUG
13 |   FILEFLAGS		1
14 | #else
15 |   FILEFLAGS		0
16 | #endif
17 |   FILEOS		VOS__WINDOWS32
18 |   FILETYPE		VFT_DLL
19 |   FILESUBTYPE		0	// not used
20 | BEGIN
21 |   BLOCK "StringFileInfo"
22 |   BEGIN
23 |     BLOCK "040904E4"
24 |     //language ID = U.S. English, char set = Windows, Multilingual
25 |     BEGIN
26 |       VALUE "FileDescription",	"zlib data compression library\0"
27 |       VALUE "FileVersion",	ZLIB_VERSION "\0"
28 |       VALUE "InternalName",	"zlib1.dll\0"
29 |       VALUE "LegalCopyright",	"(C) 1995-2013 Jean-loup Gailly & Mark Adler\0"
30 |       VALUE "OriginalFilename",	"zlib1.dll\0"
31 |       VALUE "ProductName",	"zlib\0"
32 |       VALUE "ProductVersion",	ZLIB_VERSION "\0"
33 |       VALUE "Comments",		"For more information visit http://www.zlib.net/\0"
34 |     END
35 |   END
36 |   BLOCK "VarFileInfo"
37 |   BEGIN
38 |     VALUE "Translation", 0x0409, 1252
39 |   END
40 | END
41 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/zlib.3.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/dependencies/zlib/zlib.3.pdf


--------------------------------------------------------------------------------
/pf/dependencies/zlib/zlib.pc.cmakein:
--------------------------------------------------------------------------------
 1 | prefix=@CMAKE_INSTALL_PREFIX@
 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@
 3 | libdir=@INSTALL_LIB_DIR@
 4 | sharedlibdir=@INSTALL_LIB_DIR@
 5 | includedir=@INSTALL_INC_DIR@
 6 | 
 7 | Name: zlib
 8 | Description: zlib compression library
 9 | Version: @VERSION@
10 | 
11 | Requires:
12 | Libs: -L${libdir} -L${sharedlibdir} -lz
13 | Cflags: -I${includedir}
14 | 


--------------------------------------------------------------------------------
/pf/dependencies/zlib/zlib.pc.in:
--------------------------------------------------------------------------------
 1 | prefix=@prefix@
 2 | exec_prefix=@exec_prefix@
 3 | libdir=@libdir@
 4 | sharedlibdir=@sharedlibdir@
 5 | includedir=@includedir@
 6 | 
 7 | Name: zlib
 8 | Description: zlib compression library
 9 | Version: @VERSION@
10 | 
11 | Requires:
12 | Libs: -L${libdir} -L${sharedlibdir} -lz
13 | Cflags: -I${includedir}
14 | 


--------------------------------------------------------------------------------
/pf/plugin/pak/README.md:
--------------------------------------------------------------------------------
 1 | pak 数据包简介
 2 | 
 3 | 1. 解释  
 4 |    pak数据包一般用在资源打包加密上,也就是把许多文件塞入一个文件内并压缩与加密,
 5 |    一般用于游戏资源和配置的打包发布,例如魔兽世界经典的mpq资源包。
 6 | 
 7 | 2. 分类  
 8 |   - 普通数据包,这类数据包一般用在对应用的数据读取直接使用
 9 |   - 补丁数据包,这类数据包一般用在对应用的数据包需要更新时使用
10 | 
11 | 3. 基本结构  
12 |   文件标记 | 包头数据 | 文件数据 | 文件数据 ... (最基本的结构)  
13 |   文件标记 | 包头数据 | HASHKEY TABLE | BLOCK TABLE |  列表信息文件数据 | 属性信息文件数据 | 文件数据 ... (pak结构)
14 | 
15 | 4. 包头数据结构  
16 |   包头数据为固定的一个结构体,它存放了一些最基本的pak包的信息,如版本信息、文件大小、文件的类型等等。
17 | 
18 | 5. 文件数据结构  
19 |   文件块位置数据 | 文件块数据 ...
20 | 
21 | 6. HASHKEY TABLE  
22 |   顾名思义,它的存放了文件的名称,用来定位文件块数据的索引。
23 | 
24 | 7. BLOCK TABLE  
25 |   文件块数据数组,通过文件块数据索引可以获得对应文件块数据的数据存储位置(pak文件)、压缩后的大小、未压缩的大小、状态标记。
26 | 
27 | 8. 列表信息文件数据  
28 |   不管是普通包还是补丁数据包都有该文件,并放在第一个文件位置,即紧跟在BLOCK TABLE之后,
29 |   主要存放了有关文件名的数据。
30 | 
31 | 9. 属性信息文件数据  
32 |   不管是普通包还是补丁数据包都有该文件,并放在第二个文件位置,紧跟在列表信息文件之后,存放了文件的版本、标记、crc32数据、时间数据、md5数据。
33 | 
34 | 10. 文件块数据及位置
35 |   文件块数据位置是一位存放文件块数据位置的数组,文件块数据为文件数据的基本单位,在pak中一个文件块数据的基本大小为4096字节即4K。
36 | 
37 | 11. 关于普通和补丁包的区别  
38 |   两者在大小上有明显的区别,因为普通包会将文件列表信息数据保持足够的大,所以会将该文件数据分配为一个大小为2M的空间,而补丁文件则根据文件有多少则记多少的原则。
39 | 


--------------------------------------------------------------------------------
/pf/plugin/pak/include/pak/listfile.h:
--------------------------------------------------------------------------------
 1 | /**
 2 |  * PAP Engine ( https://github.com/viticm/plainframework )
 3 |  * $Id listfile.h
 4 |  * @link https://github.com/viticm/plainframework for the canonical source repository
 5 |  * @copyright Copyright (c) 2014- viticm( viticm@126.com )
 6 |  * @license
 7 |  * @user viticm
 8 |  * @date 2014/10/13 14:32
 9 |  * @uses pak list file module(save pak file list informations)
10 | */
11 | #ifndef PAK_LISTFILE_H_
12 | #define PAK_LISTFILE_H_
13 | 
14 | #include "pak/config.h"
15 | 
16 | namespace pak {
17 | 
18 | uint64_t listfile_create(archive_t *archive);
19 | uint64_t listfile_normaladd(archive_t *archive, const char *filename);
20 | uint64_t listfile_patchadd(archive_t *archive, const char *filename);
21 | uint64_t listfile_nodeadd(archive_t *archive, const char *filename);
22 | uint64_t listfile_noderemove(archive_t *archive, const char *filename);
23 | uint64_t listfile_noderename(archive_t *archive, 
24 |                              const char *old_filename, 
25 |                              const char *new_filename);
26 | 
27 | uint64_t attributefile_create(archive_t *archive);
28 | uint64_t attributefile_normalload(archive_t *archive);
29 | uint64_t attributefile_patchload(archive_t *archive);
30 | 
31 | }; //namespace pak
32 | 
33 | #endif //PAK_LISTFILE_H_
34 | 


--------------------------------------------------------------------------------
/pf/plugin/pak/misc/bzip2/libbz2.def:
--------------------------------------------------------------------------------
 1 | LIBRARY			LIBBZ2
 2 | DESCRIPTION		"libbzip2: library for data compression"
 3 | EXPORTS
 4 | 	BZ2_bzCompressInit
 5 | 	BZ2_bzCompress
 6 | 	BZ2_bzCompressEnd
 7 | 	BZ2_bzDecompressInit
 8 | 	BZ2_bzDecompress
 9 | 	BZ2_bzDecompressEnd
10 | 	BZ2_bzReadOpen
11 | 	BZ2_bzReadClose
12 | 	BZ2_bzReadGetUnused
13 | 	BZ2_bzRead
14 | 	BZ2_bzWriteOpen
15 | 	BZ2_bzWrite
16 | 	BZ2_bzWriteClose
17 | 	BZ2_bzWriteClose64
18 | 	BZ2_bzBuffToBuffCompress
19 | 	BZ2_bzBuffToBuffDecompress
20 | 	BZ2_bzlibVersion
21 | 	BZ2_bzopen
22 | 	BZ2_bzdopen
23 | 	BZ2_bzread
24 | 	BZ2_bzwrite
25 | 	BZ2_bzflush
26 | 	BZ2_bzclose
27 | 	BZ2_bzerror
28 | 


--------------------------------------------------------------------------------
/pf/plugin/pak/misc/bzip2/mk251.c:
--------------------------------------------------------------------------------
 1 | 
 2 | /* Spew out a long sequence of the byte 251.  When fed to bzip2
 3 |    versions 1.0.0 or 1.0.1, causes it to die with internal error
 4 |    1007 in blocksort.c.  This assertion misses an extremely rare
 5 |    case, which is fixed in this version (1.0.2) and above.
 6 | */
 7 | 
 8 | #include 
 9 | 
10 | int main ()
11 | {
12 |    int i;
13 |    for (i = 0; i < 48500000 ; i++)
14 |      putchar(251);
15 |    return 0;
16 | }
17 | 


--------------------------------------------------------------------------------
/pf/plugin/pak/misc/bzip2/spewG.c:
--------------------------------------------------------------------------------
 1 | 
 2 | /* spew out a thoroughly gigantic file designed so that bzip2
 3 |    can compress it reasonably rapidly.  This is to help test
 4 |    support for large files (> 2GB) in a reasonable amount of time.
 5 |    I suggest you use the undocumented --exponential option to
 6 |    bzip2 when compressing the resulting file; this saves a bit of
 7 |    time.  Note: *don't* bother with --exponential when compressing 
 8 |    Real Files; it'll just waste a lot of CPU time :-)
 9 |    (but is otherwise harmless).
10 | */
11 | 
12 | #define _FILE_OFFSET_BITS 64
13 | 
14 | #include 
15 | #include 
16 | 
17 | /* The number of megabytes of junk to spew out (roughly) */
18 | #define MEGABYTES 5000
19 | 
20 | #define N_BUF 1000000
21 | char buf[N_BUF];
22 | 
23 | int main ( int argc, char** argv )
24 | {
25 |    int ii, kk, p;
26 |    srandom(1);
27 |    setbuffer ( stdout, buf, N_BUF );
28 |    for (kk = 0; kk < MEGABYTES * 515; kk+=3) {
29 |       p = 25+random()%50;
30 |       for (ii = 0; ii < p; ii++)
31 |          printf ( "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" );
32 |       for (ii = 0; ii < p-1; ii++)
33 |          printf ( "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" );
34 |       for (ii = 0; ii < p+1; ii++)
35 |          printf ( "ccccccccccccccccccccccccccccccccccccc" );
36 |    }
37 |    fflush(stdout);
38 |    return 0;
39 | }
40 | 


--------------------------------------------------------------------------------
/pf/plugin/pak/misc/crc32.h:
--------------------------------------------------------------------------------
 1 | /*****************************************************************************/
 2 | /* crc32.h                                Copyright (c) Ladislav Zezula 2007 */
 3 | /*---------------------------------------------------------------------------*/
 4 | /* Description:                                                              */
 5 | /*---------------------------------------------------------------------------*/
 6 | /*   Date    Ver   Who  Comment                                              */
 7 | /* --------  ----  ---  -------                                              */
 8 | /* 11.06.07  1.00  Lad  The first version of crc32.h                         */
 9 | /*****************************************************************************/
10 | 
11 | #ifndef __CRC32_H__
12 | #define __CRC32_H__
13 | 
14 | #include 
15 | 
16 | struct crc32_context
17 | {
18 |     unsigned long value;
19 | };
20 | 
21 | void CRC32_Init(crc32_context * ctx);
22 | void CRC32_Update(crc32_context * ctx, unsigned char *input, int ilen);
23 | void CRC32_Finish(crc32_context * ctx, uint64_t * value);
24 | 
25 | #endif // __CRC32_H__
26 | 


--------------------------------------------------------------------------------
/pf/plugin/pak/misc/md5.h:
--------------------------------------------------------------------------------
 1 | /*****************************************************************************/
 2 | /* md5.h                                  Copyright (c) Ladislav Zezula 2007 */
 3 | /*---------------------------------------------------------------------------*/
 4 | /* Description:                                                              */
 5 | /*---------------------------------------------------------------------------*/
 6 | /*   Date    Ver   Who  Comment                                              */
 7 | /* --------  ----  ---  -------                                              */
 8 | /* 11.06.07  1.00  Lad  The first version of md5.h                           */
 9 | /*****************************************************************************/
10 | 
11 | #ifndef __MD5_H__
12 | #define __MD5_H__
13 | 
14 | // Functions for MD5
15 | struct md5_context
16 | {
17 |     unsigned long total[2];             // number of bytes processed
18 |     unsigned long state[4];             // intermediate digest state
19 |     unsigned char buffer[64];           // data block being processed
20 | };
21 | 
22 | void MD5_Init(md5_context * ctx);
23 | void MD5_Update(md5_context * ctx, unsigned char *input, int ilen);
24 | void MD5_Finish(md5_context * ctx, unsigned char output[16]);
25 | 
26 | #endif // __MD5_H__
27 | 


--------------------------------------------------------------------------------
/pf/plugin/pak/misc/wave/wave.h:
--------------------------------------------------------------------------------
 1 | /*****************************************************************************/
 2 | /* Wave.h                                 Copyright (c) Ladislav Zezula 2003 */
 3 | /*---------------------------------------------------------------------------*/
 4 | /* Header file for WAVe unplode functions                                    */
 5 | /*---------------------------------------------------------------------------*/
 6 | /*   Date    Ver   Who  Comment                                              */
 7 | /* --------  ----  ---  -------                                              */
 8 | /* 31.03.03  1.00  Lad  The first version of Wave.h                          */
 9 | /*****************************************************************************/
10 | 
11 | #ifndef __WAVE_H__
12 | #define __WAVE_H__
13 | 
14 | //-----------------------------------------------------------------------------
15 | // Functions
16 | 
17 | int  CompressWave  (unsigned char * pbOutBuffer, int dwOutLength, short * pwInBuffer, int dwInLength, int nCmpType, int nChannels);
18 | int  DecompressWave(unsigned char * pbOutBuffer, int dwOutLength, unsigned char * pbInBuffer, int dwInLength, int nChannels);
19 | 
20 | #endif // __WAVE_H__
21 | 


--------------------------------------------------------------------------------
/pf/plugin/pak/mk_tags:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | #@desc this script can auto create cscope file and ctags
 3 | #@date 2013-12-9 13:53:44
 4 | #@author viticm
 5 | paths="./ ../../core/include"
 6 | types="php lua h cpp c cc hpp erl hrl inl"
 7 | n=0
 8 | 
 9 | is_win32=false
10 | ENV_PATH="F:\tools\editor\vim\vim74"
11 | if [[ `uname | grep W32_NT` != "" ]] ; then
12 |   is_win32=true
13 |   export PATH=$ENV_PATH
14 | fi
15 | 
16 | for path in ${paths}
17 | do
18 |   cmd="find ${path}"
19 |   i=0
20 |   for filetype in ${types} 
21 |   do
22 |     if [[ 0 -eq ${i} ]] ; then
23 |       cmd=${cmd}" -name \*."${filetype}
24 |     else
25 |       cmd=${cmd}" -o -name \*."${filetype}
26 |     fi
27 |     ((++i))
28 |   done
29 |   if [[ 0 -eq ${n} ]] ; then
30 |     cmd=${cmd}" > cscope.files"
31 |   else
32 |     cmd=${cmd}" >> cscope.files"
33 |   fi
34 |   echo ${cmd} | sh
35 |   ((++n))
36 | done
37 | 
38 | if $is_win32 ; then
39 |   if [ -f ./cscope.out ] ; then
40 |     echo "please close gvim and delete current cscope.out, then try angin."
41 |     exit 1
42 |   fi
43 |   cscope -bk -i cscope.files
44 | else
45 |   cscope -bkq -i cscope.files
46 | fi
47 | ctags -R
48 | 


--------------------------------------------------------------------------------
/pf/plugin/pak/plugin_pak.pproject:
--------------------------------------------------------------------------------
 1 | /**
 2 | 	Plain framework project file.
 3 | 	Version: 						  The project current version.
 4 | 	Type: 							  Project type [library|executable].
 5 | 	LinkDirectories:			Link directories as the Dependencies directories.
 6 | 	IncludeDirectories: 	Include directories.
 7 | 	ExtraSources:				  Extra source file or directories.
 8 | 	SourceFilters:					Source directory or filename filter(not active).
 9 | 	OutputPath:				    The project output path.
10 | 	Definitions:					Macros definitions.
11 | 	Dependencies:			    Dependencies library.
12 | **/
13 | {
14 | 	"Version": "1.0.0",
15 | 	"Type": "library",
16 | 	"LinkDirectories": [
17 | 		"./../../../dependencies/dll/",
18 | 		"./../../../core/dll/"
19 | 	],
20 | 	"IncludeDirectories": [
21 | 		"../include",
22 |     "../misc",
23 | 		"../../../dependencies/lua/include",
24 | 		"../../../dependencies/iconv/include",
25 | 		"../../../dependencies/zlib/pf_project/include/",
26 | 		"../../../core/include"
27 | 	],
28 | 	"ExtraSources": [
29 |     "misc/"
30 | 	],
31 | 	"SourceFilters": [
32 |     "bzip2recover.c",
33 |     "dlltest.c",
34 |     "mk251.c",
35 |     "spewG.c",
36 |     "unzcrash.c",
37 |     "bzip2.c"
38 | 	],
39 | 	"DisableSpecificWarnings": "4819;",
40 | 	"OutputPath": "./../../../dll/",
41 | 	"Definitions": [
42 | 	],
43 | 	"Dependencies": [
44 | 		"pf_core",
45 | 		"lua",
46 |     "zlib",
47 | 		"iconv"
48 | 	]
49 | }
50 | 


--------------------------------------------------------------------------------
/pf/plugin/pak/proj.win/plugin_pak.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/plugin/pak/proj.win/plugin_pak.rc


--------------------------------------------------------------------------------
/pf/plugin/pak/proj.win/resource.h:
--------------------------------------------------------------------------------
 1 | //{{NO_DEPENDENCIES}}
 2 | // Microsoft Visual C++ generated include file.
 3 | 
 4 | // Next default values for new objects
 5 | // 
 6 | #ifdef APSTUDIO_INVOKED
 7 | #ifndef APSTUDIO_READONLY_SYMBOLS
 8 | #define _APS_NEXT_RESOURCE_VALUE        101
 9 | #define _APS_NEXT_COMMAND_VALUE         40001
10 | #define _APS_NEXT_CONTROL_VALUE         1001
11 | #define _APS_NEXT_SYMED_VALUE           101
12 | #endif
13 | #endif
14 | 


--------------------------------------------------------------------------------
/pf/plugin/pak/tests/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2 | PROJECT (pak_simple)
3 | 
4 | ADD_SUBDIRECTORY(src)
5 | 


--------------------------------------------------------------------------------
/pf/plugin/pak/tests/include/main.h:
--------------------------------------------------------------------------------
1 | #ifndef MAIN_H_
2 | #define MAIN_H_
3 | 
4 | #endif //MAIN_H_


--------------------------------------------------------------------------------
/pf/plugin/pak/tool/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2 | PROJECT (pak_tool)
3 | 
4 | ADD_SUBDIRECTORY(src)
5 | 


--------------------------------------------------------------------------------
/pf/plugin/pak/tool/include/main.h:
--------------------------------------------------------------------------------
1 | #ifndef MAIN_H_
2 | #define MAIN_H_
3 | 
4 | #endif //MAIN_H_


--------------------------------------------------------------------------------
/pf/plugin/pak/tool/test:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/pf/plugin/pak/tool/test


--------------------------------------------------------------------------------
/pf/plugin/pak/tool/test.c:
--------------------------------------------------------------------------------
 1 | #include 
 2 | #include 
 3 | #include 
 4 | #include 
 5 | #include 
 6 | 
 7 | char g_basedir_parentpath[FILENAME_MAX] = {0};
 8 | 
 9 | void loopdir(const char *dirname, int depth) {
10 |   DIR *dp = NULL;
11 |   struct dirent *entry = NULL;
12 |   struct stat statbuf;
13 |   if (NULL == (dp = opendir(dirname))) {
14 |     printf("can't open dir %s\n", dirname);
15 |     return;
16 |   }
17 |   chdir(dirname);
18 |   char curdir[FILENAME_MAX] = {0};
19 |   getcwd(curdir, sizeof(curdir));
20 |   while ((entry = readdir(dp)) != NULL) {
21 |     lstat(entry->d_name, &statbuf);
22 |     if (S_ISDIR(statbuf.st_mode)) {
23 |       if (0 == strcmp(".", entry->d_name) || 0 == strcmp("..", entry->d_name)) {
24 |         continue;
25 |       }
26 |       printf("%d, %s, %s\n", depth, "", entry->d_name);
27 |       loopdir(entry->d_name, depth + 1);
28 |     } else {
29 |       printf("%d, %s, %s curdir: %s\n", depth, "", entry->d_name, curdir);
30 |     }
31 |   }
32 |   chdir("..");
33 |   closedir(dp);
34 | }
35 | 
36 | int main(int argc, char *argv[]) {
37 |   char current_dir[FILENAME_MAX] = {0};
38 |   getcwd(current_dir, sizeof(current_dir));
39 |   printf("argv[0]: %s\n", argv[0]);
40 |   //loopdir("./", 0);
41 |   return 0;
42 | }
43 | 


--------------------------------------------------------------------------------
/tools/script/bat/rename_forvsbuild.bat:
--------------------------------------------------------------------------------
 1 | @echo off
 2 | title rename for visual studio(pap)
 3 | color 02
 4 | cls
 5 | echo select your need change model.
 6 | echo (1)all (2)gateway (3)pf_simple (4)pf_core (5)sharememory (6)login (7)center (8) plugin_pak
 7 | set /p select=your select?
 8 | echo revert to standard?
 9 | set revert=-1
10 | set /p revert=(yes/no)?
11 | set all="pf_core|pf_simple|gateway|sharememory|login|center|plugin_pak"
12 | if 1 == %select% php ../php/vcbuild.php %all% %revert%
13 | if 2 == %select% php ../php/vcbuild.php "gateway" %revert%
14 | if 3 == %select% php ../php/vcbuild.php "pf_simple" %revert%
15 | if 4 == %select% php ../php/vcbuild.php "pf_core" %revert%
16 | if 5 == %select% php ../php/vcbuild.php "sharememory" %revert%
17 | if 6 == %select% php ../php/vcbuild.php "login" %revert%
18 | if 7 == %select% php ../php/vcbuild.php "center" %revert%
19 | if 8 == %select% php ../php/vcbuild.php "plugin_pak" %revert%
20 | 
21 | pause
22 | 


--------------------------------------------------------------------------------
/tools/script/linux/install/libmyodbc5a.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/tools/script/linux/install/libmyodbc5a.so


--------------------------------------------------------------------------------
/tools/script/linux/install/odbc.ini:
--------------------------------------------------------------------------------
 1 | [sword_user]
 2 | Driver          = /usr/local/lib/mysqlodbc/libmyodbc5a.so
 3 | DATABASE        = sword_user
 4 | DESCRIPTION     = MySQL ODBC 5.3 Ansi Driver test
 5 | SERVER          = localhost
 6 | UID             = root
 7 | PASSWORD        = 
 8 | SOCKET          = 
 9 | 
10 | [sword_character]
11 | Driver          = /usr/local/lib/mysqlodbc/libmyodbc5a.so
12 | DATABASE        = sword_character
13 | DESCRIPTION     = MySQL ODBC 5.3 Ansi Driver test
14 | SERVER          = localhost
15 | UID             = root
16 | PASSWORD        = 
17 | SOCKET          = 
18 | 


--------------------------------------------------------------------------------
/tools/script/linux/install/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | function test()
3 | {
4 |   echo "xxxxxxxxxxxxxxx"
5 | }
6 | test
7 | 


--------------------------------------------------------------------------------
/tools/script/linux/install/unixODBC-2.3.2.tar.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/viticm/plainframework1/118513c58e85898738217f81a831fc2b878bb3be/tools/script/linux/install/unixODBC-2.3.2.tar.gz


--------------------------------------------------------------------------------