summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/angle/src/compiler/InitializeParseContext.h
blob: aa53b735d44d0044fdad04b15af772b1d6d05877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//
// Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//

#ifndef __INITIALIZE_PARSE_CONTEXT_INCLUDED_
#define __INITIALIZE_PARSE_CONTEXT_INCLUDED_

bool InitializeParseContextIndex();
bool FreeParseContextIndex();

bool InitializeGlobalParseContext();
bool FreeParseContext();

struct TParseContext;
typedef TParseContext* TParseContextPointer;
extern TParseContextPointer& GetGlobalParseContext();
#define GlobalParseContext GetGlobalParseContext()

typedef struct TThreadParseContextRec
{
    TParseContext *lpGlobalParseContext;
} TThreadParseContext;

#endif // __INITIALIZE_PARSE_CONTEXT_INCLUDED_