/third_party/glslang/glslang/MachineIndependent/preprocessor/ |
D | Pp.cpp | 96 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 …]
|
D | PpScanner.cpp | 113 int TPpContext::lFloatConst(int len, int ch, TPpToken* ppToken) in lFloatConst() argument 117 ppToken->name[len++] = static_cast<char>(ch); in lFloatConst() 122 while (startNonZero < len && ppToken->name[startNonZero] == '0') in lFloatConst() 125 while (endNonZero > startNonZero && ppToken->name[endNonZero-1] == '0') in lFloatConst() 134 wholeNumber = wholeNumber * 10 + (ppToken->name[i] - '0'); in lFloatConst() 150 (len == 2 && ppToken->name[0] != '1') || in lFloatConst() 151 … (len == 3 && ppToken->name[1] != '1' && !(ppToken->name[0] == '-' || ppToken->name[0] == '+')) || in lFloatConst() 153 parseContext.ppError(ppToken->loc, "unexpected use of", "#", ""); in lFloatConst() 159 parseContext.ppError(ppToken->loc, "expected 'INF'", "#", ""); in lFloatConst() 165 ppToken->name[len] = '\0'; in lFloatConst() [all …]
|
D | PpContext.h | 203 int tokenize(TPpToken& ppToken); 254 Token(int atom, const TPpToken& ppToken) : in Token() argument 256 space(ppToken.space), in Token() 257 i64val(ppToken.i64val), in Token() 258 name(ppToken.name) { } in Token() 259 int get(TPpToken& ppToken) in get() argument 261 ppToken.clear(); in get() 262 ppToken.space = space; in get() 263 ppToken.i64val = i64val; in get() 264 snprintf(ppToken.name, sizeof(ppToken.name), "%s", name.c_str()); in get() [all …]
|
D | PpTokens.cpp | 101 void TPpContext::TokenStream::putToken(int atom, TPpToken* ppToken) in putToken() argument 103 TokenStream::Token streamToken(atom, *ppToken); in putToken() 108 int TPpContext::TokenStream::getToken(TParseContextBase& parseContext, TPpToken *ppToken) in getToken() argument 113 int atom = stream[currentPos++].get(*ppToken); in getToken() 114 ppToken->loc = parseContext.getCurrentLoc(); in getToken() 119 parseContext.requireProfile(ppToken->loc, ~EEsProfile, "token pasting (##)"); in getToken() 120 … parseContext.profileRequires(ppToken->loc, ~EEsProfile, 130, nullptr, "token pasting (##)"); in getToken() 199 int TPpContext::tUngotTokenInput::scan(TPpToken* ppToken) in scan() argument 205 *ppToken = lval; in scan() 211 void TPpContext::UngetToken(int token, TPpToken* ppToken) in UngetToken() argument [all …]
|
/third_party/glslang/glslang/HLSL/ |
D | hlslScanContext.cpp | 566 TPpToken ppToken; in tokenizeClass() local 567 int token = ppContext.tokenize(ppToken); in tokenizeClass() 571 tokenText = ppToken.name; in tokenizeClass() 572 loc = ppToken.loc; in tokenizeClass() 632 case PpAtomConstInt: parserToken->i = ppToken.ival; return EHTokIntConstant; in tokenizeClass() 633 … case PpAtomConstUint: parserToken->i = ppToken.ival; return EHTokUintConstant; in tokenizeClass() 634 … case PpAtomConstFloat16: parserToken->d = ppToken.dval; return EHTokFloat16Constant; in tokenizeClass() 635 … case PpAtomConstFloat: parserToken->d = ppToken.dval; return EHTokFloatConstant; in tokenizeClass() 636 … case PpAtomConstDouble: parserToken->d = ppToken.dval; return EHTokDoubleConstant; in tokenizeClass()
|
D | hlslScanContext.h | 100 TPpToken* ppToken; variable
|
/third_party/glslang/glslang/MachineIndependent/ |
D | Scan.cpp | 828 TPpToken ppToken; in tokenize() local 829 int token = pp->tokenize(ppToken); in tokenize() 833 tokenText = ppToken.name; in tokenize() 834 loc = ppToken.loc; in tokenize() 897 …case PpAtomConstInt: parserToken->sType.lex.i = ppToken.ival; return INTCONSTAN… in tokenize() 898 …case PpAtomConstUint: parserToken->sType.lex.i = ppToken.ival; return UINTCONSTA… in tokenize() 899 …case PpAtomConstFloat: parserToken->sType.lex.d = ppToken.dval; return FLOATCONST… in tokenize() 900 …case PpAtomConstInt16: parserToken->sType.lex.i = ppToken.ival; return INT16CONST… in tokenize() 901 …case PpAtomConstUint16: parserToken->sType.lex.i = ppToken.ival; return UINT16CONS… in tokenize() 902 …case PpAtomConstInt64: parserToken->sType.lex.i64 = ppToken.i64val; return INT64CONST… in tokenize() [all …]
|
D | ScanContext.h | 87 TPpToken* ppToken; variable
|
D | ShaderLang.cpp | 1072 glslang::TPpToken ppToken; in operator ()() local 1146 int token = ppContext.tokenize(ppToken); in operator ()() 1151 bool isNewLine = lineSync.syncToLine(ppToken.loc.line); in operator ()() 1157 outputBuffer += std::string(ppToken.loc.column - 1, ' '); in operator ()() 1179 lastTokenName = ppToken.name; in operator ()() 1183 outputBuffer += ppToken.name; in operator ()()
|
/third_party/sqlite/src/ |
D | sqlite3.c | 178958 const char **ppToken, int *pnBytes, /* OUT: Normalized text for token */ 189135 const char **ppToken, /* OUT: *ppToken is the token text */ 189175 *ppToken = c->pToken; 207873 const char **ppToken, /* OUT: *ppToken is the token text */ 207924 *ppToken = pCsr->zBuffer;
|