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 */
void set_add(struct set *s, void *p)
Definition: z-set.c:61
void set_free(struct set *s)
Definition: z-set.c:55
The lowest level header.
void * set_get(struct set *s, size_t index)
Definition: z-set.c:92
Definition: z-set.c:24
const char ** p[]
Definition: name.c:40
bool set_del(struct set *s, void *p)
Definition: z-set.c:68
size_t set_size(struct set *s)
Definition: z-set.c:81
void set_insert(struct set *s, size_t index, void *p)
Definition: z-set.c:99
struct set * set_new()
Definition: z-set.c:50
void * set_choose(struct set *s)
Definition: z-set.c:85
int index
Definition: obj-info.c:68