/external/selinux/libsepol/cil/src/ |
H A D | cil_parser.c | 105 struct token tok; local 109 cil_lexer_next(&tok); 110 hll_type = cil_strpool_add(tok.value); 119 create_node(&node, *current, tok.line, *hll_lineno, NULL); 123 create_node(&node, *current, tok.line, *hll_lineno, CIL_KEY_SRC_INFO); 126 create_node(&node, *current, tok.line, *hll_lineno, CIL_KEY_SRC_HLL); 138 cil_lexer_next(&tok); 139 if (tok.type != SYMBOL) { 143 *hll_lineno = strtol(tok.value, &end, 10); 151 cil_lexer_next(&tok); 211 struct token tok; local [all...] |
/external/selinux/libsepol/src/ |
H A D | genbools.c | 37 char *tok = strtok_r(buffer, "=", &ptr); local 38 if (tok) { 39 strncpy(name1, tok, BUFSIZ - 1); 43 tok = strtok_r(NULL, "\0", &ptr); 44 if (tok) { 45 while (isspace(*tok)) 46 tok++; 48 if (isdigit(tok[0])) 49 *val = atoi(tok); 50 else if (!strncasecmp(tok, "tru [all...] |
/external/skia/third_party/harfbuzz/ |
H A D | 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, [all...] |
/external/tcpdump/ |
H A D | print-llc.c | 40 static const struct tok llc_values[] = { 59 static const struct tok llc_cmd_values[] = { 71 static const struct tok llc_flag_values[] = { 82 static const struct tok llc_ig_flag_values[] = { 89 static const struct tok llc_supervisory_values[] = { 97 static const struct tok cisco_values[] = { 107 static const struct tok bridged_values[] = { 122 static const struct tok null_values[] = { 128 const struct tok *tok; member in struct:oui_tok 382 const struct tok *tok = null_values; local [all...] |
/external/antlr/antlr-3.4/runtime/C/src/ |
H A D | antlr3lexer.c | 332 pANTLR3_COMMON_TOKEN tok; local 336 tok = nextTokenStr(toksource); 351 while (tok->type == ANTLR3_TOKEN_EOF) 364 tok = nextTokenStr(toksource); 380 return tok;
|
H A D | antlr3tokenstream.c | 539 pANTLR3_COMMON_TOKEN tok; local 566 tok = ts->get(ts, i); 567 if (tok != NULL) 569 string->appendS(string, tok->getText(tok)); 725 pANTLR3_COMMON_TOKEN tok; local 748 tok = tokenStream->tstream->get(tokenStream->tstream, i); 751 || types->isMember(types, tok->getType(tok) == ANTLR3_TRUE) 754 filteredList->put(filteredList, n++, (void *)tok, NUL 803 pANTLR3_COMMON_TOKEN tok; local 952 pANTLR3_COMMON_TOKEN tok; local 1034 pANTLR3_COMMON_TOKEN tok; local 1057 pANTLR3_COMMON_TOKEN tok; local [all...] |
/external/clang/unittests/Basic/ |
H A D | SourceManagerTest.cpp | 92 Token tok; local 93 PP.Lex(tok); 94 if (tok.is(tok::eof)) 96 toks.push_back(tok); 101 ASSERT_EQ(tok::l_square, toks[0].getKind()); 102 ASSERT_EQ(tok::identifier, toks[1].getKind()); 103 ASSERT_EQ(tok::r_square, toks[2].getKind()); 212 Token tok; local 213 PP.Lex(tok); 316 Token tok; local [all...] |
/external/clang/unittests/Lex/ |
H A D | LexerTest.cpp | 77 Token tok; local 78 PP.Lex(tok); 79 if (tok.is(tok::eof)) 81 toks.push_back(tok); 88 ArrayRef<tok::TokenKind> ExpectedTokens) { 120 std::vector<tok::TokenKind> ExpectedTokens; 121 ExpectedTokens.push_back(tok::identifier); 122 ExpectedTokens.push_back(tok::l_paren); 123 ExpectedTokens.push_back(tok [all...] |
/external/icu/icu4c/source/common/ |
H A D | uvectr32.cpp | 303 void UVector32::sortedInsert(int32_t tok, UErrorCode& ec) { argument 304 // Perform a binary search for the location to insert tok at. Tok 306 // tok && tok < b, where there is a 'virtual' elements[-1] always 307 // less than tok and a 'virtual' elements[count] always greater 308 // than tok. 312 //int8_t c = (*compare)(elements[probe], tok); 314 if (elements[probe] > tok) { 325 elements[min] = tok;
|
/external/iproute2/misc/ |
H A D | lnstat.c | 275 char *tmp, *tok; local 301 for (tok = strtok(tmp, ","); 302 tok; 303 tok = strtok(NULL, ",")) { 311 fp.params[fp.num++].name = tok; 322 for (tok = strtok(tmp, ","); 323 tok; 324 tok = strtok(NULL, ",")) { 325 len = strtoul(tok, NULL, 0);
|
/external/iw/ |
H A D | wowlan.c | 131 } else if (strncmp(buf, "data.tok=", 9) == 0) { 132 struct nl80211_wowlan_tcp_data_token *tok; local 152 tok = malloc(sizeof(*tok) + stream_len); 153 if (!tok) { 159 tok->len = atoi(len); 160 tok->offset = atoi(offs); 161 memcpy(tok->token_stream, stream, stream_len); 164 sizeof(*tok) + stream_len, tok); [all...] |
/external/jsmn/ |
H A D | jsmn_test.c | 117 jsmntok_t tok[10]; local 122 r = jsmn_parse(&p, js, strlen(js), tok, 10); 123 check(r >= 0 && tok[0].type == JSMN_STRING 124 && tok[1].type == JSMN_PRIMITIVE); 125 check(TOKEN_STRING(js, tok[0], "boolVar")); 126 check(TOKEN_STRING(js, tok[1], "true")); 130 r = jsmn_parse(&p, js, strlen(js), tok, 10); 131 check(r >= 0 && tok[0].type == JSMN_STRING 132 && tok[1].type == JSMN_PRIMITIVE); 133 check(TOKEN_STRING(js, tok[ 166 jsmntok_t tok[10]; local 199 jsmntok_t tok[10]; local 239 jsmntok_t tok[10]; local 260 jsmntok_t tok[10]; local [all...] |
/external/libedit/examples/ |
H A D | wtc1.c | 113 TokenizerW *tok; local 131 tok = tok_winit(NULL); /* Init the tokenizer */ 182 ncontinuation = tok_wline(tok, li, &ac, &av, &cc, &co); 266 tok_wreset(tok); 270 tok_wend(tok);
|
/external/libnl/lib/route/ |
H A D | classid.c | 340 char *ptr, *tok; local 347 if (!(tok = strtok_r(buf, " \t", &ptr))) { 352 if ((err = rtnl_tc_str2handle(tok, &classid)) < 0) 355 if (!(tok = strtok_r(NULL, " \t\n\r#", &ptr))) { 360 if ((err = classid_map_add(classid, tok)) < 0)
|
/external/ltp/testcases/kernel/syscalls/ipc/semctl/ |
H A D | semctl06.c | 292 char *tok; local 295 tok = strtok(maxsemstring, ":"); 297 if (strlen(tok) == 0) { 301 maxsemvals[i] = strtol(tok, &endptr, 10); 305 tok = strtok(NULL, ":");
|
/external/mdnsresponder/mDNSWindows/ControlPanel/ |
H A D | SecondPage.cpp | 402 CString tok; local 404 tok = string.SpanExcluding( L"," ); 406 box.AddString( tok ); 408 if ( tok != string ) 412 string = string.Right( string.GetLength() - tok.GetLength() - 1 );
|
/external/openssh/ |
H A D | gss-serv.c | 219 u_char *tok; local 223 tok = ename->value; 230 if (ename->length < 6 || memcmp(tok, "\x04\x01", 2) != 0) 240 oidl = get_u16(tok+2); /* length including next two bytes */ 247 if (tok[4] != 0x06 || tok[5] != oidl || 249 !ssh_gssapi_check_oid(ctx, tok+6, oidl)) 257 name->length = get_u32(tok+offset); 266 memcpy(name->value, tok+offset, name->length);
|
/external/owasp/sanitizer/src/main/org/owasp/html/ |
H A D | HtmlLexer.java | 190 HtmlToken tok = peekToken(nToMerge + 1); 191 if (tok == null) { break; } 192 if (tok.type != HtmlTokenType.TEXT) { break; } 193 if (isValuelessAttribute(input.substring(tok.start, tok.end))) { 716 private HtmlToken tok; field in class:AbstractTokenStream 719 if (tok == null) { tok = produce(); } 720 return tok != null; 724 if (this.tok [all...] |
/external/selinux/libselinux/src/ |
H A D | booleans.c | 345 char *tok = strtok_r(buffer, "=", &ptr); local 346 if (tok) { 347 strncpy(name1, tok, BUFSIZ - 1); 351 tok = strtok_r(NULL, "\0", &ptr); 352 if (tok) { 353 while (isspace(*tok)) 354 tok++; 356 if (isdigit(tok[0])) 357 *val = atoi(tok); 358 else if (!strncasecmp(tok, "tru [all...] |
/external/toybox/toys/pending/ |
H A D | expr.c | 60 char **tok; // current token, not on the stack since recursive calls mutate it 135 char *tok; member in struct:op_def 214 if (!*TT.tok) error_exit("Unexpected end of input"); 217 if (!strcmp(*TT.tok, "(")) { // parenthesized expression 218 TT.tok++; // consume ( 222 if (!*TT.tok) error_exit("Expected )"); 223 if (strcmp(*TT.tok, ")")) error_exit("Expected ) but got %s", *TT.tok); 224 } else ret->s = *TT.tok; // simple literal, all values start as strings 225 TT.tok [all...] |
/external/clang/include/clang/AST/ |
H A D | CommentLexer.h | 33 namespace tok { namespace in namespace:clang::comments 54 } // end namespace tok 65 tok::TokenKind Kind; 91 tok::TokenKind getKind() const LLVM_READONLY { return Kind; } 92 void setKind(tok::TokenKind K) { Kind = K; } 94 bool is(tok::TokenKind K) const LLVM_READONLY { return Kind == K; } 95 bool isNot(tok::TokenKind K) const LLVM_READONLY { return Kind != K; } 101 assert(is(tok::text)); 106 assert(is(tok::text)); 112 assert(is(tok [all...] |
/external/e2fsprogs/debugfs/ |
H A D | util.c | 519 char *tok, *p = str; local 522 while ((tok = strtok(p, ","))) { 528 y = x = strtoull(tok, &e, 0);
|
/external/expat/lib/ |
H A D | xmltok_impl.c | 242 int tok; local 255 if (!PREFIX(checkPiTarget)(enc, target, ptr, &tok)) { 268 return tok; 278 if (!PREFIX(checkPiTarget)(enc, target, ptr, &tok)) { 286 return tok; 613 int tok = PREFIX(scanRef)(enc, ptr + MINBPC(enc), end, &ptr); local 614 if (tok <= 0) { 615 if (tok == XML_TOK_INVALID) 617 return tok; 970 int tok; local 1277 int tok = PREFIX(scanPercent)(enc, ptr + MINBPC(enc), local [all...] |
/external/libxml2/ |
H A D | threads.c | 191 xmlMutexPtr tok; local 193 if ((tok = malloc(sizeof(xmlMutex))) == NULL) 197 pthread_mutex_init(&tok->lock, NULL); 199 tok->mutex = CreateMutex(NULL, FALSE, NULL); 201 if ((tok->sem = create_sem(1, "xmlMutex")) < B_OK) { 202 free(tok); 205 tok->tid = -1; 207 return (tok); 212 * @tok: the simple mutex 218 xmlFreeMutex(xmlMutexPtr tok) argument 241 xmlMutexLock(xmlMutexPtr tok) argument 269 xmlMutexUnlock(xmlMutexPtr tok) argument 299 xmlRMutexPtr tok; local 355 xmlRMutexLock(xmlRMutexPtr tok) argument [all...] |
/external/ltp/lib/ |
H A D | random_range.c | 105 char *tmpstr, *cp, *tok, *n1str, *n2str, *multstr; local 127 tok = strtok(tmpstr, ","); 128 while (tok != NULL) { 129 n1str = tok; 203 tok = strtok(NULL, ",");
|