Lines Matching refs:to
515 static int _copy_pool(lua_State *from, lua_State *to, LIBEVENT_THREAD *thr) { in _copy_pool() argument
519 mcp_pool_proxy_t *pp = lua_newuserdatauv(to, size, 0); in _copy_pool()
520 luaL_setmetatable(to, "mcp.pool_proxy"); in _copy_pool()
534 static void _copy_config_table(lua_State *from, lua_State *to, LIBEVENT_THREAD *thr);
537 static void _copy_config_table(lua_State *from, lua_State *to, LIBEVENT_THREAD *thr) { in _copy_config_table() argument
541 luaL_checkstack(to, 4, "configuration error: table recursion too deep"); in _copy_config_table()
544 lua_pushnil(to); in _copy_config_table()
553 _copy_pool(from, to, thr); in _copy_config_table()
556 mcp_ratelim_proxy_tbf(from, to); in _copy_config_table()
568 lua_pushinteger(to, lua_tointeger(from, -1)); in _copy_config_table()
570 lua_pushnumber(to, lua_tonumber(from, -1)); in _copy_config_table()
574 lua_pushlstring(to, lua_tostring(from, -1), lua_rawlen(from, -1)); in _copy_config_table()
577 lua_pushboolean(to, lua_toboolean(from, -1)); in _copy_config_table()
583 lua_newtable(to); // throw new table on worker in _copy_config_table()
585 int nt = lua_absindex(to, -1); // static index of new table. in _copy_config_table()
598 lua_pushlstring(to, lua_tostring(from, -2), lua_rawlen(from, -2)); in _copy_config_table()
602 lua_pushinteger(to, lua_tointeger(from, -2)); in _copy_config_table()
604 lua_pushnumber(to, lua_tonumber(from, -2)); in _copy_config_table()
613 _copy_config_table(from, to, thr); // push next value. in _copy_config_table()
614 lua_settable(to, nt); in _copy_config_table()