Home
last modified time | relevance | path

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

/third_party/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.cpp112 int TPpContext::lFloatConst(int len, int ch, TPpToken* ppToken) in lFloatConst() argument
116 ppToken->name[len++] = static_cast<char>(ch); in lFloatConst()
121 while (startNonZero < len && ppToken->name[startNonZero] == '0') in lFloatConst()
124 while (endNonZero > startNonZero && ppToken->name[endNonZero-1] == '0') in lFloatConst()
133 wholeNumber = wholeNumber * 10 + (ppToken->name[i] - '0'); in lFloatConst()
149 (len == 2 && ppToken->name[0] != '1') || in lFloatConst()
150 … (len == 3 && ppToken->name[1] != '1' && !(ppToken->name[0] == '-' || ppToken->name[0] == '+')) || in lFloatConst()
152 parseContext.ppError(ppToken->loc, "unexpected use of", "#", ""); in lFloatConst()
158 parseContext.ppError(ppToken->loc, "expected 'INF'", "#", ""); in lFloatConst()
164 ppToken->name[len] = '\0'; in lFloatConst()
[all …]
DPpTokens.cpp104 void TPpContext::TokenStream::putToken(int atom, TPpToken* ppToken) in putToken() argument
106 TokenStream::Token streamToken(atom, *ppToken); in putToken()
111 int TPpContext::TokenStream::getToken(TParseContextBase& parseContext, TPpToken *ppToken) in getToken() argument
116 int atom = stream[currentPos++].get(*ppToken); in getToken()
117 ppToken->loc = parseContext.getCurrentLoc(); in getToken()
123 parseContext.requireProfile(ppToken->loc, ~EEsProfile, "token pasting (##)"); in getToken()
124 parseContext.profileRequires(ppToken->loc, ~EEsProfile, 130, 0, "token pasting (##)"); in getToken()
204 int TPpContext::tUngotTokenInput::scan(TPpToken* ppToken) in scan() argument
210 *ppToken = lval; in scan()
216 void TPpContext::UngetToken(int token, TPpToken* ppToken) in UngetToken() argument
[all …]
DPpContext.h205 int tokenize(TPpToken& ppToken);
255 Token(int atom, const TPpToken& ppToken) : in Token() argument
257 space(ppToken.space), in Token()
258 i64val(ppToken.i64val), in Token()
259 name(ppToken.name) { } in Token()
260 int get(TPpToken& ppToken) in get() argument
262 ppToken.clear(); in get()
263 ppToken.space = space; in get()
264 ppToken.i64val = i64val; in get()
265 snprintf(ppToken.name, sizeof(ppToken.name), "%s", name.c_str()); in get()
[all …]
/third_party/glslang/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
/third_party/glslang/glslang/MachineIndependent/
DScan.cpp786 TPpToken ppToken; in tokenize() local
787 int token = pp->tokenize(ppToken); in tokenize()
791 tokenText = ppToken.name; in tokenize()
792 loc = ppToken.loc; in tokenize()
855 …case PpAtomConstInt: parserToken->sType.lex.i = ppToken.ival; return INTCONSTAN… in tokenize()
856 …case PpAtomConstUint: parserToken->sType.lex.i = ppToken.ival; return UINTCONSTA… in tokenize()
857 …case PpAtomConstFloat: parserToken->sType.lex.d = ppToken.dval; return FLOATCONST… in tokenize()
859 …case PpAtomConstInt16: parserToken->sType.lex.i = ppToken.ival; return INT16CONST… in tokenize()
860 …case PpAtomConstUint16: parserToken->sType.lex.i = ppToken.ival; return UINT16CONS… in tokenize()
861 …case PpAtomConstInt64: parserToken->sType.lex.i64 = ppToken.i64val; return INT64CONST… in tokenize()
[all …]
DScanContext.h87 TPpToken* ppToken; variable
DShaderLang.cpp1098 glslang::TPpToken ppToken; in operator ()() local
1171 int token = ppContext.tokenize(ppToken); in operator ()()
1176 bool isNewLine = lineSync.syncToLine(ppToken.loc.line); in operator ()()
1182 outputBuffer += std::string(ppToken.loc.column - 1, ' '); in operator ()()
1197 outputBuffer += ppToken.name; in operator ()()
/third_party/sqlite/src/
Dsqlite3.c172845 const char **ppToken, int *pnBytes, /* OUT: Normalized text for token */
183007 const char **ppToken, /* OUT: *ppToken is the token text */
183047 *ppToken = c->pToken;
201762 const char **ppToken, /* OUT: *ppToken is the token text */
201813 *ppToken = pCsr->zBuffer;