From cea5419a5b9d3c972dae9c1884ca9494ce128916 Mon Sep 17 00:00:00 2001 From: PAILLE Kyriann <kyriann.paille9@etu.univ-lorraine.fr> Date: Sun, 8 Jan 2023 22:11:30 +0000 Subject: [PATCH] Update stack.h --- stack.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/stack.h b/stack.h index 58e69fc..bfca2f7 100644 --- a/stack.h +++ b/stack.h @@ -1,13 +1,10 @@ #include <stdio.h> #include <stdlib.h> -#define TAILLEMAX 9 -#include "location.h" -#include "game.h" +#include "Location.h" -typedef struct stack -{ - int stack[TAILLEMAX]; - int sommet; - struct stack *next; -} stack; +typedef struct Stack +{ + Location* location; + struct Stack* next; +}Stack; -- GitLab