#ifndef LISTS_H #define LISTS_H #include #include #include "basic_types.h" typedef struct { char *str; Type type; } Pair; #define LIST_CONTENT_TYPE Pair #define LIST_CONTENT_EGAL(x,y) (strcmp(x->str,y->str) == 0) struct lnode{ LIST_CONTENT_TYPE *content; struct lnode *next; }; typedef struct lnode *List; extern List list_add(LIST_CONTENT_TYPE *, List); extern int list_length(List); extern List list_find(const LIST_CONTENT_TYPE *, List); #endif /* LISTS_H */