michael@0: // michael@0: // Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: // michael@0: michael@0: #include "compiler/InitializeDll.h" michael@0: michael@0: #include "compiler/InitializeGlobals.h" michael@0: #include "compiler/InitializeParseContext.h" michael@0: #include "compiler/osinclude.h" michael@0: michael@0: bool InitProcess() michael@0: { michael@0: if (!InitializePoolIndex()) { michael@0: assert(0 && "InitProcess(): Failed to initalize global pool"); michael@0: return false; michael@0: } michael@0: michael@0: if (!InitializeParseContextIndex()) { michael@0: assert(0 && "InitProcess(): Failed to initalize parse context"); michael@0: return false; michael@0: } michael@0: michael@0: return true; michael@0: } michael@0: michael@0: void DetachProcess() michael@0: { michael@0: FreeParseContextIndex(); michael@0: FreePoolIndex(); michael@0: }