Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How ANSI can we assume C?



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 <pws@xxxxxxx>                  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.

**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author