From 66d1110733b876f36459d1bf8655eb4013f39470 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sun, 17 Jul 2016 03:24:07 +0300 Subject: [PATCH] Rvised the API distribution system to avoid segmentation fault crashes on Linux and make the overal code cleaner. Moved the constants in IRC module into their own source and implemented a faster method of registering them. Various other minor changes and adjustments. Some of them in order to comply with the new API distribution system. --- cbp/ModIRC.cbp | 1 + cbp/ModMySQL.cbp | 2 +- cbp/Sandbox.cbp | 16 +- modules/irc/Common.cpp | 21 +- modules/irc/Constants.cpp | 244 ++++++ modules/irc/Module.cpp | 446 ++--------- modules/irc/Session.cpp | 124 +++- modules/json/Common.cpp | 2 +- modules/json/JArray.cpp | 4 +- modules/json/JObject.cpp | 4 +- modules/json/JValue.cpp | 4 +- modules/json/Module.cpp | 188 +++-- modules/mg/Module.cpp | 299 ++++---- modules/mmdb/EntryDataList.cpp | 6 +- modules/mmdb/Module.cpp | 143 ++-- modules/mysql/Common.cpp | 18 +- modules/mysql/Module.cpp | 169 ++--- modules/mysql/Parameter.hpp | 36 +- modules/sample/Module.cpp | 160 ++-- modules/sqlite/Column.cpp | 18 +- modules/sqlite/Common.cpp | 12 +- modules/sqlite/Module.cpp | 181 ++--- modules/xml/Attribute.cpp | 56 +- modules/xml/Module.cpp | 311 ++++---- modules/xml/Text.cpp | 56 +- shared/Base/Utility.hpp | 32 +- shared/Base/Utility.inl | 141 +++- shared/SqAPI.h | 1104 ++++++++++++++++------------ shared/SqMod.h | 288 ++++---- shared/SqMod.inl | 1266 ++++++++++++++++---------------- source/Exports.cpp | 469 ++++++------ source/Main.cpp | 1 - 32 files changed, 3049 insertions(+), 2773 deletions(-) create mode 100644 modules/irc/Constants.cpp diff --git a/cbp/ModIRC.cbp b/cbp/ModIRC.cbp index 77e7857a..34f94b78 100644 --- a/cbp/ModIRC.cbp +++ b/cbp/ModIRC.cbp @@ -434,6 +434,7 @@ + diff --git a/cbp/ModMySQL.cbp b/cbp/ModMySQL.cbp index 63ade63f..e96d46d2 100644 --- a/cbp/ModMySQL.cbp +++ b/cbp/ModMySQL.cbp @@ -114,9 +114,9 @@