texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Patrice Dumas
Date: Sat, 30 Dec 2023 04:08:34 -0500 (EST)

branch: master
commit d96cf459dbae26ad744a5750f02b27226d2cfad0
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Dec 29 23:57:38 2023 +0100

    Add gnulib module for XS
    
    * tp/Texinfo/XS:
    Run "gnulib-tool --add-import unictype/property-test"
---
 ChangeLog                                   |  7 ++++++
 tp/Texinfo/XS/gnulib/lib/Makefile.am        |  9 ++++++++
 tp/Texinfo/XS/gnulib/lib/unictype/pr_test.c | 35 +++++++++++++++++++++++++++++
 tp/Texinfo/XS/gnulib/m4/gnulib-cache.m4     |  2 ++
 tp/Texinfo/XS/gnulib/m4/gnulib-comp.m4      |  3 +++
 5 files changed, 56 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index c973934fb3..ed72e4675b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-12-29  Patrice Dumas  <pertusus@free.fr>
+
+       Add gnulib module for XS
+
+       * tp/Texinfo/XS:
+       Run "gnulib-tool --add-import unictype/property-test"
+
 2023-12-29  Patrice Dumas  <pertusus@free.fr>
 
        Add gnulib modules for XS
diff --git a/tp/Texinfo/XS/gnulib/lib/Makefile.am 
b/tp/Texinfo/XS/gnulib/lib/Makefile.am
index 13739c9b70..4a54dc6eb0 100644
--- a/tp/Texinfo/XS/gnulib/lib/Makefile.am
+++ b/tp/Texinfo/XS/gnulib/lib/Makefile.am
@@ -53,6 +53,7 @@
 #  unictype/ctype-upper \
 #  unictype/property-alphabetic \
 #  unictype/property-join-control \
+#  unictype/property-test \
 #  uninorm/nfc \
 #  uninorm/nfkd \
 #  uninorm/u8-normalize \
@@ -1713,6 +1714,14 @@ EXTRA_DIST += unictype/bitmap.h unictype/pr_soft_dotted.h
 
 ## end   gnulib module unictype/property-soft-dotted
 
+## begin gnulib module unictype/property-test
+
+if LIBUNISTRING_COMPILE_UNICTYPE_PROPERTY_TEST
+libgnu_la_SOURCES += unictype/pr_test.c
+endif
+
+## end   gnulib module unictype/property-test
+
 ## begin gnulib module uninorm/base
 
 BUILT_SOURCES += $(LIBUNISTRING_UNINORM_H)
diff --git a/tp/Texinfo/XS/gnulib/lib/unictype/pr_test.c 
b/tp/Texinfo/XS/gnulib/lib/unictype/pr_test.c
new file mode 100644
index 0000000000..a55e93dda3
--- /dev/null
+++ b/tp/Texinfo/XS/gnulib/lib/unictype/pr_test.c
@@ -0,0 +1,35 @@
+/* Properties of Unicode characters.
+   Copyright (C) 2002, 2005-2007, 2009-2023 Free Software Foundation, Inc.
+   Written by Bruno Haible <bruno@clisp.org>, 2002.
+
+   This file is free software.
+   It is dual-licensed under "the GNU LGPLv3+ or the GNU GPLv2+".
+   You can redistribute it and/or modify it under either
+     - the terms of the GNU Lesser General Public License as published
+       by the Free Software Foundation, either version 3, or (at your
+       option) any later version, or
+     - the terms of the GNU General Public License as published by the
+       Free Software Foundation; either version 2, or (at your option)
+       any later version, or
+     - the same dual license "the GNU LGPLv3+ or the GNU GPLv2+".
+
+   This file is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License and the GNU General Public License
+   for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License and of the GNU General Public License along with this
+   program.  If not, see <https://www.gnu.org/licenses/>.  */
+
+#include <config.h>
+
+/* Specification.  */
+#include "unictype.h"
+
+bool
+uc_is_property (ucs4_t uc, uc_property_t property)
+{
+  return property.test_fn (uc);
+}
diff --git a/tp/Texinfo/XS/gnulib/m4/gnulib-cache.m4 
b/tp/Texinfo/XS/gnulib/m4/gnulib-cache.m4
index 41e8d42a49..83dec9d5de 100644
--- a/tp/Texinfo/XS/gnulib/m4/gnulib-cache.m4
+++ b/tp/Texinfo/XS/gnulib/m4/gnulib-cache.m4
@@ -58,6 +58,7 @@
 #  unictype/ctype-upper \
 #  unictype/property-alphabetic \
 #  unictype/property-join-control \
+#  unictype/property-test \
 #  uninorm/nfc \
 #  uninorm/nfkd \
 #  uninorm/u8-normalize \
@@ -97,6 +98,7 @@ gl_MODULES([
   unictype/ctype-upper
   unictype/property-alphabetic
   unictype/property-join-control
+  unictype/property-test
   uninorm/nfc
   uninorm/nfkd
   uninorm/u8-normalize
diff --git a/tp/Texinfo/XS/gnulib/m4/gnulib-comp.m4 
b/tp/Texinfo/XS/gnulib/m4/gnulib-comp.m4
index 354d91db9a..e730e59f1b 100644
--- a/tp/Texinfo/XS/gnulib/m4/gnulib-comp.m4
+++ b/tp/Texinfo/XS/gnulib/m4/gnulib-comp.m4
@@ -133,6 +133,7 @@ AC_DEFUN([gl_EARLY],
   # Code from module unictype/property-alphabetic:
   # Code from module unictype/property-join-control:
   # Code from module unictype/property-soft-dotted:
+  # Code from module unictype/property-test:
   # Code from module uninorm/base:
   # Code from module uninorm/canonical-decomposition:
   # Code from module uninorm/compat-decomposition:
@@ -409,6 +410,7 @@ AC_DEFUN([gl_INIT],
   AC_REQUIRE([AC_C_INLINE])
   gl_UNICTYPE_H_REQUIRE_DEFAULTS
   gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.1], [unictype/property-soft-dotted])
+  gl_LIBUNISTRING_MODULE([0.9.8], [unictype/property-test])
   gl_LIBUNISTRING_LIBHEADER([1.2], [uninorm.h])
   gl_UNINORM_H
   gl_UNINORM_H_REQUIRE_DEFAULTS
@@ -793,6 +795,7 @@ AC_DEFUN([gl_FILE_LIST], [
   lib/unictype/pr_join_control.h
   lib/unictype/pr_soft_dotted.c
   lib/unictype/pr_soft_dotted.h
+  lib/unictype/pr_test.c
   lib/uninorm.in.h
   lib/uninorm/canonical-decomposition.c
   lib/uninorm/compat-decomposition.c



reply via email to

[Prev in Thread] Current Thread [Next in Thread]