31 lines
891 B
C
31 lines
891 B
C
#ifndef _LISTE_H
|
|
#define _LISTE_H
|
|
|
|
typedef int Data;
|
|
typedef struct SCell SCell;
|
|
typedef struct SList SList;
|
|
typedef struct SBlock SBlock;
|
|
|
|
SList *CreateList();
|
|
SBlock *CreateBlock();
|
|
void DeleteList(SList *list);
|
|
SCell *_GetCellFromBlock(SBlock *bList);
|
|
SBlock *AddBlock(SBlock *blist);
|
|
SCell *AddElementBegin(SList *list, Data elem);
|
|
SCell *AddElementEnd(SList *list, Data elem);
|
|
SCell *AddElementAfter(SList *list, SCell *cell, Data elem);
|
|
void DeleteCell(SList *list, SCell *cell);
|
|
void PrintRecycleList(SList *list);
|
|
SCell *RecycleCell(SCell *head, SCell *cell);
|
|
SCell *GetCellFromBlock(SList *list);
|
|
SCell *GetCellFromRecycle(SList *list);
|
|
|
|
SCell *GetFirstElement(SList *list);
|
|
SCell *GetLastElement(SList *list);
|
|
SCell *GetPrevElement(SCell *cell);
|
|
SCell *GetNextElement(SCell *cell);
|
|
Data GetData(SCell *cell);
|
|
void PrintBlockList(SList *list);
|
|
|
|
#endif
|