Date: Sat, 22 May 2004 08:19:41 -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/stdio fgetwc.c findfp.c fputwc.c freopen.c fseek.c local.h ungetwc.c Message-ID: <200405221519.i4MFJfAE035493@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
tjr 2004/05/22 08:19:41 PDT
FreeBSD src repository
Modified files:
lib/libc/stdio fgetwc.c findfp.c fputwc.c freopen.c
fseek.c local.h ungetwc.c
Log:
Associate a multibyte conversion state object with each stream. Reset it
to the initial state when a stream is opened or seeked upon. Use the
stream's conversion state object instead of a freshly-zeroed one in
fgetwc(), fputwc() and ungetwc().
This is only a performance improvement for now, but it would also be
required in order to support state-dependent encodings.
Revision Changes Path
1.9 +13 -16 src/lib/libc/stdio/fgetwc.c
1.29 +1 -5 src/lib/libc/stdio/findfp.c
1.9 +3 -5 src/lib/libc/stdio/fputwc.c
1.13 +1 -0 src/lib/libc/stdio/freopen.c
1.41 +2 -0 src/lib/libc/stdio/fseek.c
1.24 +2 -11 src/lib/libc/stdio/local.h
1.8 +2 -5 src/lib/libc/stdio/ungetwc.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405221519.i4MFJfAE035493>
