1
0
mirror of https://gitlab.com/klmp200/LO41.git synced 2025-07-11 12:19:25 +00:00

On test les objets, attention, les listes ne sont pas fonctionelles

This commit is contained in:
2018-06-05 00:26:48 +02:00
commit 551bf2cd51
14 changed files with 481 additions and 0 deletions

29
List/List.h Normal file
View File

@ -0,0 +1,29 @@
//
// Created by Antoine Bartuccio on 22/05/2018.
//
#ifndef LO41_LIST_H
#define LO41_LIST_H
#include "../Objects.h"
typedef struct o_Element Element;
#include "Element.h"
#define WRONG_ELEMENT CRASH("This element is not within the list\n")
struct o_List {
Element *head;
Element *tail;
int size;
Element *(*get_head)(O_THIS(List));
Element *(*get_tail)(O_THIS(List));
int (*get_size)(O_THIS(List));
void (*$_free_)(O_THIS(List));
};
List *$_init_List();
#endif //LO41_LIST_H