use "const" where able to + random readability changes

This commit is contained in:
2025-02-04 12:17:42 +01:00
parent c8d43d9564
commit be09d57a27
14 changed files with 84 additions and 92 deletions

View File

@@ -9,7 +9,7 @@
#define COLUMNS ((int8_t)10)
#define ROWS ((int8_t)24)
typedef const Colour8* CRow;
typedef const Colour8* const CRow;
typedef Colour8* Row;
typedef struct {
@@ -22,5 +22,5 @@ typedef struct {
void next_shape(GameData* game_data);
void game_init(GameData* game_data); // initializes the game
void game_update(GameData* game_data, const uint8_t* keys); // updates the game's state
void game_update(GameData* game_data, uint8_t const* keys); // updates the game's state
void game_free(GameData* game_data); // free all data stored with the game