Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: getzlequery
- X-seq: zsh-workers 2236
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: pws@xxxxxx (Peter Stephenson)
- Subject: Re: getzlequery
- Date: Tue, 15 Oct 1996 23:05:13 +0200 (MET DST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <199610151351.PAA16223@xxxxxxxxxxxx> from Peter Stephenson at "Oct 15, 96 03:51:27 pm"
- Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary
- Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368
Peter Stephenson wrote:
> I'm getting a `test is always zero' message from getlzlequery() in
> zle_utils.c due to testing whether a char is EOF. This is something
> to do with:
>
> * Src/utils.c: getquery always returned n on cray-unicos. From
> Richard D. Slater (2136)
I do not see the relation between these. However the patch below should fix
that.
Zoltan
--- Src/zle_utils.c 1996/10/15 20:16:35 2.14
+++ Src/zle_utils.c 1996/10/15 20:59:31
@@ -309,7 +309,7 @@
int
getzlequery(void)
{
- char c;
+ int c;
#ifdef FIONREAD
int val;
@@ -332,5 +332,5 @@
/* echo response and return */
putc(c, shout);
- return (int)c;
+ return c;
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author