From owner-cvs-all@FreeBSD.ORG Thu Aug 7 00:45:36 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D7AD37B401; Thu, 7 Aug 2003 00:45:36 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9A0643F3F; Thu, 7 Aug 2003 00:45:35 -0700 (PDT) (envelope-from tjr@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h777jZ0U049515; Thu, 7 Aug 2003 00:45:35 -0700 (PDT) (envelope-from tjr@repoman.freebsd.org) Received: (from tjr@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h777jZir049514; Thu, 7 Aug 2003 00:45:35 -0700 (PDT) Message-Id: <200308070745.h777jZir049514@repoman.freebsd.org> From: "Tim J. Robbins" Date: Thu, 7 Aug 2003 00:45:35 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/locale btowc.c wctob.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2003 07:45:36 -0000 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