From 316fbbc66e9e1664f468ce6706cb4f974b80298b Mon Sep 17 00:00:00 2001 From: AnnaSnoeijs Date: Wed, 25 Jun 2025 11:18:46 +0200 Subject: [PATCH] Removed needless inlines --- logic.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/logic.c b/logic.c index 43e192e..47ac14a 100644 --- a/logic.c +++ b/logic.c @@ -18,27 +18,27 @@ */ #include "logic.h" -static inline int top( const int a, const int b ){ +static int top( const int a, const int b ){ return a < b ? b : a; } -static inline int bottom( const int a, const int b ){ +static int bottom( const int a, const int b ){ return a < b ? a : b; } -static inline int heightMask( const int a ){ +static int heightMask( const int a ){ return ( 1 << a ) - 1; } -static inline int safeHeightMask( const int a ){ +static int safeHeightMask( const int a ){ return a > 0 ? heightMask( a ) : 0; } -static inline int bottomHeightMask( const int a, const int b ){ +static int bottomHeightMask( const int a, const int b ){ return safeHeightMask( bottom( a, b ) ); } -inline void playMove( +void playMove( board_t *boardptr, const int column ){ @@ -47,7 +47,7 @@ inline void playMove( boardptr->height [ column ]++; } -inline void calcWins( +void calcWins( wins_t *wins, const board_t board, const int column