Angband
z-set.h
Go to the documentation of this file.
1 
20 #ifndef Z_SET_H
21 #define Z_SET_H
22 
23 #include "h-basic.h"
24 #include <sys/types.h>
25 
26 struct set;
27 
28 extern struct set *set_new();
29 extern void set_free(struct set *s);
30 extern void set_add(struct set *s, void *p);
31 extern bool set_del(struct set *s, void *p);
32 extern size_t set_size(struct set *s);
33 extern void *set_choose(struct set *s);
34 extern void *set_get(struct set *s, size_t index);
35 extern void set_insert(struct set *s, size_t index, void *p);
36 
37 #endif /* !Z_SET_H */