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 Oq18H1YOJWHb4wAAgWs5BA (envelope-from ) for ; Tue, 24 Aug 2021 17:20:54 +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 aHWUGlYOJWEpbQAAB5/wlQ (envelope-from ) for ; Tue, 24 Aug 2021 15:20:54 +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) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2E509845E for ; Tue, 24 Aug 2021 17:20:54 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 1B45D2052F; Tue, 24 Aug 2021 11:20:29 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 1A6C420514 for ; Tue, 24 Aug 2021 11:20:21 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 117D85FD5C; Tue, 24 Aug 2021 11:20:21 -0400 (EDT) Received: (nullmailer pid 2942851 invoked by uid 1000); Tue, 24 Aug 2021 15:17:51 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 12/36] util/unicode: allow calling from C++ Date: Tue, 24 Aug 2021 08:17:21 -0700 Message-Id: <20210824151745.2941868-13-david@tethera.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210824151745.2941868-1-david@tethera.net> References: <20210824151745.2941868-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 4RAMYFRWZVLLJ7BTHTQNNRZDKOR2XZMP X-Message-ID-Hash: 4RAMYFRWZVLLJ7BTHTQNNRZDKOR2XZMP 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=1629818454; 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=pRRvbWb1zfq8KkM2qkqpQvI3h6pHN4eZE+tRe1h6P5M=; b=jOA1++CIok0DQvrtZkLXM2Ca67CsGxtoqpGinjoPNdXl8iMB+WQewRMW40Q90PmlAuUBza GuzVyFv4dadqeVHKcbaEVsNNQxMyUtraebjJ0qRVT8YBnF5+150Fotb1mGykMgqaSec1Gm kY/E5ezDxIIx/T6vcAA1Zk6qXfelQTz2zUBw1lAARWRXaukJfuupaHVM3BGyJdyHwFbNxx XdWnRGGPCcyk6gjh4Z59zj4VosQC22ieuJX36LuRrHeiBoddp60bFw9SddfmJNtEjnFV4r Ln+XdILZGrUGBRgD0lOFIDZv6Ld04iEjoaRUYaQEiOtG7tM1XdJqxqdgiCKPlw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629818454; a=rsa-sha256; cv=none; b=sJ1mX/LDbB08YXKsukCmqRfYGiJ7NWT9Fslx75VIWYRir5BuGzDxB26273VDgw1WNIY7aA Yp/bm3OMhlaHaLcE0l4td/Bh7C6WrOMC7lwLmjfPcW/9t8s06tgGu42wESAEoLDLG2X7RR qFm7l+LBbEQQlVXza4NjHWOpPx7f3LKpYLz5MDuCmTOTAF92FQjsS8dvb6SWM9GTEwzH1E 8HVU4RchxZjoyU2ijvobOIftgm3RUcXJ6yE7KDQO3XZiCCWJA4GmKyqFjSlaGHVGDXkQho L2/OGvgu/WgeYT5y2iWdmi7Do0tGxe2DhxHtsOBvBq8GapZZhV+PEsy0+bHlwA== 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: -1.00 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: 2E509845E X-Spam-Score: -1.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: qmvnDyfjGfne 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.32.0