From 3a8d4952c157ec5c66f56a19e4a575609d435e92 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Mon, 20 Jun 2016 16:17:03 +0300 Subject: [PATCH] Avoid sharing the same source file between multiple projects where there's a possibility that with each project object generated by the the source file could have a diffrent code used by other sources from the project. Which can lead to undefined link time errors (at best) or run-time crashes (at worst). --- cbp/ModIRC.cbp | 2 +- cbp/ModJSON.cbp | 2 +- cbp/ModMMDB.cbp | 2 +- cbp/ModMongoose.cbp | 2 +- cbp/ModMySQL.cbp | 2 +- cbp/ModSQLite.cbp | 2 +- cbp/ModSample.cbp | 2 +- cbp/ModXML.cbp | 2 +- cbp/Module.cbp | 2 +- shared/Base/Module.cpp | 1 + shared/Base/Plugin.cpp | 1 + shared/Base/{Utility.cpp => Utility.inl} | 0 12 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 shared/Base/Module.cpp create mode 100644 shared/Base/Plugin.cpp rename shared/Base/{Utility.cpp => Utility.inl} (100%) diff --git a/cbp/ModIRC.cbp b/cbp/ModIRC.cbp index 98635d8a..77e7857a 100644 --- a/cbp/ModIRC.cbp +++ b/cbp/ModIRC.cbp @@ -439,7 +439,7 @@ - + diff --git a/cbp/ModJSON.cbp b/cbp/ModJSON.cbp index 67c03c4b..7c6a9817 100644 --- a/cbp/ModJSON.cbp +++ b/cbp/ModJSON.cbp @@ -427,7 +427,7 @@ - + diff --git a/cbp/ModMMDB.cbp b/cbp/ModMMDB.cbp index c30994cf..174e2396 100644 --- a/cbp/ModMMDB.cbp +++ b/cbp/ModMMDB.cbp @@ -437,7 +437,7 @@ - + diff --git a/cbp/ModMongoose.cbp b/cbp/ModMongoose.cbp index 4c5e5962..c82fae3d 100644 --- a/cbp/ModMongoose.cbp +++ b/cbp/ModMongoose.cbp @@ -449,7 +449,7 @@ - + diff --git a/cbp/ModMySQL.cbp b/cbp/ModMySQL.cbp index aca294f8..4a9f67de 100644 --- a/cbp/ModMySQL.cbp +++ b/cbp/ModMySQL.cbp @@ -463,7 +463,7 @@ - + diff --git a/cbp/ModSQLite.cbp b/cbp/ModSQLite.cbp index 54fbd4ea..587d798d 100644 --- a/cbp/ModSQLite.cbp +++ b/cbp/ModSQLite.cbp @@ -433,7 +433,7 @@ - + diff --git a/cbp/ModSample.cbp b/cbp/ModSample.cbp index 1f7ebbde..7abd8f83 100644 --- a/cbp/ModSample.cbp +++ b/cbp/ModSample.cbp @@ -416,7 +416,7 @@ - + diff --git a/cbp/ModXML.cbp b/cbp/ModXML.cbp index a9a685c8..b9ff6aa7 100644 --- a/cbp/ModXML.cbp +++ b/cbp/ModXML.cbp @@ -428,7 +428,7 @@ - + diff --git a/cbp/Module.cbp b/cbp/Module.cbp index 49e9ae0a..7876310a 100644 --- a/cbp/Module.cbp +++ b/cbp/Module.cbp @@ -433,7 +433,7 @@ - + diff --git a/shared/Base/Module.cpp b/shared/Base/Module.cpp new file mode 100644 index 00000000..d2edef33 --- /dev/null +++ b/shared/Base/Module.cpp @@ -0,0 +1 @@ +#include "Utility.inl" \ No newline at end of file diff --git a/shared/Base/Plugin.cpp b/shared/Base/Plugin.cpp new file mode 100644 index 00000000..d2edef33 --- /dev/null +++ b/shared/Base/Plugin.cpp @@ -0,0 +1 @@ +#include "Utility.inl" \ No newline at end of file diff --git a/shared/Base/Utility.cpp b/shared/Base/Utility.inl similarity index 100% rename from shared/Base/Utility.cpp rename to shared/Base/Utility.inl