blob: aea76dde898353ccf3842039a7405870dbc13ae2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef GU_CHOICE_H_
#define GU_CHOICE_H_
#include <gu/mem.h>
typedef struct GuChoice GuChoice;
typedef struct GuChoiceMark GuChoiceMark;
GuChoice*
gu_new_choice(GuPool* pool);
int
gu_choice_next(GuChoice* ch, int n_choices);
GuChoiceMark
gu_choice_mark(GuChoice* ch);
void
gu_choice_reset(GuChoice* ch, GuChoiceMark mark);
bool
gu_choice_advance(GuChoice* ch);
// private
struct GuChoiceMark {
size_t path_idx;
};
#endif // GU_CHOICE_H_
|