zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk
Subject: Re: 4.3.4 build fails on UnixWare 7
Date: Wed, 22 Aug 2007 10:05:21 +0100	[thread overview]
Message-ID: <20070822100521.26a2972d@news01.csr.com> (raw)
In-Reply-To: <200708220539.03136.river@wikimedia.org>

On Wed, 22 Aug 2007 05:38:59 +0100
River Tarnell <river@wikimedia.org> 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@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


.


      reply	other threads:[~2007-08-22  9:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-22  4:38 River Tarnell
2007-08-22  9:05 ` Peter Stephenson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070822100521.26a2972d@news01.csr.com \
    --to=pws@csr.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).