/external/libxml2/ |
threads.c | 190 xmlMutexPtr tok; local 192 if ((tok = malloc(sizeof(xmlMutex))) == NULL) 196 pthread_mutex_init(&tok->lock, NULL); 198 tok->mutex = CreateMutex(NULL, FALSE, NULL); 200 if ((tok->sem = create_sem(1, "xmlMutex")) < B_OK) { 201 free(tok); 204 tok->tid = -1; 206 return (tok); 211 * @tok: the simple mutex 217 xmlFreeMutex(xmlMutexPtr tok) 299 xmlRMutexPtr tok; local [all...] |
/external/harfbuzz_ng/src/ |
hb-buffer-deserialize-text.rl | 51 action tok { 52 tok = p; 57 tok, p - tok, 62 action parse_cluster { if (!parse_uint (tok, p, &info.cluster )) return false; } 63 action parse_x_offset { if (!parse_int (tok, p, &pos.x_offset )) return false; } 64 action parse_y_offset { if (!parse_int (tok, p, &pos.y_offset )) return false; } 65 action parse_x_advance { if (!parse_int (tok, p, &pos.x_advance)) return false; } 66 action parse_y_advance { if (!parse_int (tok, p, &pos.y_advance)) return false; } 74 glyph = (glyph_id | glyph_name) >tok %parse_glyph [all...] |
hb-buffer-deserialize-text.hh | 337 const char *eof = pe, *tok = NULL; local 375 tok = p; 382 tok, p - tok, 389 { if (!parse_uint (tok, p, &info.cluster )) return false; } 393 { if (!parse_int (tok, p, &pos.x_offset )) return false; } 397 { if (!parse_int (tok, p, &pos.y_offset )) return false; } 401 { if (!parse_int (tok, p, &pos.x_advance)) return false; } 411 tok = p; 418 tok, p - tok [all...] |
/external/tcpdump/ |
af.h | 20 extern struct tok af_values[]; 21 extern struct tok bsd_af_values[];
|
af.c | 31 struct tok af_values[] = { 53 struct tok bsd_af_values[] = {
|
/external/clang/lib/Parse/ |
ParseDeclCXX.cpp | 56 assert(Tok.is(tok::kw_namespace) && "Not a namespace!"); 60 if (Tok.is(tok::code_completion)) { 74 if (Tok.is(tok::identifier)) { 75 Ident = Tok.getIdentifierInfo(); 77 while (Tok.is(tok::coloncolon) && NextToken().is(tok::identifier)) [all...] |
ParseCXXInlineMethods.cpp | 40 assert((Tok.is(tok::l_brace) || Tok.is(tok::colon) || Tok.is(tok::kw_try) || 41 Tok.is(tok::equal)) && 74 if (Tok.is(tok::equal)) [all...] |
ParseStmt.cpp | 112 tok::TokenKind Kind = Tok.getKind(); 115 case tok::at: // May be a @try or @throw statement 122 case tok::code_completion: 127 case tok::identifier: { 129 if (Next.is(tok::colon)) { // C99 6.8.1: labeled-statement 136 if (Next.isNot(tok::coloncolon)) { 143 Next.is(tok::l_paren) || Next.is(tok::less) || 144 Next.is(tok::identifier) || Next.is(tok::star) | [all...] |
Parser.cpp | 57 Tok.startToken(); 58 Tok.setKind(tok::eof); 110 DiagnosticBuilder Parser::Diag(const Token &Tok, unsigned DiagID) { 111 return Diag(Tok.getLocation(), DiagID); 135 static bool IsCommonTypo(tok::TokenKind ExpectedTok, const Token &Tok) { 137 case tok::semi: 138 return Tok.is(tok::colon) || Tok.is(tok::comma); // : or , for [all...] |
ParseExprCXX.cpp | 26 static int SelectDigraphErrorMessage(tok::TokenKind Kind) { 28 case tok::kw_template: return 0; 29 case tok::kw_const_cast: return 1; 30 case tok::kw_dynamic_cast: return 2; 31 case tok::kw_reinterpret_cast: return 3; 32 case tok::kw_static_cast: return 4; 48 Token &ColonToken, tok::TokenKind Kind, bool AtDigraph) { 62 ColonToken.setKind(tok::coloncolon); 65 DigraphToken.setKind(tok::less); 79 if (!Next.is(tok::l_square) || Next.getLength() != 2 [all...] |
/external/clang/lib/AST/ |
CommentParser.cpp | 21 /// Re-lexes a sequence of tok::text tokens. 51 const Token &Tok = Toks[Pos.CurToken]; 53 Pos.BufferStart = Tok.getText().begin(); 54 Pos.BufferEnd = Tok.getText().end(); 56 Pos.BufferStartLoc = Tok.getLocation(); 91 if (P.Tok.is(tok::newline)) { 93 Token Newline = P.Tok; 95 if (P.Tok.isNot(tok::text)) [all...] |
/external/clang/lib/Format/ |
TokenAnnotator.h | 82 bool is(tok::TokenKind Kind) const { return FormatTok.Tok.is(Kind); } 84 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2) const { 88 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2, tok::TokenKind K3) const { 93 tok::TokenKind K1, tok::TokenKind K2, tok::TokenKind K3 [all...] |
/bionic/libc/string/ |
strtok.c | 45 char *tok; local 65 tok = s - 1; 81 return (tok);
|
/external/clang/include/clang/Lex/ |
PTHLexer.h | 71 void Lex(Token &Tok); 73 void getEOF(Token &Tok); 80 /// tok::l_paren token, 0 if it is something else and 2 if there are no more 84 // whether or not we are at a token with kind tok::eof or tok::l_paren. 87 tok::TokenKind x = (tok::TokenKind)*CurPtr; 88 return x == tok::eof ? 2 : x == tok::l_paren;
|
Token.h | 83 tok::TokenKind getKind() const { return (tok::TokenKind)Kind; } 84 void setKind(tok::TokenKind K) { Kind = K; } 87 /// "if (Tok.is(tok::l_brace)) {...}". 88 bool is(tok::TokenKind K) const { return Kind == (unsigned) K; } 89 bool isNot(tok::TokenKind K) const { return Kind != (unsigned) K; } 94 return tok::isAnyIdentifier(getKind()); 100 return tok::isLiteral(getKind()); 103 /// \brief Return true if this is any of tok::annot_* kind tokens [all...] |
LiteralSupport.h | 139 tok::TokenKind Kind; 147 tok::TokenKind kind); 150 bool isAscii() const { return Kind == tok::char_constant; } 151 bool isWide() const { return Kind == tok::wide_char_constant; } 152 bool isUTF16() const { return Kind == tok::utf16_char_constant; } 153 bool isUTF32() const { return Kind == tok::utf32_char_constant; } 175 tok::TokenKind Kind; 188 MaxTokenLength(0), SizeBound(0), CharByteWidth(0), Kind(tok::unknown), 213 bool isAscii() const { return Kind == tok::string_literal; } 214 bool isWide() const { return Kind == tok::wide_string_literal; [all...] |
/system/extras/su/ |
su.c | 35 void pwtoid(const char *tok, uid_t *uid, gid_t *gid) 38 pw = getpwnam(tok); 43 uid_t tmpid = atoi(tok); 54 char *tok; local 65 tok = strsep(&nexttok, ","); 66 pwtoid(tok, uid, gid); 67 tok = strsep(&nexttok, ","); 68 if (!tok) { 74 pwtoid(tok, NULL, gid); 76 while ((gids_found < *gids_count) && (tok = strsep(&nexttok, ","))) [all...] |
/external/clang/lib/ARCMigrate/ |
Transforms.cpp | 160 Token tok; local 161 lexer.LexFromRawLexer(tok); 162 if (tok.isNot(tok::semi)) 165 return tok.getLocation(); 406 Token tok; local 407 lexer.LexFromRawLexer(tok); 408 if (tok.isNot(tok::at)) return false; 409 lexer.LexFromRawLexer(tok); 489 Token tok; local [all...] |
/external/libxml2/include/libxml/ |
threads.h | 42 xmlMutexLock (xmlMutexPtr tok); 44 xmlMutexUnlock (xmlMutexPtr tok); 46 xmlFreeMutex (xmlMutexPtr tok); 51 xmlRMutexLock (xmlRMutexPtr tok); 53 xmlRMutexUnlock (xmlRMutexPtr tok); 55 xmlFreeRMutex (xmlRMutexPtr tok);
|
/external/clang/lib/Lex/ |
PPExpressions.cpp | 92 if (PeekTok.is(tok::l_paren)) { 98 if (PeekTok.is(tok::code_completion)) { 137 if (PeekTok.isNot(tok::r_paren)) { 169 if (PeekTok.is(tok::code_completion)) { 189 II->getTokenID() != tok::kw_true && 190 II->getTokenID() != tok::kw_false) 192 Result.Val = II->getTokenID() == tok::kw_true; 203 case tok::eod: 204 case tok::r_paren: 208 case tok::numeric_constant: [all...] |
Lexer.cpp | 48 bool Token::isObjCAtKeyword(tok::ObjCKeywordKind objcKey) const { 55 tok::ObjCKeywordKind Token::getObjCKeywordID() const { 57 return specId ? specId->getObjCKeywordID() : tok::objc_not_keyword; 245 static size_t getSpellingSlow(const Token &Tok, const char *BufPtr, 247 assert(Tok.needsCleaning() && "getSpellingSlow called on simple token"); 250 const char *BufEnd = BufPtr + Tok.getLength(); 252 if (Tok.is(tok::string_literal)) { 289 assert(Length < Tok.getLength() && 340 std::string Lexer::getSpelling(const Token &Tok, const SourceManager &SourceMgr [all...] |
/device/generic/goldfish/gps/ |
gps_qemu.c | 119 Token tok; local 123 tok.p = tok.end = dummy; 125 tok = t->tokens[index]; 127 return tok; 251 nmea_reader_update_time( NmeaReader* r, Token tok ) 258 if (tok.p + 6 > tok.end) 270 hour = str2int(tok.p, tok.p+2) 290 Token tok = date; local 333 Token tok; local 366 Token tok = altitude; local 382 Token tok = bearing; local 398 Token tok = speed; local 426 Token tok; local 440 Token tok = nmea_tokenizer_get(tzer,n); local [all...] |
/frameworks/compile/slang/ |
slang_rs_pragma_handler.cpp | 89 // Now, the current token must be clang::tok::lpara 90 if (PragmaToken.isNot(clang::tok::l_paren)) 93 while (PragmaToken.isNot(clang::tok::eod)) { 103 if (PragmaToken.is(clang::tok::eod) || PragmaToken.is(clang::tok::eof)) { 108 if (NextTok.is(clang::tok::r_paren)) { 111 // Lex until meets clang::tok::eod 114 } while (PragmaToken.isNot(clang::tok::eod)); 144 clang::Token &Tok, 147 PP.Diag(Tok, [all...] |
/bionic/libc/upstream-freebsd/lib/libc/string/ |
wcstok.c | 45 wchar_t *tok; local 65 tok = s - 1; 81 return (tok);
|
/external/clang/unittests/Basic/ |
SourceManagerTest.cpp | 86 Token tok; local 87 PP.Lex(tok); 88 if (tok.is(tok::eof)) 90 toks.push_back(tok); 95 ASSERT_EQ(tok::l_square, toks[0].getKind()); 96 ASSERT_EQ(tok::identifier, toks[1].getKind()); 97 ASSERT_EQ(tok::r_square, toks[2].getKind()); 201 Token tok; local 202 PP.Lex(tok); 303 Token tok; local [all...] |