From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp48.i.mail.ru (smtp48.i.mail.ru [94.100.177.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 7B57F446440 for ; Wed, 23 Sep 2020 04:14:19 +0300 (MSK) From: Alexander Turenko Date: Wed, 23 Sep 2020 04:14:11 +0300 Message-Id: <4a95a64520b81ae7c61982801b7aab7f5724e964.1600817803.git.alexander.turenko@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 06/14] WIP: refactoring: add API_EXPORT to lua/tuple functions List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladislav Shpilevoy Cc: tarantool-patches@dev.tarantool.org, Alexander Turenko The reason is unification of declarations. It is the rule of thumb to use API_EXPORT with module API functions. Part of #5273 --- src/box/lua/tuple.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/box/lua/tuple.h b/src/box/lua/tuple.h index 759df0b89..f3fc84d00 100644 --- a/src/box/lua/tuple.h +++ b/src/box/lua/tuple.h @@ -31,6 +31,7 @@ * SUCH DAMAGE. */ #include +#include "trivia/util.h" #if defined(__cplusplus) extern "C" { @@ -56,7 +57,7 @@ typedef struct tuple_format box_tuple_format_t; * @retval non-NULL argument is tuple * @throws error if the argument is not a tuple. */ -box_tuple_t * +API_EXPORT box_tuple_t * luaT_checktuple(struct lua_State *L, int idx); /** @@ -65,7 +66,7 @@ luaT_checktuple(struct lua_State *L, int idx); * @sa luaT_istuple * @throws on OOM */ -void +API_EXPORT void luaT_pushtuple(struct lua_State *L, box_tuple_t *tuple); /** @@ -76,7 +77,7 @@ luaT_pushtuple(struct lua_State *L, box_tuple_t *tuple); * @retval non-NULL argument is tuple * @retval NULL argument is not tuple */ -box_tuple_t * +API_EXPORT box_tuple_t * luaT_istuple(struct lua_State *L, int idx); /** -- 2.25.0