LEFT | RIGHT |
(no file at all) | |
1 // | 1 // |
2 // Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved. | 2 // Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 // | 5 // |
6 #ifndef _PARSER_HELPER_INCLUDED_ | 6 #ifndef _PARSER_HELPER_INCLUDED_ |
7 #define _PARSER_HELPER_INCLUDED_ | 7 #define _PARSER_HELPER_INCLUDED_ |
8 | 8 |
9 #include "compiler/ExtensionBehavior.h" | 9 #include "compiler/ExtensionBehavior.h" |
10 #include "compiler/localintermediate.h" | 10 #include "compiler/localintermediate.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 bool arrayTypeErrorCheck(int line, TPublicType type); | 74 bool arrayTypeErrorCheck(int line, TPublicType type); |
75 bool arrayErrorCheck(int line, TString& identifier, TPublicType type, TVaria
ble*& variable); | 75 bool arrayErrorCheck(int line, TString& identifier, TPublicType type, TVaria
ble*& variable); |
76 bool voidErrorCheck(int, const TString&, const TPublicType&); | 76 bool voidErrorCheck(int, const TString&, const TPublicType&); |
77 bool boolErrorCheck(int, const TIntermTyped*); | 77 bool boolErrorCheck(int, const TIntermTyped*); |
78 bool boolErrorCheck(int, const TPublicType&); | 78 bool boolErrorCheck(int, const TPublicType&); |
79 bool samplerErrorCheck(int line, const TPublicType& pType, const char* reaso
n); | 79 bool samplerErrorCheck(int line, const TPublicType& pType, const char* reaso
n); |
80 bool structQualifierErrorCheck(int line, const TPublicType& pType); | 80 bool structQualifierErrorCheck(int line, const TPublicType& pType); |
81 bool parameterSamplerErrorCheck(int line, TQualifier qualifier, const TType&
type); | 81 bool parameterSamplerErrorCheck(int line, TQualifier qualifier, const TType&
type); |
82 bool containsSampler(TType& type); | 82 bool containsSampler(TType& type); |
83 bool nonInitConstErrorCheck(int line, TString& identifier, TPublicType& type
); | 83 bool nonInitConstErrorCheck(int line, TString& identifier, TPublicType& type
); |
84 bool nonInitErrorCheck(int line, TString& identifier, TPublicType& type); | 84 bool nonInitErrorCheck(int line, TString& identifier, TPublicType& type, TVa
riable*& variable); |
85 bool paramErrorCheck(int line, TQualifier qualifier, TQualifier paramQualifi
er, TType* type); | 85 bool paramErrorCheck(int line, TQualifier qualifier, TQualifier paramQualifi
er, TType* type); |
86 bool extensionErrorCheck(int line, const TString&); | 86 bool extensionErrorCheck(int line, const TString&); |
87 const TFunction* findFunction(int line, TFunction* pfnCall, bool *builtIn =
0); | 87 const TFunction* findFunction(int line, TFunction* pfnCall, bool *builtIn =
0); |
88 bool executeInitializer(TSourceLoc line, TString& identifier, TPublicType& p
Type, | 88 bool executeInitializer(TSourceLoc line, TString& identifier, TPublicType& p
Type, |
89 TIntermTyped* initializer, TIntermNode*& intermNode,
TVariable* variable = 0); | 89 TIntermTyped* initializer, TIntermNode*& intermNode,
TVariable* variable = 0); |
90 bool areAllChildConst(TIntermAggregate* aggrNode); | 90 bool areAllChildConst(TIntermAggregate* aggrNode); |
91 TIntermTyped* addConstructor(TIntermNode*, const TType*, TOperator, TFunctio
n*, TSourceLoc); | 91 TIntermTyped* addConstructor(TIntermNode*, const TType*, TOperator, TFunctio
n*, TSourceLoc); |
92 TIntermTyped* foldConstConstructor(TIntermAggregate* aggrNode, const TType&
type); | 92 TIntermTyped* foldConstConstructor(TIntermAggregate* aggrNode, const TType&
type); |
93 TIntermTyped* constructStruct(TIntermNode*, TType*, int, TSourceLoc, bool su
bset); | 93 TIntermTyped* constructStruct(TIntermNode*, TType*, int, TSourceLoc, bool su
bset); |
94 TIntermTyped* constructBuiltIn(const TType*, TOperator, TIntermNode*, TSourc
eLoc, bool subset); | 94 TIntermTyped* constructBuiltIn(const TType*, TOperator, TIntermNode*, TSourc
eLoc, bool subset); |
(...skipping 14 matching lines...) Expand all Loading... |
109 typedef TParseContext* TParseContextPointer; | 109 typedef TParseContext* TParseContextPointer; |
110 extern TParseContextPointer& GetGlobalParseContext(); | 110 extern TParseContextPointer& GetGlobalParseContext(); |
111 #define GlobalParseContext GetGlobalParseContext() | 111 #define GlobalParseContext GetGlobalParseContext() |
112 | 112 |
113 typedef struct TThreadParseContextRec | 113 typedef struct TThreadParseContextRec |
114 { | 114 { |
115 TParseContext *lpGlobalParseContext; | 115 TParseContext *lpGlobalParseContext; |
116 } TThreadParseContext; | 116 } TThreadParseContext; |
117 | 117 |
118 #endif // _PARSER_HELPER_INCLUDED_ | 118 #endif // _PARSER_HELPER_INCLUDED_ |
LEFT | RIGHT |