Home
last modified time | relevance | path

Searched refs:token (Results 1 – 5 of 5) sorted by relevance

/redis-3.2.3/deps/lua/src/
H A Dlua_cjson.c880 token->type = T_ERROR; in json_set_token_error()
941 token->type = T_STRING; in json_next_string_token()
942 token->value.string = strbuf_string(json->tmp, &token->string_len); in json_next_string_token()
1000 token->type = T_NUMBER; in json_next_number_token()
1137 json_token_t token; in json_parse_object_context() local
1158 lua_pushlstring(l, token.value.string, token.string_len); in json_parse_object_context()
1188 json_token_t token; in json_parse_array_context() local
1227 switch (token->type) { in json_process_value()
1229 lua_pushlstring(l, token->value.string, token->string_len); in json_process_value()
1256 json_token_t token; in json_decode() local
[all …]
H A Dllex.c78 const char *luaX_token2str (LexState *ls, int token) { in luaX_token2str() argument
79 if (token < FIRST_RESERVED) { in luaX_token2str()
80 lua_assert(token == cast(unsigned char, token)); in luaX_token2str()
81 return (iscntrl(token)) ? luaO_pushfstring(ls->L, "char(%d)", token) : in luaX_token2str()
85 return luaX_tokens[token-FIRST_RESERVED]; in luaX_token2str()
89 static const char *txtToken (LexState *ls, int token) { in txtToken() argument
90 switch (token) { in txtToken()
97 return luaX_token2str(ls, token); in txtToken()
106 if (token) in luaX_lexerror()
113 luaX_lexerror(ls, msg, ls->t.token); in luaX_syntaxerror()
[all …]
H A Dlparser.c58 if (ls->t.token == TK_NAME || ls->t.token == TK_STRING) { in anchor_token()
81 if (ls->t.token == c) { in testnext()
90 if (ls->t.token != c) in check()
514 switch(ls->t.token) { in constructor()
614 switch (ls->t.token) { in funcargs()
669 switch (ls->t.token) { in prefixexp()
730 switch (ls->t.token) { in simpleexp()
872 switch (token) { in block_follow()
1120 switch (ls->t.token) { in forstat()
1244 if (block_follow(ls->t.token) || ls->t.token == ';') in retstat()
[all …]
H A Dllex.h50 int token; member
76 LUAI_FUNC void luaX_lexerror (LexState *ls, const char *msg, int token);
78 LUAI_FUNC const char *luaX_token2str (LexState *ls, int token);
/redis-3.2.3/src/
H A Dsentinel.c2333 master = sentinelGetMasterByName(token[4]); in sentinelProcessHelloMessage()
2337 port = atoi(token[1]); in sentinelProcessHelloMessage()
2338 master_port = atoi(token[6]); in sentinelProcessHelloMessage()
2340 master->sentinels,token[0],port,token[2]); in sentinelProcessHelloMessage()
2341 current_epoch = strtoull(token[3],NULL,10); in sentinelProcessHelloMessage()
2342 master_config_epoch = strtoull(token[7],NULL,10); in sentinelProcessHelloMessage()
2351 "%@ ip %s port %d for %s", token[0],port,token[2]); in sentinelProcessHelloMessage()
2376 si->runid = sdsnew(token[2]); in sentinelProcessHelloMessage()
2395 strcmp(master->addr->ip, token[5])) in sentinelProcessHelloMessage()
2404 token[5], master_port); in sentinelProcessHelloMessage()
[all …]