From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14282 invoked from network); 23 Feb 2005 11:01:24 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Feb 2005 11:01:24 -0000 Received: (qmail 22803 invoked from network); 23 Feb 2005 11:01:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Feb 2005 11:01:18 -0000 Received: (qmail 29583 invoked by alias); 23 Feb 2005 11:01:13 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20851 Received: (qmail 29569 invoked from network); 23 Feb 2005 11:01:12 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 23 Feb 2005 11:01:12 -0000 Received: (qmail 22516 invoked from network); 23 Feb 2005 11:01:11 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 23 Feb 2005 11:01:06 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Wed, 23 Feb 2005 10:59:37 +0000 Received: from news01.csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 23 Feb 2005 11:02:01 +0000 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.1/8.12.11) with ESMTP id j1NB15QZ026413 for ; Wed, 23 Feb 2005 11:01:05 GMT Received: from csr.com (pws@localhost) by news01.csr.com (8.13.1/8.13.1/Submit) with ESMTP id j1NB15A4026410 for ; Wed, 23 Feb 2005 11:01:05 GMT Message-Id: <200502231101.j1NB15A4026410@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk Subject: Re: How ANSI can we assume C? In-reply-to: <200502231242.26138.arvidjaar@newmail.ru> References: <200502231223.08125.arvidjaar@newmail.ru> <200502231242.26138.arvidjaar@newmail.ru> Date: Wed, 23 Feb 2005 11:01:04 +0000 From: Peter Stephenson X-OriginalArrivalTime: 23 Feb 2005 11:02:01.0505 (UTC) FILETIME=[19E3E910:01C51997] X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.5 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.5 Andrey Borzenkov wrote: > On Wednesday 23 February 2005 12:23, Andrey Borzenkov wrote: > > As long as widechar support remains conditional, defining wide/non-wide > > versions really becomes nightmare. > > > > Specifically I'd like simply use > > > > #define ZWC(c) L ## c (or even L ## 'c') > ^^^^^^^^^^^^^^^^^ nope, bad idea > > > > and use it everyhere. It is much easier to use than inventing obscure names > > for characters. > > > > And it also allows wide strings in place which is fast impossible otherwise > without tons of ifdef The code is already full of "const"s. I suspect we can probably get away with this. I hope the last K&R compiler has now died... -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. **********************************************************************