[Tarantool-patches] [PATCH 10/20] lua/utils: make char ptr Lua CTIDs public
Vladimir Davydov
vdavydov at tarantool.org
Fri Jul 23 14:07:20 MSK 2021
We'll need them to reimplement parts of net.box in C.
---
src/lua/utils.c | 4 ++--
src/lua/utils.h | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/lua/utils.c b/src/lua/utils.c
index 34cec0eed928..ebc19206c856 100644
--- a/src/lua/utils.c
+++ b/src/lua/utils.c
@@ -44,8 +44,8 @@ static int luaT_newthread_ref = LUA_NOREF;
static uint32_t CTID_STRUCT_IBUF;
static uint32_t CTID_STRUCT_IBUF_PTR;
-static uint32_t CTID_CHAR_PTR;
-static uint32_t CTID_CONST_CHAR_PTR;
+uint32_t CTID_CHAR_PTR;
+uint32_t CTID_CONST_CHAR_PTR;
uint32_t CTID_UUID;
void *
diff --git a/src/lua/utils.h b/src/lua/utils.h
index 947d9240bf2f..969edca4528f 100644
--- a/src/lua/utils.h
+++ b/src/lua/utils.h
@@ -68,6 +68,8 @@ struct tt_uuid;
*/
extern struct lua_State *tarantool_L;
+extern uint32_t CTID_CHAR_PTR;
+extern uint32_t CTID_CONST_CHAR_PTR;
extern uint32_t CTID_UUID;
struct tt_uuid *
--
2.25.1
More information about the Tarantool-patches
mailing list