summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/choice.c
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2017-04-19 12:30:40 +0000
committerkrasimir <krasimir@chalmers.se>2017-04-19 12:30:40 +0000
commit5c93f2fba5eadaa1e516106c08d495c14a0eb647 (patch)
treee0d2a925cc0f3c0d8ec4bac0668fb42b2a64babe /src/runtime/c/gu/choice.c
parent74ce52d761de9bc49fbb1aaf2d273d3edc34a3d6 (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.c10
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));