John Bauman | 66b8ab2 | 2014-05-06 15:57:45 -0400 | [diff] [blame] | 1 | // |
| 2 | // Copyright (c) 2002-2012 The ANGLE Project Authors. All rights reserved. |
| 3 | // Use of this source code is governed by a BSD-style license that can be |
| 4 | // found in the LICENSE file. |
| 5 | // |
| 6 | |
| 7 | #ifndef __INITIALIZE_PARSE_CONTEXT_INCLUDED_ |
| 8 | #define __INITIALIZE_PARSE_CONTEXT_INCLUDED_ |
| 9 | |
| 10 | bool InitializeParseContextIndex(); |
| 11 | bool FreeParseContextIndex(); |
| 12 | |
| 13 | bool InitializeGlobalParseContext(); |
| 14 | bool FreeParseContext(); |
| 15 | |
| 16 | struct TParseContext; |
| 17 | typedef TParseContext* TParseContextPointer; |
| 18 | extern TParseContextPointer& GetGlobalParseContext(); |
| 19 | #define GlobalParseContext GetGlobalParseContext() |
| 20 | |
| 21 | typedef struct TThreadParseContextRec |
| 22 | { |
| 23 | TParseContext *lpGlobalParseContext; |
| 24 | } TThreadParseContext; |
| 25 | |
| 26 | #endif // __INITIALIZE_PARSE_CONTEXT_INCLUDED_ |