From: Serge Petrenko <sergepetrenko@tarantool.org> To: vdavydov.dev@gmail.com Cc: tarantool-patches@freelists.org, Serge Petrenko <sergepetrenko@tarantool.org> Subject: [PATCH 0/2] decimal: expose decimal module to lua. Date: Wed, 19 Jun 2019 18:58:03 +0300 [thread overview] Message-ID: <cover.1560958964.git.sergepetrenko@tarantool.org> (raw) https://github.com/tarantool/tarantool/issues/692 https://github.com/tarantool/tarantool/tree/sp/gh-692-decimal-lua This patchset adds decimal module to lua. Since FFI CDATA is chosen to store decimals on lua stack, a new helper to register FFI metatypes is added in the first patch. The second patch does the job itself of exposing the decimal module to lua and adds a minor tes. The patch also contains a documentation request in the commit message. Serge Petrenko (2): lua/utils: add a function to register FFI metatypes. decimal: expose decimal type to lua. src/CMakeLists.txt | 1 + src/lua/decimal.c | 327 ++++++++++++++++++++++++++++++++++++++ src/lua/decimal.h | 39 +++++ src/lua/init.c | 2 + src/lua/utils.c | 28 ++++ src/lua/utils.h | 13 ++ test/app/decimal.result | 172 ++++++++++++++++++++ test/app/decimal.test.lua | 50 ++++++ 8 files changed, 632 insertions(+) create mode 100644 src/lua/decimal.c create mode 100644 src/lua/decimal.h create mode 100644 test/app/decimal.result create mode 100644 test/app/decimal.test.lua -- 2.20.1 (Apple Git-117)
next reply other threads:[~2019-06-19 15:58 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-06-19 15:58 Serge Petrenko [this message] 2019-06-19 15:58 ` [PATCH 1/2] lua/utils: add a function to register FFI metatypes Serge Petrenko 2019-06-19 15:58 ` [PATCH 2/2] decimal: expose decimal type to lua Serge Petrenko 2019-06-20 11:02 ` Serge Petrenko 2019-06-21 15:53 ` Vladimir Davydov 2019-06-24 14:53 ` [tarantool-patches] " Serge Petrenko 2019-06-26 14:02 ` Vladimir Davydov 2019-06-28 14:39 ` Serge Petrenko
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=cover.1560958964.git.sergepetrenko@tarantool.org \ --to=sergepetrenko@tarantool.org \ --cc=tarantool-patches@freelists.org \ --cc=vdavydov.dev@gmail.com \ --subject='Re: [PATCH 0/2] decimal: expose decimal module to lua.' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox