/* lista.2linkitettytoteutus.c SJ */ /* ulkoiset esittelyt */ /* nämä siis .h:hon */ #include "element.h" typedef struct LIST_RECORD *LIST; typedef struct LIST_NODE_RECORD *LIST_POSITION; #define LIST_CREATE(L) _LIST_CREATE(&L) void _LIST_CREATE(LIST *L); void LIST_INSERT(LIST L, LIST_POSITION p, ELEMENT x); void LIST_DELETE(LIST L, LIST_POSITION p); ELEMENT LIST_RETRIEVE(LIST L, LIST_POSITION p); LIST_POSITION LIST_NEXT(LIST L, LIST_POSITION p); LIST_POSITION LIST_FIRST(LIST L); LIST_POSITION LIST_EOL(LIST L);