From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0L9kBhFWFWHRNwEAgWs5BA (envelope-from ) for ; Thu, 12 Aug 2021 19:10:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YI4tAhFWFWFrdgAA1q6Kng (envelope-from ) for ; Thu, 12 Aug 2021 17:10:41 +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 C81E2372E for ; Thu, 12 Aug 2021 19:10:40 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 1F1012C047; Thu, 12 Aug 2021 13:09:34 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id AA5B52C030 for ; Thu, 12 Aug 2021 13:09:27 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id A28F05FD5C; Thu, 12 Aug 2021 13:09:27 -0400 (EDT) Received: (nullmailer pid 1348743 invoked by uid 1000); Thu, 12 Aug 2021 17:07:43 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 11/31] util/unicode: allow calling from C++ Date: Thu, 12 Aug 2021 10:07:08 -0700 Message-Id: <20210812170728.1348333-12-david@tethera.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210812170728.1348333-1-david@tethera.net> References: <20210812170728.1348333-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: DBWH3BFA7VHL42TPES2KVPZPUQA3QWFX X-Message-ID-Hash: DBWH3BFA7VHL42TPES2KVPZPUQA3QWFX 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=1628788240; 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=o/jX4YkukuyjuppjzLpBzPCjMzU7Fx6Fd19NgNyp797gHwh7T0zL6sMv79cOs3GhvNtcBT NV0H1Cy3f0SzKInmjTAGwz5HhGcxJQRqLnz+gnhVPmE3YNy299cQ3xx1OIyWFMPATqCFJ5 X98vxPOKE1owFP4nNxqjj9lTN+Z7/ld1BwgjQpDJFA1vBiaJemmgcJa5c+FssJavftIHLk YBX9Cygjn9olb/VltGUJDdSFOehVUgia94d2wIXZTm3tWqbT5TSclyvPjVVMo/zEP2/1yq k5eDpZWdUWm0RwBV+ZzabQu2msTIHywTfLEEV8uEcokZTFWsUjZfWzKVP8uCYg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628788240; a=rsa-sha256; cv=none; b=G5EOdU/7Ez2qn1cYNEzC1a4ScL9EKTyyRFn7yeMtS/3Mp8a74F2d7cenZC3LbVfN4lkxQh +dpe/CXUFU821Z2TVdgi5CP3t17HHHGSlnFr0bEwc9xIvrOzIaQHI6uYGuGK6CiwcJUc8/ B/ymCYujpaQbf00FR3FP0c21C8ngg1vpF6mvlUhS9n5Gvi+yegey4DfZ0QSifNojk62GMU ATAItD3E2C2ly3+td+ZFYoL5So9yA9KoBpYAdy3+14M0aRM7972TVJmLe0Gqcx+izzFBl6 IzZQzk3Wtc+7rPsfysQOLfZI2+ve03Be3t98KDeWu14/P0AjOSiU2CQVgpNCtw== 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.48 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: C81E2372E X-Spam-Score: 0.48 X-Migadu-Scanner: scn1.migadu.com X-TUID: S7iqKGOaGAlp 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