style: clang-format
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
Language: C
|
|
||||||
BasedOnStyle: Google
|
BasedOnStyle: Google
|
||||||
|
|
||||||
UseTab: Always
|
UseTab: Always
|
||||||
|
|||||||
@@ -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);
|
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);
|
void cws_http_free(cws_http_s *request);
|
||||||
|
|
||||||
|
|||||||
@@ -24,12 +24,14 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef EVELOPER
|
#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
|
#else
|
||||||
#define CWS_LOG_DEBUG(msg, ...)
|
#define CWS_LOG_DEBUG(msg, ...)
|
||||||
#endif
|
#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_WARNING(msg, ...) fprintf(stdout, _WARNING " " msg "\n", ##__VA_ARGS__)
|
||||||
#define CWS_LOG_INFO(msg, ...) fprintf(stdout, _INFO " " msg "\n", ##__VA_ARGS__)
|
#define CWS_LOG_INFO(msg, ...) fprintf(stdout, _INFO " " msg "\n", ##__VA_ARGS__)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user