cvs commit: src/lib/libc/stdio fgetwc.c findfp.c fputwc.c freopen.c fseek.c local.h ungetwc.c

Tim J. Robbins tjr at FreeBSD.org
Sat May 22 08:20:38 PDT 2004


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


More information about the cvs-src mailing list