diff options
| author | krasimir <krasimir@chalmers.se> | 2017-04-19 12:30:40 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2017-04-19 12:30:40 +0000 |
| commit | 5c93f2fba5eadaa1e516106c08d495c14a0eb647 (patch) | |
| tree | e0d2a925cc0f3c0d8ec4bac0668fb42b2a64babe /src/runtime/c/gu/choice.c | |
| parent | 74ce52d761de9bc49fbb1aaf2d273d3edc34a3d6 (diff) | |
in libgu mark explicitly all functions that belong to the API
Diffstat (limited to 'src/runtime/c/gu/choice.c')
| -rw-r--r-- | src/runtime/c/gu/choice.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/runtime/c/gu/choice.c b/src/runtime/c/gu/choice.c index ed1e02a51..5102e15e9 100644 --- a/src/runtime/c/gu/choice.c +++ b/src/runtime/c/gu/choice.c @@ -7,7 +7,7 @@ struct GuChoice { size_t path_idx; }; -GuChoice* +GU_API GuChoice* gu_new_choice(GuPool* pool) { GuChoice* ch = gu_new(GuChoice, pool); @@ -16,14 +16,14 @@ gu_new_choice(GuPool* pool) return ch; } -GuChoiceMark +GU_API GuChoiceMark gu_choice_mark(GuChoice* ch) { gu_assert(ch->path_idx <= gu_buf_length(ch->path)); return (GuChoiceMark){ch->path_idx}; } -void +GU_API void gu_choice_reset(GuChoice* ch, GuChoiceMark mark) { gu_assert(ch->path_idx <= gu_buf_length(ch->path)); @@ -31,7 +31,7 @@ gu_choice_reset(GuChoice* ch, GuChoiceMark mark) ch->path_idx = mark.path_idx; } -int +GU_API int gu_choice_next(GuChoice* ch, int n_choices) { gu_assert(n_choices >= 0); @@ -52,7 +52,7 @@ gu_choice_next(GuChoice* ch, int n_choices) return ret; } -bool +GU_API bool gu_choice_advance(GuChoice* ch) { gu_assert(ch->path_idx <= gu_buf_length(ch->path)); |
