From b5568456a56861d4d21493b33437531ca8e278ca Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 22 Oct 2016 19:34:52 +0200 Subject: [PATCH] forgot some exports --- include/cubescript/cubescript.hh | 8 ++++---- src/cs_util.cc | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/cubescript/cubescript.hh b/include/cubescript/cubescript.hh index 802c29c..f2dd181 100644 --- a/include/cubescript/cubescript.hh +++ b/include/cubescript/cubescript.hh @@ -756,7 +756,7 @@ namespace util { CsState &cs, ostd::ConstCharRange str ); - struct ListParser { + struct OSTD_EXPORT ListParser { ostd::ConstCharRange input; ostd::ConstCharRange quote = ostd::ConstCharRange(); ostd::ConstCharRange item = ostd::ConstCharRange(); @@ -775,11 +775,11 @@ private: CsState &p_state; }; - ostd::Size list_length(CsState &cs, ostd::ConstCharRange s); - ostd::Maybe list_index( + OSTD_EXPORT ostd::Size list_length(CsState &cs, ostd::ConstCharRange s); + OSTD_EXPORT ostd::Maybe list_index( CsState &cs, ostd::ConstCharRange s, ostd::Size idx ); - CsVector list_explode( + OSTD_EXPORT CsVector list_explode( CsState &cs, ostd::ConstCharRange s, ostd::Size limit = -1 ); diff --git a/src/cs_util.cc b/src/cs_util.cc index 5c1612f..5b2940c 100644 --- a/src/cs_util.cc +++ b/src/cs_util.cc @@ -387,7 +387,7 @@ endblock: return s; } - ostd::Size list_length(CsState &cs, ostd::ConstCharRange s) { + OSTD_EXPORT ostd::Size list_length(CsState &cs, ostd::ConstCharRange s) { ListParser p(cs, s); ostd::Size ret = 0; while (p.parse()) { @@ -396,7 +396,7 @@ endblock: return ret; } - ostd::Maybe list_index( + OSTD_EXPORT ostd::Maybe list_index( CsState &cs, ostd::ConstCharRange s, ostd::Size idx ) { ListParser p(cs, s); @@ -411,7 +411,7 @@ endblock: return ostd::move(p.element()); } - CsVector list_explode( + OSTD_EXPORT CsVector list_explode( CsState &cs, ostd::ConstCharRange s, ostd::Size limit ) { CsVector ret;