summaryrefslogtreecommitdiff
path: root/modules/wchar-single
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2018-05-20 22:11:12 -0700
committerPádraig Brady <P@draigBrady.com>2018-06-23 19:55:33 -0700
commit79ff8c358f3d724b2b5d5cc890f96f05efbf6794 (patch)
treecc64a8025bed658d6a72cdee9708bb5bc20551e9 /modules/wchar-single
parente64f847aeecaea35ca494b8db31807de167caf69 (diff)
downloadgnulib-79ff8c358f3d724b2b5d5cc890f96f05efbf6794.tar.gz
wchar-single: a new module to enable optimizations in wchar replacements
* lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if GNULIB_WCHAR_SINGLE is enabled. * lib/wcwidth.c (wcwidth): Likewise.
Diffstat (limited to 'modules/wchar-single')
-rw-r--r--modules/wchar-single21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/wchar-single b/modules/wchar-single
new file mode 100644
index 0000000000..e047de008b
--- /dev/null
+++ b/modules/wchar-single
@@ -0,0 +1,21 @@
+Description:
+Enable more efficient wchar replacements, where we know
+the locale charset will not change between calls.
+
+Files:
+
+Depends-on:
+wchar
+
+configure.ac:
+gl_MODULE_INDICATOR([wchar-single])
+
+Makefile.am:
+
+Include:
+
+License:
+LGPLv2+
+
+Maintainer:
+all