diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-01-22 12:03:55 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-01-22 12:03:55 +0000 |
commit | bdaa4f4c051f76ea487419e3b3969072c60ae40c (patch) | |
tree | 251a3592023d7d0207fa7b3390a8eb6c68360385 | |
parent | d36dbe2337708c367d53feb79075c0ab7b3dc921 (diff) | |
download | zsh-bdaa4f4c051f76ea487419e3b3969072c60ae40c.tar.gz zsh-bdaa4f4c051f76ea487419e3b3969072c60ae40c.tar.xz zsh-bdaa4f4c051f76ea487419e3b3969072c60ae40c.zip |
*** empty log message ***
-rw-r--r-- | Src/Zle/compresult.c | 2 | ||||
-rw-r--r-- | Src/parse.c | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c index 787e7e795..b2c240188 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -165,7 +165,7 @@ static char * cline_str(Cline l, int ins, int *csp, LinkList posl) { Cline s; - int ocs = cs, ncs, pcs, scs, opos, npos; + int ocs = cs, ncs, pcs, scs, opos = -1, npos; int pm, pmax, pmm, pma, sm, smax, smm, sma, d, dm, mid; int i, j, li = 0, cbr, padd = (ins ? wb - ocs : -ocs); Brinfo brp, brs; diff --git a/Src/parse.c b/Src/parse.c index 4d9a48370..330ebbfb5 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -83,9 +83,8 @@ struct heredocs *hdocs; /* * Word code. * - * For now we simply post-process the syntax tree produced by the - * parser. We compile it into a struct eprog. Some day the parser - * above should be changed to emit the word code directly. + * The parser now produces word code, reducing memory consumption compared + * to the nested structs we had before. * * Word code layout: * @@ -157,7 +156,7 @@ struct heredocs *hdocs; * - followed by body * * WC_WHILE - * - data contains type (while, until) and ofsset to after body + * - data contains type (while, until) and offset to after body * - followed by condition * - followed by body * |