From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp46.i.mail.ru (smtp46.i.mail.ru [94.100.177.106]) (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 26B00469710 for ; Tue, 12 May 2020 02:45:55 +0300 (MSK) From: Vladislav Shpilevoy Date: Tue, 12 May 2020 01:45:47 +0200 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/5] mp_snprint() and mp_fprint() for decimal, uuid, error List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, gorcunov@gmail.com, sergepetrenko@tarantool.org, korablev@tarantool.org The patchset makes msgpuck functions mp_snprint() and mp_fprint() nicely serialize MP_DECIMAL, MP_UUID, and MP_ERROR objects. Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-4719-mp_print-ext Issue: https://github.com/tarantool/tarantool/issues/4719 Vladislav Shpilevoy (5): msgpuck: bump version to enable extension printer decimal: provide MP_DECIMAL extension serializer uuid: provide MP_UUID extension serializer error: provide MP_ERROR extension serializer msgpuck: activate MP_EXT custom serializers src/box/CMakeLists.txt | 1 + src/box/box.cc | 2 + src/box/mp_error.cc | 161 ++++++++++++++++++++++- src/box/mp_error.h | 29 ++++ src/box/msgpack.c | 78 +++++++++++ src/box/msgpack.h | 41 ++++++ src/lib/core/mp_decimal.c | 18 +++ src/lib/core/mp_decimal.h | 27 ++++ src/lib/msgpuck | 2 +- src/lib/uuid/mp_uuid.c | 18 +++ src/lib/uuid/mp_uuid.h | 27 ++++ test/unit/decimal.c | 63 ++++++++- test/unit/decimal.result | 11 +- test/unit/mp_error.cc | 270 +++++++++++++++++++++++++++++++++++++- test/unit/mp_error.result | 72 +++++++++- test/unit/msgpack.result | 17 ++- test/unit/uuid.c | 64 ++++++++- test/unit/uuid.result | 11 +- 18 files changed, 900 insertions(+), 12 deletions(-) create mode 100644 src/box/msgpack.c create mode 100644 src/box/msgpack.h -- 2.21.1 (Apple Git-122.3)