From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 84C916EC5B; Wed, 17 Feb 2021 23:15:30 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 84C916EC5B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1613592930; bh=k/IYMKvnPZHEMkW7H+2P8Y3kulmDCu0/Ae2OkSYqonU=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=dEk0w0F5+Y83pDuQzVXVgREmkjGg2ipFq5HRL5VqNUq7b708/9KiFjSxM4RQEW7k7 ZlCUkluLPVao5UuMdUOLi28WpdWhVoFXVN3tt1gS4IAIFN00qPINo9oe8Q/CemNNtB HE0NkfEusZfDj5eTeiu9nfaH/aZO3ltN4GJTaVJM= Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id E905A6EC5B for ; Wed, 17 Feb 2021 23:15:28 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org E905A6EC5B Received: by mail-lf1-f52.google.com with SMTP id f1so23937024lfu.3 for ; Wed, 17 Feb 2021 12:15:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7bI/Yp0KH3Wf56aPHxBegL5rb0HLNCeU7mfxsufvYRg=; b=c8+YjVLA8fhRwGFVvIP0QP4KxZnltCQwrp7zNN+y3AZIGxHVbhWCypFEDyGNVRrZRv 0JVivpwPJJuG3YDuj3e/Jwsyjn1dLI+GrPKvyn6CwqMCI51FygFI9AMweqT68V85PUfD rJawM6qUT61DQEAbj42sPCJPhvyLGvDmjg7P3D3o5pFnaudTRb5btZaM3qO9tdJqxDmD +fKE78fleNg98vfd2yPSCHL/m2Lk+MJJb6a6+6zxahjtbojzse//1DqBNqTYfKznlR89 CyNfKcz+Vjh0FrM9uQixv4ZGS6A/MhPyoIzi5c5f++m+9LYi1GkymZBpWNTtI8wXJQ1a omGg== X-Gm-Message-State: AOAM530q6Nx+kUYUmTlPmKsruskOPLYMXO9Xf5ZC0nHfC+tjZ8Cb0jT6 yyOqyOejIyJJAIkCyEWDiNbd+kYvTOY= X-Google-Smtp-Source: ABdhPJxweJOoV3Ze4wlAFm+mh1HOUzTafzhObO9i8umMCaJyLJlsxFIFd3KU4dFvVcNqG3W005Pr3A== X-Received: by 2002:a19:5219:: with SMTP id m25mr334892lfb.402.1613592927622; Wed, 17 Feb 2021 12:15:27 -0800 (PST) Received: from grain.localdomain ([5.18.171.94]) by smtp.gmail.com with ESMTPSA id d24sm353130lfc.225.2021.02.17.12.15.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Feb 2021 12:15:26 -0800 (PST) Received: by grain.localdomain (Postfix, from userid 1000) id ADF28560132; Wed, 17 Feb 2021 23:15:25 +0300 (MSK) To: tml Date: Wed, 17 Feb 2021 23:15:17 +0300 Message-Id: <20210217201521.436951-1-gorcunov@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210217123945.396396-1-gorcunov@gmail.com> References: <20210217123945.396396-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/4] cmod: refactor box/func X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Cyrill Gorcunov via Tarantool-patches Reply-To: Cyrill Gorcunov Cc: Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Add more use of cmod code in box.schema.func related functionality. This allows us to shrink code a bit. Note the series is on top of > [PATCH v18 0/2] box: implement cmod Lua module > https://lists.tarantool.org/tarantool-patches/20210217123945.396396-1-gorcunov@gmail.com/ thus not on plain master branch code. They are sitting in branch gorcunov/gh-4642-func-ro-18-unify Cyrill Gorcunov (4): box/func: drop redundant module argument box/func: update module cache in one pass cmod: export cmod_call helper box/func: simplify func_c_call src/box/call.c | 11 +++------- src/box/func.c | 55 ++++++++++++++++++---------------------------- src/box/func.h | 3 +-- src/box/lua/cmod.c | 24 ++++++++------------ src/box/lua/cmod.h | 15 +++++++++++++ 5 files changed, 49 insertions(+), 59 deletions(-) base-commit: 99b13539c8534460bf99e5a90c8865a35413dbbd -- 2.29.2