Clang format and refactor game.h/c + update Bracket Alignment to BlockIndent (#259)

* Refactor and clang-format game.h/c

* Updated clang-format AlignAfterOpenBracket: BlockIndent and ColumnLimit: 100 and refactored all files accordingly

---------

Co-authored-by: MeirGavish <meir.gavish@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Rickey
2025-12-03 13:49:31 +02:00
committed by GitHub
co-authored by MeirGavish Copilot
parent 43d837571e
commit 291edaf4f2
14 changed files with 2566 additions and 1983 deletions
+7 -5
View File
@@ -5,8 +5,8 @@
* List Implementation
* ===================
*
* - This @ref List operates as a linked list @ref ListNodes. It operates as a regular doubly-linked list
* but doesn't allocate memory and rather gets @ref ListNodes from a pool.
* - This @ref List operates as a linked list @ref ListNodes. It operates as a regular
* doubly-linked list but doesn't allocate memory and rather gets @ref ListNodes from a pool.
*/
#ifndef LIST_H
#define LIST_H
@@ -23,7 +23,8 @@ typedef struct ListNode ListNode;
struct ListNode
{
/**
* @brief The previous @ref ListNode in the associated @ref List, NULL if at the `head` of the list
* @brief The previous @ref ListNode in the associated @ref List, NULL if at the `head` of the
* list
*/
ListNode* prev;
@@ -99,8 +100,9 @@ typedef struct
/**
* Create a list.
*
* While this function does not allocate memory for the list itself, the list does allocate memory for each element.
* So every created list must be freed with @ref list_clear to ensure the list's nodes are deleted properly.
* While this function does not allocate memory for the list itself, the list does allocate memory
* for each element. So every created list must be freed with @ref list_clear to ensure the list's
* nodes are deleted properly.
*
* @return A @ref List with head and tail reset.
*/