gol

Implementation of Conway's Game of Life writen in C
git clone git://git.dimitrijedobrota.com/gol.git
Log | Files | Refs | README

commit c3c25a4c09a244d5767cb3d5da4703c6189ba1e9
parent 4215fc765b6900a1c8f7f579609f6a667f1b39ec
Author: Mateja Marsenic <matejamarsenic@gmail.com>
Date:   Sat, 21 May 2022 20:44:00 +0200

Fixed double main() problem (temp fix)

Diffstat:
Msrc/logic.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/logic.c b/src/logic.c @@ -4,13 +4,13 @@ #define MAX(a, b) ((a > b) ? a : b) #define MIN(a, b) ((a < b) ? a : b) -#define t mat[i][j] +#define t mat[i][j] #define u_char unsigned char // GLOBALS u_char **mat; -int h, w; -u_char mod; +int h, w; +u_char mod; void addToECells(a, b) { mod = (mat[a][b] & 3); @@ -218,7 +218,7 @@ void print_matrix(void) { } } -int main(void) { +int evolve_main(void) { int mode; srand(time(NULL));