diff --git a/SAE2 b/SAE2 index 9eb64a7..d7d91b5 100755 Binary files a/SAE2 and b/SAE2 differ diff --git a/includes/structures.h b/includes/structures.h index 43ebb84..c8d7b51 100644 --- a/includes/structures.h +++ b/includes/structures.h @@ -12,6 +12,7 @@ * @brief Maximum number of works (travaux) in the project. */ #define TMAXTRAV 8 +#define TRACE false /** * @enum Booleen diff --git a/obj/sort.o b/obj/sort.o index c3454bf..1daf878 100644 Binary files a/obj/sort.o and b/obj/sort.o differ diff --git a/srcs/structures.c b/srcs/structures.c index a5bcc2f..5926c18 100644 --- a/srcs/structures.c +++ b/srcs/structures.c @@ -284,7 +284,7 @@ int max(int a, int b) * @param nbTaches Nombre de tâches dans le tableau. * @return La durée totale du projet. */ -int calculerDureeProjet(Tache **tachesTriees, int nbTaches); +int calculerDureeProjet(Tache **tachesTriees, int nbTaches) { int i; int dureeProjet; @@ -307,7 +307,7 @@ int calculerDureeProjet(Tache **tachesTriees, int nbTaches); * @param tlog Taille logique du tableau des précédences. * @return Liste des successeurs pour le travail donné. */ -Liste lstSucc(char travaux[], Precedence prec[], int tlog); +Liste lstSucc(char travaux[], Precedence prec[], int tlog) { trace("lstSucc"); int i;