mirror of
https://github.com/opnsense/src.git
synced 2026-04-01 23:45:12 -04:00
The <uchar.h> header, part of C11, adds a small number of utility functions for 16/32-bit "universal" characters, which may or may not be UTF-16/32. As our wchar_t is already ISO 10646, simply add light-weight wrappers around wcrtomb() and mbrtowc(). While there, also add (non-yet-standard) _l functions, similar to the ones we already have for the other locale-dependent functions. Reviewed by: theraven
27 lines
413 B
Makefile
27 lines
413 B
Makefile
# $FreeBSD$
|
|
|
|
TESTS= test-mbrtowc \
|
|
test-wcrtomb \
|
|
test-mbsnrtowcs \
|
|
test-mbsrtowcs \
|
|
test-wcsnrtombs \
|
|
test-wcsrtombs \
|
|
test-btowc \
|
|
test-mbrlen \
|
|
test-mbtowc \
|
|
test-wctomb \
|
|
test-mbstowcs \
|
|
test-wcstombs \
|
|
test-mblen \
|
|
test-iswctype \
|
|
test-towctrans \
|
|
test-c16rtomb \
|
|
test-mbrtoc16
|
|
|
|
.PHONY: tests
|
|
tests: ${TESTS}
|
|
for p in ${TESTS}; do ${.OBJDIR}/$$p; done
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
-rm -f ${TESTS}
|