From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp63.i.mail.ru (smtp63.i.mail.ru [217.69.128.43]) (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 20EFB469710 for ; Tue, 19 May 2020 14:52:15 +0300 (MSK) Date: Tue, 19 May 2020 14:51:51 +0300 From: Alexander Turenko Message-ID: <20200519115151.yzemh35jqmsxaj54@tkn_work_nb> References: <22a830fb9d2dbc3883b9710d36ab88c638101002.1589240704.git.v.shpilevoy@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <22a830fb9d2dbc3883b9710d36ab88c638101002.1589240704.git.v.shpilevoy@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH 4/5] error: provide MP_ERROR extension serializer List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladislav Shpilevoy Cc: tarantool-patches@dev.tarantool.org > + const char *field_to_key[MP_ERROR_MAX] = { > + /* MP_ERROR_TYPE = */ "\"type\": ", > + /* MP_ERROR_FILE = */ "\"file\": ", > + /* MP_ERROR_LINE = */ "\"line\": ", > + /* MP_ERROR_MESSAGE = */ "\"message\": ", > + /* MP_ERROR_ERRNO = */ "\"errno\": ", > + /* MP_ERROR_CODE = */ "\"code\": ", > + /* MP_ERROR_FIELDS = */ "\"fields\": ", > + }; Should be static?