From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp61.i.mail.ru (smtp61.i.mail.ru [217.69.128.41]) (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 0FDF6446442 for ; Wed, 23 Sep 2020 04:40:38 +0300 (MSK) From: Alexander Turenko Date: Wed, 23 Sep 2020 04:40:21 +0300 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 1.10 08/16] 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 (cherry picked from commit 4a95a64520b81ae7c61982801b7aab7f5724e964) --- src/box/lua/tuple.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/box/lua/tuple.h b/src/box/lua/tuple.h index fcb7a9d87..2aed7a811 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" { @@ -53,7 +54,7 @@ typedef struct tuple_format box_tuple_format_t; * @sa luaT_istuple * @throws on OOM */ -void +API_EXPORT void luaT_pushtuple(struct lua_State *L, box_tuple_t *tuple); /** @@ -64,7 +65,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