From owner-cvs-all@FreeBSD.ORG Thu Nov 1 02:39:07 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A844716A418; Thu, 1 Nov 2007 02:39:07 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id 23DAF13C48E; Thu, 1 Nov 2007 02:39:06 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.1/8.14.1) with ESMTP id lA12c4cx094532; Thu, 1 Nov 2007 05:38:04 +0300 (MSK) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nagual.pp.ru; s=default; t=1193884685; bh=BlCWuN/m0MaFMiTCysjcEs9MbL65JtYSGMelunI Ibys=; l=520; h=Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To:User-Agent; b=i1tKzmDJjTWhjGAHhBsetQ8diOYFopKeyZ94xVys vPHufVlkzpfAXxC5sOC72cQG4+xoUlkC00/FyNzxCSWw2kZSFKbEDUIfskbShM5rmAl vSkIbIXcr/IfnspI+QE/XiYpSTeCrB5dbdbXykaZ3RW/c4cr/BbwXVgCjr6221Io= Received: (from ache@localhost) by nagual.pp.ru (8.14.1/8.14.1/Submit) id lA12c4LH094531; Thu, 1 Nov 2007 05:38:04 +0300 (MSK) (envelope-from ache) Date: Thu, 1 Nov 2007 05:38:03 +0300 From: Andrey Chernov To: Christoph Mallon Message-ID: <20071101023803.GA94332@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Christoph Mallon , Juli Mallett , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG References: <200710272232.l9RMWSbK072082@repoman.freebsd.org> <20071030200331.GA29309@toxic.magnesium.net> <20071031215526.GC89932@nagual.pp.ru> <47292F79.9030102@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47292F79.9030102@gmx.de> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: cvs-src@FreeBSD.ORG, src-committers@FreeBSD.ORG, Juli Mallett , cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/include _ctype.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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, 01 Nov 2007 02:39:07 -0000 On Thu, Nov 01, 2007 at 02:44:25AM +0100, Christoph Mallon wrote: > Also the example is still unrealistic: You usually don't multiply chars by > two. Lets try something more realistic: an ASCII filter > > int filter_ascii0(int c) > { > return c < 0 || c >= 128 ? '?' : c; > } > > int filter_ascii1(int c) > { > return c & ~0x7F ? '?' : c; > } We don't need that reaslistic examples, we need only what __isctype() does, and it just returns 0 or 1, not 'c'. -- http://ache.pp.ru/