From 51dd1fd83a96528cd796bee917e9fd218f286aba Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 22 Nov 2020 23:54:22 +0100 Subject: [PATCH] :art: Do not inline gwi_doc --- include/gwi.h | 6 +----- src/import/import_internals.c | 7 +++++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/include/gwi.h b/include/gwi.h index 352d4408..0d7f8937 100644 --- a/include/gwi.h +++ b/include/gwi.h @@ -18,9 +18,5 @@ static inline Tmpl* gwi_tmpl(const Gwi gwi) { ANN m_bool gwi_run(const Gwion gwion, m_bool (*f)(const Gwi)); -ANN static inline m_bool gwi_doc(const Gwi gwi, const m_str name, const m_str doc) { - DECL_OB(const Value, v, = nspc_lookup_value0(gwi->gwion->env->curr, insert_symbol(gwi->gwion->st, name))) - v->docstr = new_text(gwi->gwion->mp); - text_add(v->docstr, doc); -} +ANN m_bool gwi_doc(const Gwi gwi, const m_str name, const m_str doc); #endif diff --git a/src/import/import_internals.c b/src/import/import_internals.c index a4fbefdf..2d997661 100644 --- a/src/import/import_internals.c +++ b/src/import/import_internals.c @@ -39,3 +39,10 @@ ANN m_bool gwi_run(const Gwion gwion, m_bool (*f)(const Gwi)) { gwion->env->name = name; return ret; } + +ANN m_bool gwi_doc(const Gwi gwi, const m_str name, const m_str doc) { + DECL_OB(const Value, v, = nspc_lookup_value0(gwi->gwion->env->curr, insert_symbol(gwi->gwion->st, name))) + v->docstr = new_text(gwi->gwion->mp); + text_add(v->docstr, doc); + return GW_OK; +} -- 2.43.0