[ATL] Retire atlnew

This commit is contained in:
Mark Jansen 2019-04-06 22:37:13 +02:00
parent 9853cc4d7e
commit 9824a0154e
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B
26 changed files with 24 additions and 91 deletions

View file

@ -1,9 +0,0 @@
set_cpp(WITH_RTTI)
add_definitions(
-DUNICODE -D_UNICODE
-DROS_Headers)
add_library(atlnew atlbase.cpp atlcore.cpp)
add_dependencies(atlnew psdk)

View file

@ -1,30 +0,0 @@
/*
* ReactOS ATL
*
* Copyright 2009 Andrew Hill <ash77@reactos.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "atlbase.h"
namespace ATL
{
CAtlBaseModule _AtlBaseModule;
CAtlWinModule _AtlWinModule = CAtlWinModule();
CAtlComModule _AtlComModule;
}; // namespace ATL

View file

@ -57,7 +57,6 @@ class CComModule;
class CAtlComModule;
__declspec(selectany) CAtlModule *_pAtlModule = NULL;
__declspec(selectany) CComModule *_pModule = NULL;
extern CAtlComModule _AtlComModule;
struct _ATL_CATMAP_ENTRY
@ -590,6 +589,9 @@ public:
}
};
__declspec(selectany) CAtlComModule _AtlComModule;
template <class T>
HRESULT CAtlModuleT<T>::RegisterServer(BOOL bRegTypeLib, const CLSID *pCLSID)
{
@ -983,7 +985,8 @@ public:
}
};
extern CAtlWinModule _AtlWinModule;
__declspec(selectany) CAtlWinModule _AtlWinModule;
class CComAllocator
{

View file

@ -1,28 +0,0 @@
/*
* ReactOS ATL
*
* Copyright 2009 Andrew Hill <ash77@reactos.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "atlcore.h"
namespace ATL
{
bool CAtlBaseModule::m_bInitFailed = false;
}; // namespace ATL

View file

@ -217,7 +217,8 @@ public:
HINSTANCE GetHInstanceAt(int i);
};
extern CAtlBaseModule _AtlBaseModule;
__declspec(selectany) CAtlBaseModule _AtlBaseModule;
__declspec(selectany) bool CAtlBaseModule::m_bInitFailed = false;
///