Lines Matching refs:type

21         for (io_queue_t *q = c->io_queues; q->type != IO_QUEUE_NONE; q++) {  in _mcp_queue_hack()
23 io_queue_cb_t *qcb = thread_io_queue_get(c->thread, q->type); in _mcp_queue_hack()
798 int type = lua_type(L, 3); in mcplib_rcontext_enqueue() local
799 if (type == LUA_TNUMBER) { in mcplib_rcontext_enqueue()
804 } else if (type == LUA_TTABLE) { in mcplib_rcontext_enqueue()
807 type = lua_rawgeti(L, 3, x+1); in mcplib_rcontext_enqueue()
808 if (type != LUA_TNUMBER) { in mcplib_rcontext_enqueue()
863 int type = lua_type(rctx->Lc, 1); in mcp_start_subrctx() local
865 if (type == LUA_TUSERDATA && (r = luaL_testudata(rctx->Lc, 1, "mcp.response")) != NULL) { in mcp_start_subrctx()
876 } else if (type == LUA_TSTRING) { in mcp_start_subrctx()
905 int type = lua_type(rctx->Lc, 1); in mcp_resume_rctx_from_cb() local
907 … if (type == LUA_TUSERDATA && (r = luaL_testudata(rctx->Lc, 1, "mcp.response")) != NULL) { in mcp_resume_rctx_from_cb()
912 } else if (type == LUA_TSTRING) { in mcp_resume_rctx_from_cb()
1574 switch(fr->type) { in mcp_funcgen_route()
1609 int type = lua_type(L, -1); in mcp_funcgen_route() local
1610 if (type == LUA_TUSERDATA) { in mcp_funcgen_route()
1614 } else if (type == LUA_TTABLE) { in mcp_funcgen_route()
1649 int type = lua_type(L, -1); in mcp_funcgen_router_cleanup() local
1650 if (type == LUA_TUSERDATA) { in mcp_funcgen_router_cleanup()
1654 } else if (type == LUA_TTABLE) { in mcp_funcgen_router_cleanup()
1691 int type = lua_getfield(L, 1, arg); in _mcplib_router_new_check() local
1692 if (type == LUA_TSTRING) { in _mcplib_router_new_check()
1701 } else if (type != LUA_TNIL) { in _mcplib_router_new_check()
1731 int type = lua_type(L, -1); in _mcplib_router_new_mapcheck() local
1732 if (type == LUA_TUSERDATA) { in _mcplib_router_new_mapcheck()
1734 } else if (type == LUA_TTABLE) { in _mcplib_router_new_mapcheck()
1749 const char *type = lua_tostring(L, -1); in _mcplib_router_new_mode() local
1754 if (strcmp(type, "prefix") == 0) { in _mcplib_router_new_mode()
1758 fr->type = FGEN_ROUTER_SHORTSEP; in _mcplib_router_new_mode()
1762 fr->type = FGEN_ROUTER_SHORTSEP; in _mcplib_router_new_mode()
1766 fr->type = FGEN_ROUTER_LONGSEP; in _mcplib_router_new_mode()
1770 } else if (strcmp(type, "anchor") == 0) { in _mcplib_router_new_mode()
1776 fr->type = FGEN_ROUTER_ANCHORSM; in _mcplib_router_new_mode()
1783 fr->type = FGEN_ROUTER_ANCHORSM; in _mcplib_router_new_mode()
1787 fr->type = FGEN_ROUTER_ANCHORBIG; in _mcplib_router_new_mode()
1833 fr.type = FGEN_ROUTER_SHORTSEP; in mcplib_router_new()
1842 fr.type = FGEN_ROUTER_CMDMAP; in mcplib_router_new()
1852 int type = lua_getfield(L, 1, "default"); in mcplib_router_new() local
1853 if (type == LUA_TUSERDATA) { in mcplib_router_new()
1876 int type = lua_type(L, -1); in mcplib_router_new() local
1877 if (type == LUA_TUSERDATA) { in mcplib_router_new()
1888 } else if (type == LUA_TTABLE) { in mcplib_router_new()