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

Re: PATCH: wordcode files



Tanaka Akira wrote:

> In article <200003011006.LAA24751@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
>   Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:
> 
> > Ok, here is the patch.
> 
> Since 9947, make check fails as follows.

Ouch. Still too much string sharing.

I had tested something similar, but with shorter strings, short enough
to be kept inline. Damn.

Bye
 Sven

diff -ru ../z.old/Src/parse.c Src/parse.c
--- ../z.old/Src/parse.c	Wed Mar  1 15:01:59 2000
+++ Src/parse.c	Wed Mar  1 16:52:42 2000
@@ -1335,6 +1335,7 @@
     lineno += oldlineno;
     ecnpats = onp;
     ecssub = oecssub;
+    ecnfunc++;
 
     ecbuf[p] = WCB_FUNCDEF(ecused - 1 - p);
 }
@@ -1504,6 +1505,7 @@
 	    lineno += oldlineno;
 	    ecnpats = onp;
 	    ecssub = oecssub;
+	    ecnfunc++;
 
 	    ecbuf[p] = WCB_FUNCDEF(ecused - 1 - p);
 

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author