cvs commit: src/lib/libc/locale btowc.c wctob.c

Tim J. Robbins tjr at FreeBSD.org
Thu Aug 7 00:45:36 PDT 2003


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


More information about the cvs-src mailing list