Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 4.3.4 build fails on UnixWare 7
- X-seq: zsh-workers 23791
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: 4.3.4 build fails on UnixWare 7
- Date: Wed, 22 Aug 2007 10:05:21 +0100
- In-reply-to: <200708220539.03136.river@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <200708220539.03136.river@xxxxxxxxxxxxx>
On Wed, 22 Aug 2007 05:38:59 +0100
River Tarnell <river@xxxxxxxxxxxxx> wrote:
> hello,
>
> i am unable to build zsh 4.3.4 on UnixWare 7.1.3. the following error occurs:
>
> cc -c -I. -DHAVE_CONFIG_H -O -o zle_refresh.o zle_refresh.c
> UX:acomp: ERROR: "zle_refresh.c", line 182: integral constant expression
> expected
> *** Error code 1 (bu21)
> UX:make: ERROR: fatal error.
That's a real bug---use of MB_CUR_MAX in arrays should use VARARR().
Index: Src/Zle/zle_refresh.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_refresh.c,v
retrieving revision 1.47
diff -u -r1.47 zle_refresh.c
--- Src/Zle/zle_refresh.c 19 Mar 2007 22:27:45 -0000 1.47
+++ Src/Zle/zle_refresh.c 22 Aug 2007 09:01:23 -0000
@@ -179,9 +179,9 @@
zwcputc(ZLE_INT_T c)
{
#ifdef MULTIBYTE_SUPPORT
- char mbtmp[MB_CUR_MAX + 1];
mbstate_t mbstate;
int i;
+ VARARR(char, mbtmp, MB_CUR_MAX + 1);
if (c == WEOF)
return;
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author