Lines Matching refs:x
771 int x = luaL_checkinteger(L, 2); in mcplib_request_token_int() local
773 if (x < 1 || x > rq->pr.ntokens) { in mcplib_request_token_int()
781 const char *s = rq->pr.request + rq->pr.tokens[x-1]; in mcplib_request_token_int()
782 vlen = _process_token_len(&rq->pr, x-1); in mcplib_request_token_int()
859 for (int x = rq->pr.keytoken+1; x < rq->pr.ntokens; x++) { in mcplib_request_flag_token() local
860 const char *s = rq->pr.request + rq->pr.tokens[x]; in mcplib_request_flag_token()
862 size_t vlen = _process_token_len(&rq->pr, x); in mcplib_request_flag_token()
873 if (mcp_request_render(rq, x, 0, newtok, newlen) != 0) { in mcplib_request_flag_token()
909 for (int x = rq->pr.keytoken+1; x < rq->pr.ntokens; x++) { in mcplib_request_flag_token_int() local
910 const char *s = rq->pr.request + rq->pr.tokens[x]; in mcplib_request_flag_token_int()
912 size_t vlen = _process_token_len(&rq->pr, x); in mcplib_request_flag_token_int()
1017 int x = mcp_request_find_flag_index(rq, flag); in mcplib_request_flag_set() local
1021 if (x > 0) { in mcplib_request_flag_set()
1025 if (mcp_request_render(rq, x, flag, token, tlen) != 0) { in mcplib_request_flag_set()
1049 int x = mcp_request_find_flag_index(rq, flag); in mcplib_request_flag_replace() local
1053 if (x > 0) { in mcplib_request_flag_replace()
1054 if (mcp_request_render(rq, x, newflag, token, tlen) != 0) { in mcplib_request_flag_replace()
1075 int x = mcp_request_find_flag_index(rq, flag); in mcplib_request_flag_del() local
1077 if (x > 0) { in mcplib_request_flag_del()
1078 if (mcp_request_render(rq, x, 0, NULL, 0) != 0) { in mcplib_request_flag_del()
1197 for (int x = rq->pr.keytoken+1; x < rq->pr.ntokens; x++) { in _mcp_request_find_flag() local
1198 const char *s = rq->pr.request + rq->pr.tokens[x]; in _mcp_request_find_flag()
1200 return x; in _mcp_request_find_flag()
1208 int x = _mcp_request_find_flag(rq, flag); in mcp_request_find_flag_index() local
1209 return x; in mcp_request_find_flag_index()
1213 int x = _mcp_request_find_flag(rq, flag); in mcp_request_find_flag_token() local
1214 if (x > 0) { in mcp_request_find_flag_token()
1215 size_t tlen = _process_token_len(&rq->pr, x); in mcp_request_find_flag_token()
1217 *token = rq->pr.request + rq->pr.tokens[x] +1; in mcp_request_find_flag_token()
1223 return x; in mcp_request_find_flag_token()
1229 for (int x = rq->pr.keytoken+1; x < rq->pr.ntokens; x++) { in mcp_request_find_flag_tokenint64() local
1230 const char *s = rq->pr.request + rq->pr.tokens[x]; in mcp_request_find_flag_tokenint64()
1232 size_t vlen = _process_token_len(&rq->pr, x); in mcp_request_find_flag_tokenint64()