From fe0a6edfe618c0d1e58e4b7cf82dfb9d4a0f28b9 Mon Sep 17 00:00:00 2001 From: klmp200 Date: Tue, 27 Dec 2016 01:43:49 +0100 Subject: [PATCH] Compilateur nazi --- LibAutomaton/Makefile | 2 +- Makefile | 2 +- main.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/LibAutomaton/Makefile b/LibAutomaton/Makefile index 3778091..5f9c04e 100644 --- a/LibAutomaton/Makefile +++ b/LibAutomaton/Makefile @@ -1,5 +1,5 @@ CC=gcc -CFLAGS=-Wall -Werror -pedantic -fpic -g +CFLAGS=-Wall -Werror -pedantic -fpic -g -std=c89 LIBSDIR=-L/usr/lib -L../Libs diff --git a/Makefile b/Makefile index 24db132..5c8a299 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ # export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:./Libs CC=gcc -CFLAGS=-Wall -Werror -pedantic -fpic -g +CFLAGS=-Wall -Werror -pedantic -fpic -g -std=c89 LIBSDIR=-L/usr/lib -L./Libs diff --git a/main.c b/main.c index 12d7ac3..6ae9fd3 100644 --- a/main.c +++ b/main.c @@ -11,6 +11,8 @@ #include int main(int argc, char **argv){ + int Rule = 256; + int N = 1; Matrix matrix = CreateMatrix(); Matrix m2; Matrix m3; @@ -22,8 +24,6 @@ int main(int argc, char **argv){ BasicPrintMatrix(m3); freeMatrix(m3); - int Rule = 256; - int N = 1; applyRules(matrix,Rule,N); matrix = SetMatrixDim(matrix,3,3);