From 937e935a6e3722001d94039e6d965352a4f0ed3b Mon Sep 17 00:00:00 2001 From: Matteo Flebus Date: Mon, 12 Jan 2026 21:48:11 +0100 Subject: [PATCH] style(all): clang format --- src/io_backend/io_backend.h | 12 +++++++----- src/parser/parser.h | 4 ++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/io_backend/io_backend.h b/src/io_backend/io_backend.h index 34d85f3..fab5cce 100644 --- a/src/io_backend/io_backend.h +++ b/src/io_backend/io_backend.h @@ -3,7 +3,8 @@ #include -enum iob_mode { +enum iob_mode +{ IOB_MODE_NULL = 0, IOB_MODE_STDIN, IOB_MODE_SCRIPT, @@ -16,14 +17,15 @@ enum iob_mode { * the script name when mode is set to IOB_SCRIPT, * the command to execute when mode is set to IOB_CMD, */ -struct iob_context { +struct iob_context +{ enum iob_mode mode; - char* args; + char *args; }; /* * @brief Initializes the IO Backend module - * + * * @param context contains the input mode and the args * @return 0 on success, the corresponding error code otherwise */ @@ -41,6 +43,6 @@ void iob_close(); * * */ -ssize_t stream_read(char** stream); +ssize_t stream_read(char **stream); #endif /* ! IO_BACKEND_H */ diff --git a/src/parser/parser.h b/src/parser/parser.h index 8dccb31..d10cae8 100644 --- a/src/parser/parser.h +++ b/src/parser/parser.h @@ -10,7 +10,7 @@ * * @warning NOT IMPLEMENTED */ -struct ast* get_ast(); +struct ast *get_ast(); /* @brief Builds the AST representation of the given command string. * @@ -19,6 +19,6 @@ struct ast* get_ast(); * * @warning NOT IMPLEMENTED */ -struct ast* get_ast_str(char* command); +struct ast *get_ast_str(char *command); #endif /* ! PARSER_H */