Lines Matching refs:flag

491 int mcp_request_render(mcp_request_t *rq, int idx, const char flag, const char *tok, size_t len) {  in mcp_request_render()  argument
507 if (flag) { in mcp_request_render()
508 *p = flag; in mcp_request_render()
518 if (flag || len != 0) { in mcp_request_render()
553 int mcp_request_append(mcp_request_t *rq, const char flag, const char *tok, size_t len) { in mcp_request_append() argument
566 if (flag) { in mcp_request_append()
567 *p = flag; in mcp_request_append()
988 char flag = _mcp_request_get_arg_flag(L, 2); in mcplib_request_flag_add() local
991 uint64_t flagbit = (uint64_t)1 << (flag - 65); in mcplib_request_flag_add()
1001 if (mcp_request_append(rq, flag, token, tlen) == 0) { in mcplib_request_flag_add()
1014 char flag = _mcp_request_get_arg_flag(L, 2); in mcplib_request_flag_set() local
1017 int x = mcp_request_find_flag_index(rq, flag); in mcplib_request_flag_set()
1025 if (mcp_request_render(rq, x, flag, token, tlen) != 0) { in mcplib_request_flag_set()
1030 if (mcp_request_append(rq, flag, token, tlen) != 0) { in mcplib_request_flag_set()
1045 char flag = _mcp_request_get_arg_flag(L, 2); in mcplib_request_flag_replace() local
1049 int x = mcp_request_find_flag_index(rq, flag); in mcplib_request_flag_replace()
1073 char flag = _mcp_request_get_arg_flag(L, 2); in mcplib_request_flag_del() local
1075 int x = mcp_request_find_flag_index(rq, flag); in mcplib_request_flag_del()
1194 static int _mcp_request_find_flag(mcp_request_t *rq, const char flag) { in _mcp_request_find_flag() argument
1195 uint64_t flagbit = (uint64_t)1 << (flag - 65); in _mcp_request_find_flag()
1199 if (s[0] == flag) { in _mcp_request_find_flag()
1207 int mcp_request_find_flag_index(mcp_request_t *rq, const char flag) { in mcp_request_find_flag_index() argument
1208 int x = _mcp_request_find_flag(rq, flag); in mcp_request_find_flag_index()
1212 int mcp_request_find_flag_token(mcp_request_t *rq, const char flag, const char **token, size_t *len… in mcp_request_find_flag_token() argument
1213 int x = _mcp_request_find_flag(rq, flag); in mcp_request_find_flag_token()
1228 int mcp_request_find_flag_tokenint64(mcp_request_t *rq, const char flag, int64_t *token) { in mcp_request_find_flag_tokenint64() argument
1231 if (s[0] == flag) { in mcp_request_find_flag_tokenint64()