From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EDORJgf3A2HhhQEAgWs5BA (envelope-from ) for ; Fri, 30 Jul 2021 14:56:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iKIrIgf3A2E2bAAAB5/wlQ (envelope-from ) for ; Fri, 30 Jul 2021 12:56:39 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (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 DA23FD7DB for ; Fri, 30 Jul 2021 14:56:38 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A967E291F6; Fri, 30 Jul 2021 08:56:23 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id DD6D2291E8 for ; Fri, 30 Jul 2021 08:56:14 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id B37075FD17; Fri, 30 Jul 2021 08:56:14 -0400 (EDT) Received: (nullmailer pid 2166888 invoked by uid 1000); Fri, 30 Jul 2021 12:56:10 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 11/27] util/unicode: allow calling from C++ Date: Fri, 30 Jul 2021 09:55:51 -0300 Message-Id: <20210730125607.2165433-12-david@tethera.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210730125607.2165433-1-david@tethera.net> References: <20210730125607.2165433-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: CA46ET7TOGL6OXW2W46MZLYYYAYM6YN4 X-Message-ID-Hash: CA46ET7TOGL6OXW2W46MZLYYYAYM6YN4 X-MailFrom: bremner@tethera.net 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=1627649799; 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; bh=qdAoJWbAh/WYahxjNV4ANYAaChBQn+focvG0a16XBwE=; b=tzMij+flG7tNPuEVm9yCMfgbOYfq5/QByNifji1Q4j1X6c9/DR5EEdKnq+wwhpUl7vMRlC 17q+/Y6lOGlVnGUBBrjJLkOvq3v8wNkqGmJYR/gBVpG/SLydiCjzHqF7dBxrblUlHlM9q5 EKm9yKZeNfeAG3dOqg44JV12gCmGBXw3yOHgxJQNSMiP3zUhxeq79KLTugIQ0pd/C/bMuJ bxHG+haDIHxrUXCQnKQq5k4WYF4v+ZpIRxgcPcECK+TObXx9NdbPbmhViCz0w8fFZzgBhu Xpgki7W6/LbUfh8Hib7c4j18RrsiqLY+f8jT7eEcONDaflufbrMEjx9oNgJFxg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627649799; a=rsa-sha256; cv=none; b=RM62GzE6c4c3kyUnyYHWKdnS4oDM+gAEqxPZDaRBthVpP/v/El9Vl9ggns/S/z/0aMXWJP JhnFzvHuwkIoHJ5dtgby8guhI45ICOsGYFXnNlRhhoz6Dbw6IoVDkLADGNczoWrUJ5F1pP XX61sP5SXXiGx7iRRxyOkXPQrfk94qdYUNCmxQgweF2+mZhsVpZNjydjt6aPJjJR4UyLaU l+MCslnJFF4JDSn3GRgsPDmKan+VOpP7wYMe8uEkGMe41LA8YBIwpBAJjEporNR6qLBOMZ rlCViLtSO9APPQY+24PRAimYeHZMANbA0hxxankFfssapy0Zl8ZZBPcyJyt3+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 0.49 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: DA23FD7DB X-Spam-Score: 0.49 X-Migadu-Scanner: scn0.migadu.com X-TUID: gExfgUaUuPyV The omission of the 'extern "C"' machinery seems like an oversight. --- util/unicode-util.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/util/unicode-util.h b/util/unicode-util.h index 32d1e6ef..1bb9336a 100644 --- a/util/unicode-util.h +++ b/util/unicode-util.h @@ -4,9 +4,16 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* The utf8 encoded string would tokenize as a single word, according * to xapian. */ bool unicode_word_utf8 (const char *str); typedef gunichar notmuch_unichar; +#ifdef __cplusplus +} +#endif #endif -- 2.30.2