aboutsummaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorame <[email protected]>2025-06-12 02:10:10 -0500
committerame <[email protected]>2025-06-12 02:10:10 -0500
commit8e7257aac8b30aaa57577770fd636e784361e35d (patch)
tree71f7cb33f56a455bac2734bd53b483aa8bb7b27b /src/io.c
parenta2e8051d4cf6e46310e2e8aab83fee991560d8c0 (diff)
fix some net code, add streaming to some requests
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c42
1 files changed, 1 insertions, 41 deletions
diff --git a/src/io.c b/src/io.c
index 0f19933..389d407 100644
--- a/src/io.c
+++ b/src/io.c
@@ -295,45 +295,5 @@ int l_json_parse(lua_State* L){
return 1;
}
-int l_arg_handle(lua_State* L){
- luaL_checktype(L, 1, LUA_TTABLE);
- luaL_checktype(L, 2, LUA_TTABLE);
-
- size_t len = lua_objlen(L,1);
- for(size_t i = 0; i <= len - 1; i++){
- lua_pushnumber(L,i + 1);
- lua_gettable(L,1);
-
- lua_pushnumber(L,1);
- lua_gettable(L,-2);
- size_t inner_len = lua_objlen(L,-1);
- size_t inner_idx = lua_gettop(L);
-
- lua_pushnumber(L, 2);
- lua_gettable(L, -3);
-
- size_t function_idx = lua_gettop(L);
-
- for(int ii = 1; ii <= inner_len; ii++){
- lua_pushnumber(L, ii);
- lua_gettable(L, inner_idx);
-
- const char* key = lua_tostring(L, -1);
-
- size_t input_len = lua_objlen(L, 2);
-
- for(int iii = 1; iii <= input_len; iii++){
- lua_pushnumber(L, iii);
- lua_gettable(L, 2);
- if(strcmp(lua_tostring(L, -1), key) == 0){
- lua_pushvalue(L, function_idx);
- lua_pcall(L, 0, 0, 0);
- ii = inner_len + 1;
- break;
- }
- }
-
- }
- }
- return 0;
+int resolve_path(lua_State* L){
}