Reframe the preprocessor as a C++ class, with instances, removing all C code, removing all global variables. Upgrade bison version to pass a parse context on through to the preprocessor. All the basic things to make something thread safe.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22291 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
5f1a0b7998
commit
7213324259
59 changed files with 18949 additions and 4503 deletions
|
|
@ -40,10 +40,12 @@
|
|||
|
||||
#include "ParseHelper.h"
|
||||
|
||||
class TPpContext;
|
||||
class TPpToken;
|
||||
|
||||
namespace glslang {
|
||||
|
||||
class TParserToken;
|
||||
class TPpToken;
|
||||
|
||||
class TScanContext {
|
||||
public:
|
||||
|
|
@ -51,7 +53,7 @@ public:
|
|||
virtual ~TScanContext() { }
|
||||
|
||||
static void fillInKeywordMap();
|
||||
int tokenize(TParserToken&);
|
||||
int tokenize(TPpContext*, TParserToken&);
|
||||
|
||||
protected:
|
||||
int tokenizeIdentifier();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue