On Thu, Nov 01, 2007 at 04:06:39AM +0100, Christoph Mallon wrote: > Andrey Chernov wrote: >> 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'. > > Sorry, I don't understand what you want to tell me. I showed, that your > example is invalid (because of undefined behaviour) and unrealistic, > therefore I provided a better example on how this condition is used. But, > of course, let's look at __isctype() in both variants:
Just backed out. -- http://ache.pp.ru/ _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"