about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/cond.c11
2 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e8ce42879..ad8b24a54 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-06-03  Peter Stephenson  <p.stephenson@samsung.com>
+
+	* unposted: Src/cond.c: restore cond_match() in case used in
+	modules.
+
 2014-06-02  Barton E. Schaefer  <schaefer@zsh.org>
 
 	* 32656 (via Jun T. via waltarix on github): when __APPLE__ is
diff --git a/Src/cond.c b/Src/cond.c
index 6e9b55806..3807409e3 100644
--- a/Src/cond.c
+++ b/Src/cond.c
@@ -532,6 +532,17 @@ cond_val(char **args, int num)
 }
 
 /**/
+mod_export int
+cond_match(char **args, int num, char *str)
+{
+    char *s = args[num];
+
+    singsub(&s);
+
+    return matchpat(str, s);
+}
+
+/**/
 static void
 tracemodcond(char *name, char **args, int inf)
 {