diff options
author | tjr <tjr@FreeBSD.org> | 2003-11-01 05:13:13 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2003-11-01 05:13:13 +0000 |
commit | 3c1f1a199da3314885eb9bfa43aeff376af61002 (patch) | |
tree | 7a458ea464e285a9ff9db7f270ed8f95c1f9e00a /lib/libc/locale/Makefile.inc | |
parent | 8ded4dfb69d56c7c1d2b22688776da16d814d18b (diff) | |
download | FreeBSD-src-3c1f1a199da3314885eb9bfa43aeff376af61002.zip FreeBSD-src-3c1f1a199da3314885eb9bfa43aeff376af61002.tar.gz |
Allow mbrtowc() and wcrtomb() to be implemented directly, instead of
as wrappers around the deprecated 4.4BSD rune functions. This paves the
way for state-dependent encodings, which the rune API does not support.
- Add __emulated_sgetrune() and __emulated_sputrune(), which are
implementations of sgetrune() and sputrune() in terms of
mbrtowc() and wcrtomb().
- Rename the old rune-wrapper mbrtowc() and wcrtomb() functions to
__emulated_mbrtowc() and __emulated_wcrtomb().
- Add __mbrtowc and __wcrtomb function pointers, which point to the
current locale's conversion functions, or the __emulated versions.
- Implement mbrtowc() and wcrtomb() as calls to these function pointers.
- Make the "NONE" encoding implement mbrtowc() and wcrtomb() directly.
All of this emulation mess will be removed, together with rune support,
in FreeBSD 6.
Diffstat (limited to 'lib/libc/locale/Makefile.inc')
-rw-r--r-- | lib/libc/locale/Makefile.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/locale/Makefile.inc b/lib/libc/locale/Makefile.inc index 23ea555..9003321 100644 --- a/lib/libc/locale/Makefile.inc +++ b/lib/libc/locale/Makefile.inc @@ -10,7 +10,8 @@ SRCS+= big5.c btowc.c collate.c collcmp.c euc.c fix_grouping.c frune.c \ mbrlen.c \ mbrtowc.c mbrune.c mbsinit.c mbsrtowcs.c mbtowc.c mbstowcs.c \ mskanji.c nl_langinfo.c nomacros.c none.c rune.c \ - runetype.c setinvalidrune.c setlocale.c setrunelocale.c table.c \ + runetype.c setinvalidrune.c setlocale.c setrunelocale.c srune.c \ + table.c \ tolower.c toupper.c utf2.c utf8.c wcrtomb.c wcsrtombs.c wcsftime.c \ wcstof.c wcstod.c \ wcstoimax.c wcstol.c wcstold.c wcstoll.c \ |