2010-08-08 10:06:34 +02:00
|
|
|
#ifndef LISTS_H
|
|
|
|
#define LISTS_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2016-08-29 15:49:31 +02:00
|
|
|
typedef struct strlist {
|
|
|
|
struct strlist *next;
|
|
|
|
char *s;
|
|
|
|
} strlist;
|
|
|
|
|
|
|
|
void addstrlist(strlist ** SP, const char *s);
|
|
|
|
void freestrlist(strlist * s);
|
2015-01-30 20:37:14 +01:00
|
|
|
void addlist(void *l1, void *p1);
|
|
|
|
void translist(void *l1, void *l2, void *p);
|
|
|
|
void freelist(void *p1);
|
|
|
|
unsigned int listlen(void *l);
|
2010-08-08 10:06:34 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|