Date: Thu, 7 Aug 2003 00:45:35 -0700 (PDT) From: "Tim J. Robbins" <tjr@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/locale btowc.c wctob.c Message-ID: <200308070745.h777jZir049514@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
tjr 2003/08/07 00:45:35 PDT
FreeBSD src repository
Modified files:
lib/libc/locale btowc.c wctob.c
Log:
Implement btowc() in terms of mbrtowc() instead of sgetrune(), and
wctob() in terms of wcrtomb() instead of sputrune(). There should be
no functional differences, but there may be a small performance hit
because we make an extra function call.
The aim here is to have as few functions as possible calling
s{get,put}rune() to make it easier to remove them in the future.
Revision Changes Path
1.2 +15 -5 src/lib/libc/locale/btowc.c
1.2 +12 -5 src/lib/libc/locale/wctob.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308070745.h777jZir049514>
