summary refs log tree commit diff
path: root/Src/cond.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2014-06-03 09:53:02 +0100
committerPeter Stephenson <pws@zsh.org>2014-06-03 09:53:02 +0100
commit4664dad925a44df3ac32640193fd559d13ba9318 (patch)
tree312a9182940f47349953c30b050552c6fda596f8 /Src/cond.c
parent108fc822bde8ccfb9f1ee1e05ba11ce88d6fbd7f (diff)
downloadzsh-4664dad925a44df3ac32640193fd559d13ba9318.tar.gz
zsh-4664dad925a44df3ac32640193fd559d13ba9318.tar.xz
zsh-4664dad925a44df3ac32640193fd559d13ba9318.zip
unposted: restore cond_match() in case used in add-on module
Diffstat (limited to 'Src/cond.c')
-rw-r--r--Src/cond.c11
1 files changed, 11 insertions, 0 deletions
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)
 {