From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EJ1vBlLZZWFklQAAgWs5BA (envelope-from ) for ; Tue, 12 Oct 2021 20:52:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qEn4AVLZZWHtZAAAbx9fmQ (envelope-from ) for ; Tue, 12 Oct 2021 18:52:02 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C4162EF85 for ; Tue, 12 Oct 2021 20:52:01 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 356FC2C14D; Tue, 12 Oct 2021 14:51:42 -0400 (EDT) Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by mail.notmuchmail.org (Postfix) with ESMTPS id 01B5D26D91 for ; Tue, 12 Oct 2021 14:51:38 -0400 (EDT) Received: by mail-lf1-x133.google.com with SMTP id z11so1068409lfj.4 for ; Tue, 12 Oct 2021 11:51:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikula-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OfoUUZlsKD3RyXlw/uw97YzK7qjtg4vc7tAlPCz1w64=; b=19Y21oHJAzG7nGfUAHGJlZuVpw2k3r9+8vFZ8hcm+a/hgG2jUBq2EZ1xsaLzUmjk0H TkZSTgGe8cXH0kaWW/mQ/yOOLEohzh2+igf/DcvgSHfgMqVbdEPKR5oJ5ihnIbHoF8lo wucIy35gsayHCmH0YqJ96M6OiTot1u+CJvGqAWT3DAjJ0wnIDPvqZB05gJhogSUCovZz 2sUuLRuxZBVMcs6Wk0SN15RjBkE9BzAwLQSRmjhSAVZlDOj5To0cEfUXNglQkjVrH1gj x/6G0HBff1bO700Q7VgFsKfAvn3Gl2HFgDaa3ddbMXWCVjbYiR+wf8av+kVo2xXmxXKJ +jhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OfoUUZlsKD3RyXlw/uw97YzK7qjtg4vc7tAlPCz1w64=; b=Pm+4EVClQ0kfifr+vwcyG7YPDpfIq7xFjS4QUd5VDTsPSOGHB2w9Kd+7S0Eabgq55x EN4EUxlt/EPmOZOw++bsFzZtiHT4KipKZIfzmyTVqJgUMo+sSwzk0o2XjdmgwPgm77pJ Pclns502AQlkIi7XUtRZ/v3O02NcWHfRilbcM6jczkCq+jhNATGM2gidehhVjvO04sAF sGKbm50wUkjEji4OZ4z9PugRRS/g53njvWjiZyVz0YcxfEjBkl/cGP1RupOGQAc9M8hm PKdvn9w7++CG1eRamLYORpbbtyxw6GUrsptaNm/hSdy9SXburs/8l3Oj/PCuUZscq8/7 lGOA== X-Gm-Message-State: AOAM530B06IC3T16iM5pBU5gRE4hPFw+gZCrC7tCFIdU1sh1yrQnISJp 833blU/7xSiw2c1rmu0InW5gO3bDcc/0ikWLlSqtUg== X-Google-Smtp-Source: ABdhPJwlkk6aVNtQ9RNr+omwiD55m1ybWkTBnU3FS8p0idg2CD4F1ekvmSX082Aw/G9rVVtTE9u41A== X-Received: by 2002:a05:6512:14c:: with SMTP id m12mr14751036lfo.407.1634064696260; Tue, 12 Oct 2021 11:51:36 -0700 (PDT) Received: from localhost (87-95-50-104.bb.dnainternet.fi. [87.95.50.104]) by smtp.gmail.com with ESMTPSA id r30sm797113lfp.298.2021.10.12.11.51.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 11:51:35 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Cc: jani@nikula.org Subject: [RFC 2/5] lib: remove enum names from typedefs Date: Tue, 12 Oct 2021 21:51:24 +0300 Message-Id: <20211012185127.198348-3-jani@nikula.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211012185127.198348-1-jani@nikula.org> References: <20211012185127.198348-1-jani@nikula.org> MIME-Version: 1.0 Message-ID-Hash: D27IGWXZP5KGX3TEWA5H74YH3J5EJE2N X-Message-ID-Hash: D27IGWXZP5KGX3TEWA5H74YH3J5EJE2N X-MailFrom: jani@nikula.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634064721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=u0SshqwMS2AtI55kX9WemQ/IdxXjRq5FXluXbFy+SvI=; b=unXvXF+8HrK/Lql9e3xj80hDuGzgP1b3AgbSoxQgWMbJqY6/3SB096lB0VztEGk0VGeBKy QH7YQms5bcuVFecU3J8knHKdwkWf9OiaF0wiIqme5RK7nsmnjD9/4EDb9jolJSXBPl6EpA uPjbeGfVz+hAg9kc0cBWQNQVDK32LNr2MSU+hrWcVA4jiX7zVr688Rpvw+I9C2SxTB1UvI PHDNI7ayJg3AHbph8IiMU3TSE4QCDV858qXvnGxFc6xcMDNBa6hYsg+ROYrI+JtzKQY5t5 KJCNylBTkHmsj7Uki5L5F1nz210EXtbtkXbFYlFF9jBtMLD//YYy58RShcfUpA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634064721; a=rsa-sha256; cv=none; b=hBXjC0b1bkDgJ5fmuBmTXwg0XXMuAHIdynGUo2+waMF8cEqyW0iCTyn6ZLP7h5tvWZ5GRL LEzAvc6MsFFRVuffY5J+ofCMaYGcl4I7K6kEpbByfH7/RcWq1sGa2OP7xZQRB0n7SEU79b xX1627feCruKkQ2+P94FuQ/P/z3a5mjDowaVl5hczg1oWIRiNA4BnSYHeKXAG05AZQoynv 6pFoXWwOKqVi/mbBJqfFdLdAFtTgTjhOlZm3MTc1g2y54DZl9xxEcgI9rJbQ9zHQQL5nCY kTbT4jsMw6AZbEr3JAQRoM43C+hragKv4dVrxQ2HdVW153zdHh75IGh47XrmfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=nikula-org.20210112.gappssmtp.com header.s=20210112 header.b=19Y21oHJ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.18 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=nikula-org.20210112.gappssmtp.com header.s=20210112 header.b=19Y21oHJ; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: C4162EF85 X-Spam-Score: -0.18 X-Migadu-Scanner: scn0.migadu.com X-TUID: uoH5PDYQSPWN Given the named enum typedef: typedef enum _name_t { ... } name_t; Hawkmoth uses _name_t as the name for documentation. Typedef the anonymous enum: typedef enum { ... } name_t; instead to use name_t. We don't really need the enum names for anything, and not all of the enum typedefs have them anyway. --- lib/notmuch.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/notmuch.h b/lib/notmuch.h index 546643e80cbb..ca5878a949bc 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -112,7 +112,7 @@ typedef int notmuch_bool_t; * A zero value (NOTMUCH_STATUS_SUCCESS) indicates that the function * completed without error. Any other value indicates an error. */ -typedef enum _notmuch_status { +typedef enum { /** * No error occurred. */ @@ -1678,7 +1678,7 @@ notmuch_message_reindex (notmuch_message_t *message, /** * Message flags. */ -typedef enum _notmuch_message_flag { +typedef enum { NOTMUCH_MESSAGE_FLAG_MATCH, NOTMUCH_MESSAGE_FLAG_EXCLUDED, @@ -2524,7 +2524,7 @@ notmuch_config_list_destroy (notmuch_config_list_t *config_list); /** * Configuration keys known to libnotmuch */ -typedef enum _notmuch_config_key { +typedef enum { NOTMUCH_CONFIG_FIRST, NOTMUCH_CONFIG_DATABASE_PATH = NOTMUCH_CONFIG_FIRST, NOTMUCH_CONFIG_MAIL_ROOT, -- 2.30.2