diff --git a/include/wolfram/compat/microhttpd.h b/include/wolfram/compat/microhttpd.h index 97fcf2a..16fe0d5 100644 --- a/include/wolfram/compat/microhttpd.h +++ b/include/wolfram/compat/microhttpd.h @@ -26,7 +26,7 @@ extern "C" { typedef int MHD_socket; #define MHD_INVALID_SOCKET (-1) -#define MHD_SIZE_UNKNOWN ((uint64_t)-1LL) +#define MHD_SIZE_UNKNOWN ((uint64_t) - 1LL) #define MHD_CONTENT_READER_END_OF_STREAM ((ssize_t) - 1) enum MHD_Result { MHD_NO = 0, MHD_YES = 1 }; diff --git a/src/agent/graph_social_typed.c b/src/agent/graph_social_typed.c index deb0d40..1a45f67 100644 --- a/src/agent/graph_social_typed.c +++ b/src/agent/graph_social_typed.c @@ -958,7 +958,7 @@ wf_status wf_agent_get_suggested_follows_by_actor_typed( params.actor = actor; return wf_graph_call_actor_list( agent, - (wf_status (*)(wf_xrpc_client *, const void *, wf_response *)) + (wf_status(*)(wf_xrpc_client *, const void *, wf_response *)) wf_lex_app_bsky_graph_get_suggested_follows_by_actor_main_call, ¶ms, "suggestions", out); } @@ -1016,7 +1016,7 @@ wf_status wf_agent_get_list_mutes_typed(wf_agent *agent, int limit, ¶ms.has_cursor, ¶ms.cursor); return wf_graph_call_list_views( agent, - (wf_status (*)(wf_xrpc_client *, const void *, wf_response *)) + (wf_status(*)(wf_xrpc_client *, const void *, wf_response *)) wf_lex_app_bsky_graph_get_list_mutes_main_call, ¶ms, out); } @@ -1038,7 +1038,7 @@ wf_status wf_agent_get_list_blocks_typed(wf_agent *agent, int limit, ¶ms.has_cursor, ¶ms.cursor); return wf_graph_call_list_views( agent, - (wf_status (*)(wf_xrpc_client *, const void *, wf_response *)) + (wf_status(*)(wf_xrpc_client *, const void *, wf_response *)) wf_lex_app_bsky_graph_get_list_blocks_main_call, ¶ms, out); } @@ -1095,7 +1095,7 @@ wf_agent_get_starter_packs_typed(wf_agent *agent, const char *const *uris, params.uris.count = uri_count; return wf_graph_call_starter_packs( agent, - (wf_status (*)(wf_xrpc_client *, const void *, wf_response *)) + (wf_status(*)(wf_xrpc_client *, const void *, wf_response *)) wf_lex_app_bsky_graph_get_starter_packs_main_call, ¶ms, out); } @@ -1119,7 +1119,7 @@ wf_agent_get_actor_starter_packs_typed(wf_agent *agent, const char *actor, ¶ms.has_cursor, ¶ms.cursor); return wf_graph_call_starter_packs( agent, - (wf_status (*)(wf_xrpc_client *, const void *, wf_response *)) + (wf_status(*)(wf_xrpc_client *, const void *, wf_response *)) wf_lex_app_bsky_graph_get_actor_starter_packs_main_call, ¶ms, out); } @@ -1288,8 +1288,8 @@ wf_status wf_agent_mute_actor_typed(wf_agent *agent, const char *actor) { input.actor = actor; return wf_graph_call_procedure( agent, - (wf_status (*)(wf_xrpc_client *, const void *, wf_response *)) - wf_lex_app_bsky_graph_mute_actor_main_call, + (wf_status(*)(wf_xrpc_client *, const void *, + wf_response *))wf_lex_app_bsky_graph_mute_actor_main_call, &input); } @@ -1301,7 +1301,7 @@ wf_status wf_agent_unmute_actor_typed(wf_agent *agent, const char *actor) { input.actor = actor; return wf_graph_call_procedure( agent, - (wf_status (*)(wf_xrpc_client *, const void *, wf_response *)) + (wf_status(*)(wf_xrpc_client *, const void *, wf_response *)) wf_lex_app_bsky_graph_unmute_actor_main_call, &input); } @@ -1315,7 +1315,7 @@ wf_status wf_agent_mute_actor_list_typed(wf_agent *agent, input.list = list_uri; return wf_graph_call_procedure( agent, - (wf_status (*)(wf_xrpc_client *, const void *, wf_response *)) + (wf_status(*)(wf_xrpc_client *, const void *, wf_response *)) wf_lex_app_bsky_graph_mute_actor_list_main_call, &input); } @@ -1329,7 +1329,7 @@ wf_status wf_agent_unmute_actor_list_typed(wf_agent *agent, input.list = list_uri; return wf_graph_call_procedure( agent, - (wf_status (*)(wf_xrpc_client *, const void *, wf_response *)) + (wf_status(*)(wf_xrpc_client *, const void *, wf_response *)) wf_lex_app_bsky_graph_unmute_actor_list_main_call, &input); } diff --git a/src/agent/graph_write.c b/src/agent/graph_write.c index 33ccf05..927c3b8 100644 --- a/src/agent/graph_write.c +++ b/src/agent/graph_write.c @@ -158,7 +158,7 @@ wf_status wf_agent_graph_mute_thread(wf_agent *agent, const char *root_uri) { wf_lex_app_bsky_graph_mute_thread_main_input in = {.root = root_uri}; return wf_graph_call_procedure( agent, - (wf_status (*)(wf_xrpc_client *, const void *, wf_response *)) + (wf_status(*)(wf_xrpc_client *, const void *, wf_response *)) wf_lex_app_bsky_graph_mute_thread_main_call, &in); } @@ -180,7 +180,7 @@ wf_status wf_agent_graph_unmute_thread(wf_agent *agent, const char *root_uri) { wf_lex_app_bsky_graph_unmute_thread_main_input in = {.root = root_uri}; return wf_graph_call_procedure( agent, - (wf_status (*)(wf_xrpc_client *, const void *, wf_response *)) + (wf_status(*)(wf_xrpc_client *, const void *, wf_response *)) wf_lex_app_bsky_graph_unmute_thread_main_call, &in); } @@ -203,7 +203,7 @@ wf_status wf_agent_graph_mute_actor_list(wf_agent *agent, wf_lex_app_bsky_graph_mute_actor_list_main_input in = {.list = list_uri}; return wf_graph_call_procedure( agent, - (wf_status (*)(wf_xrpc_client *, const void *, wf_response *)) + (wf_status(*)(wf_xrpc_client *, const void *, wf_response *)) wf_lex_app_bsky_graph_mute_actor_list_main_call, &in); } @@ -226,7 +226,7 @@ wf_status wf_agent_graph_unmute_actor_list(wf_agent *agent, wf_lex_app_bsky_graph_unmute_actor_list_main_input in = {.list = list_uri}; return wf_graph_call_procedure( agent, - (wf_status (*)(wf_xrpc_client *, const void *, wf_response *)) + (wf_status(*)(wf_xrpc_client *, const void *, wf_response *)) wf_lex_app_bsky_graph_unmute_actor_list_main_call, &in); } diff --git a/tools/wf_lexgen.cpp b/tools/wf_lexgen.cpp index 7d54d4e..9745505 100644 --- a/tools/wf_lexgen.cpp +++ b/tools/wf_lexgen.cpp @@ -893,10 +893,10 @@ class Generator { has_status = true; } if (has_invalid) - lines.insert( - lines.end(), - {"invalid:", " cJSON_Delete(item); cJSON_Delete(root); " - "return WF_ERR_INVALID_ARG;"}); + lines.insert(lines.end(), + {"invalid:", + " cJSON_Delete(item); cJSON_Delete(root); " + "return WF_ERR_INVALID_ARG;"}); if (has_fail) lines.insert(lines.end(), {"fail:", " cJSON_Delete(item); "