about summary refs log tree commit diff
path: root/Src/parse.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-01-19 17:35:54 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-01-19 17:35:54 +0000
commit31a13a8931c6d662327440edc152eb03da466c45 (patch)
tree1ed98311d11981e291651359802d6b9fd282fcf8 /Src/parse.c
parent377fde4b22ad2ba1cf260a41a22fd4a6c9d9cbdb (diff)
downloadzsh-31a13a8931c6d662327440edc152eb03da466c45.tar.gz
zsh-31a13a8931c6d662327440edc152eb03da466c45.tar.xz
zsh-31a13a8931c6d662327440edc152eb03da466c45.zip
zsh-workers/9367
Diffstat (limited to 'Src/parse.c')
-rw-r--r--Src/parse.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/Src/parse.c b/Src/parse.c
index 11aa0b60f..ecb88536b 100644
--- a/Src/parse.c
+++ b/Src/parse.c
@@ -1727,7 +1727,7 @@ yyerror(int noerr)
  * Word code layout:
  *
  *   WC_END
- *     - only used for empty functions
+ *     - end of program code
  *
  *   WC_LIST
  *     - data contains type (sync, ...)
@@ -2217,6 +2217,14 @@ ecomp(struct node *n)
 	    }
 	}
 	break;
+    case N_COND:
+	eccond((Cond) n);
+	break;
+#ifdef DEBUG
+    default:
+	dputs("BUG: node type not handled in ecomp().");
+	break;
+#endif
     }
 }
 
@@ -2335,8 +2343,7 @@ execompile(List list)
     ecsoffs = ecnpats = 0;
 
     ec(list);
-    if (!ecused)
-	ecadd(WCB_END());
+    ecadd(WCB_END());
 
     ret = (Eprog) zhalloc(sizeof(*ret));
     ret->len = ((ecnpats * sizeof(Patprog)) +