zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: minor zle_utils fix
@ 2005-01-16 16:22 Clint Adams
  2005-01-17 10:40 ` Peter Stephenson
  0 siblings, 1 reply; 6+ messages in thread
From: Clint Adams @ 2005-01-16 16:22 UTC (permalink / raw)
  To: zsh-workers

I think this should be uncontroversial.  Is zlegetline() meant to
convert zleline to a UTF-8 string and return that?  Then the caller will
need to free it?

Index: Src/Zle/zle_utils.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_utils.c,v
retrieving revision 1.11
diff -u -r1.11 zle_utils.c
--- Src/Zle/zle_utils.c	14 Jan 2005 13:05:25 -0000	1.11
+++ Src/Zle/zle_utils.c	16 Jan 2005 16:17:13 -0000
@@ -67,7 +67,7 @@
 sizeline(int sz)
 {
     while (sz > linesz)
-	zleline = (unsigned char *)realloc(zleline, (linesz *= 4) + 2);
+	zleline = (ZLE_STRING_T)realloc(zleline, (linesz *= 4) + 2);
 }
 
 /*
@@ -85,11 +85,6 @@
     zleline[zlecs++] = chr;
 }
 
-/*
-    return zleline;
-    return zleline;
- */
-
 /**/
 mod_export unsigned char *
 zlegetline(int *ll, int *cs)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-01-22 16:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-16 16:22 PATCH: minor zle_utils fix Clint Adams
2005-01-17 10:40 ` Peter Stephenson
2005-01-19  1:26   ` Clint Adams
2005-01-19 10:49     ` Peter Stephenson
2005-01-22  3:35       ` Clint Adams
2005-01-22 16:22       ` Clint Adams

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).