From ceaa5eeb0e9d44c91aaee2b080230ee972a2f15e Mon Sep 17 00:00:00 2001 From: Francesco Date: Fri, 24 Oct 2025 20:20:26 +0200 Subject: [PATCH] style: clang-format --- .clang-format | 1 - include/http/http.h | 3 ++- include/utils/debug.h | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.clang-format b/.clang-format index 1868a77..872701f 100644 --- a/.clang-format +++ b/.clang-format @@ -1,4 +1,3 @@ -Language: C BasedOnStyle: Google UseTab: Always diff --git a/include/http/http.h b/include/http/http.h index 05ca66a..35fd9e5 100644 --- a/include/http/http.h +++ b/include/http/http.h @@ -36,7 +36,8 @@ cws_http_s *cws_http_parse(string_s *request_str); void cws_http_send_response(cws_http_s *request, cws_http_status_e status); -size_t http_response_builder(char **response, cws_http_status_e status, char *content_type, char *body, size_t body_len_bytes); +size_t http_response_builder(char **response, cws_http_status_e status, char *content_type, + char *body, size_t body_len_bytes); void cws_http_free(cws_http_s *request); diff --git a/include/utils/debug.h b/include/utils/debug.h index 8abf924..8e3d686 100644 --- a/include/utils/debug.h +++ b/include/utils/debug.h @@ -24,12 +24,14 @@ #endif #ifdef EVELOPER -#define CWS_LOG_DEBUG(msg, ...) fprintf(stdout, _DEBUG " [%s:%d] " msg "\n", __FILE__, __LINE__, ##__VA_ARGS__) +#define CWS_LOG_DEBUG(msg, ...) \ + fprintf(stdout, _DEBUG " [%s:%d] " msg "\n", __FILE__, __LINE__, ##__VA_ARGS__) #else #define CWS_LOG_DEBUG(msg, ...) #endif -#define CWS_LOG_ERROR(msg, ...) fprintf(stderr, _ERR " [%s:%d] " msg "\n", __FILE__, __LINE__, ##__VA_ARGS__) +#define CWS_LOG_ERROR(msg, ...) \ + fprintf(stderr, _ERR " [%s:%d] " msg "\n", __FILE__, __LINE__, ##__VA_ARGS__) #define CWS_LOG_WARNING(msg, ...) fprintf(stdout, _WARNING " " msg "\n", ##__VA_ARGS__) #define CWS_LOG_INFO(msg, ...) fprintf(stdout, _INFO " " msg "\n", ##__VA_ARGS__)