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

Re: getzlequery



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