Home
last modified time | relevance | path

Searched refs:ppToken (Results 1 – 11 of 11) sorted by relevance

/external/deqp-deps/glslang/glslang/MachineIndependent/preprocessor/
DPp.cpp96 int TPpContext::CPPdefine(TPpToken* ppToken) in CPPdefine() argument
101 int token = scanToken(ppToken); in CPPdefine()
103 parseContext.ppError(ppToken->loc, "must be followed by macro name", "#define", ""); in CPPdefine()
106 if (ppToken->loc.string >= 0) { in CPPdefine()
108 parseContext.reservedPpErrorCheck(ppToken->loc, ppToken->name, "#define"); in CPPdefine()
112 const int defAtom = atomStrings.getAddAtom(ppToken->name); in CPPdefine()
113 …TSourceLoc defineLoc = ppToken->loc; // because ppToken might go to the next line before we report… in CPPdefine()
116 token = scanToken(ppToken); in CPPdefine()
117 if (token == '(' && !ppToken->space) { in CPPdefine()
120 token = scanToken(ppToken); in CPPdefine()
[all …]
DPpScanner.cpp105 int TPpContext::lFloatConst(int len, int ch, TPpToken* ppToken) in lFloatConst() argument
109 ppToken->name[len++] = static_cast<char>(ch); in lFloatConst()
114 while (startNonZero < len && ppToken->name[startNonZero] == '0') in lFloatConst()
117 while (endNonZero > startNonZero && ppToken->name[endNonZero-1] == '0') in lFloatConst()
126 wholeNumber = wholeNumber * 10 + (ppToken->name[i] - '0'); in lFloatConst()
141 (len == 2 && ppToken->name[0] != '1') || in lFloatConst()
142 … (len == 3 && ppToken->name[1] != '1' && !(ppToken->name[0] == '-' || ppToken->name[0] == '+')) || in lFloatConst()
144 parseContext.ppError(ppToken->loc, "unexpected use of", "#", ""); in lFloatConst()
150 parseContext.ppError(ppToken->loc, "expected 'INF'", "#", ""); in lFloatConst()
156 ppToken->name[len] = '\0'; in lFloatConst()
[all …]
DPpTokens.cpp176 void TPpContext::TokenStream::putToken(int atom, TPpToken* ppToken) in putToken() argument
184 const char* s = ppToken->name; in putToken()
192 const char* n = reinterpret_cast<const char*>(&ppToken->i64val); in putToken()
193 for (size_t i = 0; i < sizeof(ppToken->i64val); ++i) in putToken()
200 int TPpContext::TokenStream::getToken(TParseContextBase& parseContext, TPpToken *ppToken) in getToken() argument
208 ppToken->clear(); in getToken()
209 ppToken->loc = parseContext.getCurrentLoc(); in getToken()
217 ppToken->name[len] = (char)ch; in getToken()
221 parseContext.error(ppToken->loc, "token too long", "", ""); in getToken()
225 ppToken->name[len] = 0; in getToken()
[all …]
DPpContext.h204 int tokenize(TPpToken& ppToken);
250 void putToken(int token, TPpToken* ppToken);
307 int scanToken(TPpToken* ppToken) in scanToken() argument
312 token = inputStack.back()->scan(ppToken); in scanToken()
394 int CPPdefine(TPpToken * ppToken);
395 int CPPundef(TPpToken * ppToken);
396 int CPPelse(int matchelse, TPpToken * ppToken);
397 int extraTokenCheck(int atom, TPpToken* ppToken, int token);
398 int eval(int token, int precedence, bool shortCircuit, int& res, bool& err, TPpToken * ppToken);
399 int evalToToken(int token, bool shortCircuit, int& res, bool& err, TPpToken * ppToken);
[all …]
/external/deqp-deps/glslang/hlsl/
DhlslScanContext.cpp485 TPpToken ppToken; in tokenizeClass() local
486 int token = ppContext.tokenize(ppToken); in tokenizeClass()
490 tokenText = ppToken.name; in tokenizeClass()
491 loc = ppToken.loc; in tokenizeClass()
551 case PpAtomConstInt: parserToken->i = ppToken.ival; return EHTokIntConstant; in tokenizeClass()
552 … case PpAtomConstUint: parserToken->i = ppToken.ival; return EHTokUintConstant; in tokenizeClass()
553 … case PpAtomConstFloat16: parserToken->d = ppToken.dval; return EHTokFloat16Constant; in tokenizeClass()
554 … case PpAtomConstFloat: parserToken->d = ppToken.dval; return EHTokFloatConstant; in tokenizeClass()
555 … case PpAtomConstDouble: parserToken->d = ppToken.dval; return EHTokDoubleConstant; in tokenizeClass()
DhlslScanContext.h100 TPpToken* ppToken; variable
/external/deqp-deps/glslang/glslang/MachineIndependent/
DScan.cpp770 TPpToken ppToken; in tokenize() local
771 int token = pp->tokenize(ppToken); in tokenize()
775 tokenText = ppToken.name; in tokenize()
776 loc = ppToken.loc; in tokenize()
838 …case PpAtomConstInt: parserToken->sType.lex.i = ppToken.ival; return INTCONSTAN… in tokenize()
839 …case PpAtomConstUint: parserToken->sType.lex.i = ppToken.ival; return UINTCONSTA… in tokenize()
840 …case PpAtomConstInt16: parserToken->sType.lex.i = ppToken.ival; return INT16CONST… in tokenize()
841 …case PpAtomConstUint16: parserToken->sType.lex.i = ppToken.ival; return UINT16CONS… in tokenize()
842 …case PpAtomConstInt64: parserToken->sType.lex.i64 = ppToken.i64val; return INT64CONST… in tokenize()
843 …case PpAtomConstUint64: parserToken->sType.lex.i64 = ppToken.i64val; return UINT64CONS… in tokenize()
[all …]
DScanContext.h87 TPpToken* ppToken; variable
DShaderLang.cpp1040 glslang::TPpToken ppToken; in operator ()() local
1113 int token = ppContext.tokenize(ppToken); in operator ()()
1118 bool isNewLine = lineSync.syncToLine(ppToken.loc.line); in operator ()()
1124 outputBuffer += std::string(ppToken.loc.column - 1, ' '); in operator ()()
1139 outputBuffer += ppToken.name; in operator ()()
/external/sqlite/dist/orig/
Dsqlite3.c148362 const char **ppToken, int *pnBytes, /* OUT: Normalized text for token */
158354 const char **ppToken, /* OUT: *ppToken is the token text */
158394 *ppToken = c->pToken;
172034 const char **ppToken, /* OUT: *ppToken is the token text */
172085 *ppToken = pCsr->zBuffer;
/external/sqlite/dist/
Dsqlite3.c148378 const char **ppToken, int *pnBytes, /* OUT: Normalized text for token */
158382 const char **ppToken, /* OUT: *ppToken is the token text */
158422 *ppToken = c->pToken;
172062 const char **ppToken, /* OUT: *ppToken is the token text */
172113 *ppToken = pCsr->zBuffer;