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

Ajout de PRIVATE, PUBLIC et PROTECTED

This commit is contained in:
2018-06-05 00:34:30 +02:00
parent 551bf2cd51
commit 3232ac1ec6
3 changed files with 20 additions and 17 deletions

View File

@ -14,14 +14,14 @@ typedef struct o_Element Element;
#define WRONG_ELEMENT CRASH("This element is not within the list\n")
struct o_List {
Element *head;
Element *tail;
int size;
PRIVATE Element *head;
PRIVATE Element *tail;
PRIVATE 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));
PUBLIC Element *(*get_head)(O_THIS(List));
PUBLIC Element *(*get_tail)(O_THIS(List));
PUBLIC int (*get_size)(O_THIS(List));
PUBLIC void (*$_free_)(O_THIS(List));
};
List *$_init_List();