From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 286212A761 for ; Tue, 2 Oct 2018 16:50:57 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TorO7UE2PLST for ; Tue, 2 Oct 2018 16:50:57 -0400 (EDT) Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id C9A002A6D7 for ; Tue, 2 Oct 2018 16:50:56 -0400 (EDT) Received: by mail-lj1-f196.google.com with SMTP id v7-v6so2613576ljg.5 for ; Tue, 02 Oct 2018 13:50:56 -0700 (PDT) From: AlexeyIvushkin Subject: [tarantool-patches] [PATCH 0/2] First part of SQLite error codes refactoring Date: Tue, 2 Oct 2018 23:50:32 +0300 Message-Id: Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: tarantool-patches@freelists.org Cc: Morgan-iv From: Morgan-iv These 2 patches are the beginning of SQLite error codes refactoring. Both of them change implementation of affected error codes from define macro to enum statement, and remove codes that aren't returned anywhere, but first also remove related function that aren't called anywhere too. First patch affects SQLITE_IOERR_ codes, second - SQLITE_CONSTRAINT_ codes. Final rename of all error codes affected in these 2 patches and the next several patches in this branch will be applied after removing all unused error codes and removing all found unused functions related to affected SQLite error codes Issue: https://github.com/tarantool/tarantool/issues/3315 Branch: https://github.com/tarantool/tarantool/tree/Morgan-iv/gh-3315 Morgan-iv (2): sql: refactor SQLITE_IOERR_ error codes sql: remove unused SQLITE_CONSTRAINT_ error codes src/box/sql/main.c | 51 ---------------------------- src/box/sql/os_unix.c | 88 ------------------------------------------------- src/box/sql/sqliteInt.h | 56 ++++++++++++------------------- 3 files changed, 21 insertions(+), 174 deletions(-) -- 2.7.4