about summary refs log tree commit diff
path: root/Src/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/parse.c')
-rw-r--r--Src/parse.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Src/parse.c b/Src/parse.c
index f3908e2e3..3f63bbd68 100644
--- a/Src/parse.c
+++ b/Src/parse.c
@@ -399,6 +399,13 @@ bld_eprog(void)
     return ret;
 }
 
+/**/
+mod_export int
+empty_eprog(Eprog p)
+{
+    return (!p || !p->prog || *p->prog == WCB_END());
+}
+
 /*
  * event	: ENDINPUT
  *			| SEPER