summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-01-04 10:03:36 +0100
committerBruno Haible <bruno@clisp.org>2020-01-04 10:11:51 +0100
commit3afaa18548fed7085e138d68847b970922e9f067 (patch)
tree56be095f6fa1cd27412d41a71eb9724757ca483c /modules
parentb578e9e7bc440dc0a6db6d316b78bf4ac75d4f9c (diff)
downloadgnulib-3afaa18548fed7085e138d68847b970922e9f067.tar.gz
btoc32: New module.
* lib/uchar.in.h (btoc32): New declaration. * lib/btoc32.c: New file. * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32. * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32. * modules/btoc32: New file. * tests/test-uchar-c++.cc: Test the signature of btoc32. * doc/posix-functions/btowc.texi: Mention the new module.
Diffstat (limited to 'modules')
-rw-r--r--modules/btoc3224
-rw-r--r--modules/uchar1
2 files changed, 25 insertions, 0 deletions
diff --git a/modules/btoc32 b/modules/btoc32
new file mode 100644
index 0000000000..5e5d4a94e2
--- /dev/null
+++ b/modules/btoc32
@@ -0,0 +1,24 @@
+Description:
+btoc32() function: convert unibyte character to 32-bit wide character.
+
+Files:
+lib/btoc32.c
+
+Depends-on:
+uchar
+btowc
+
+configure.ac:
+gl_UCHAR_MODULE_INDICATOR([btoc32])
+
+Makefile.am:
+lib_SOURCES += btoc32.c
+
+Include:
+<uchar.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+Bruno Haible
diff --git a/modules/uchar b/modules/uchar
index 165fae697c..f3f83ae33f 100644
--- a/modules/uchar
+++ b/modules/uchar
@@ -26,6 +26,7 @@ uchar.h: uchar.in.h $(top_builddir)/config.status $(CXXDEFS_H)
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
-e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
-e 's|@''NEXT_UCHAR_H''@|$(NEXT_UCHAR_H)|g' \
+ -e 's/@''GNULIB_BTOC32''@/$(GNULIB_BTOC32)/g' \
-e 's/@''GNULIB_C32TOB''@/$(GNULIB_C32TOB)/g' \
-e 's/@''GNULIB_MBRTOC32''@/$(GNULIB_MBRTOC32)/g' \
-e 's|@''HAVE_MBRTOC32''@|$(HAVE_MBRTOC32)|g' \