summaryrefslogtreecommitdiff
path: root/mi/mi.h
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-11-04 00:06:59 -0800
committerOri Bernstein <ori@eigenstate.org>2015-11-06 00:39:35 -0800
commit2a27b2d8ac101e17e300a2e25421fc25c403b05b (patch)
tree00876c35ca526b7acc9858db9a51ea162535ad54 /mi/mi.h
parentda4798f000d99dd326a542758da83ad04be72f86 (diff)
downloadmc-2a27b2d8ac101e17e300a2e25421fc25c403b05b.tar.gz
Rewrite pattern matching code.
Much cleaner, and more efficient.
Diffstat (limited to 'mi/mi.h')
-rw-r--r--mi/mi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mi/mi.h b/mi/mi.h
index a29619a..0b9c8a8 100644
--- a/mi/mi.h
+++ b/mi/mi.h
@@ -48,4 +48,5 @@ void dumpcfg(Cfg *c, FILE *fd);
void check(Cfg *cfg);
/* pattern matching */
-void gensimpmatch(Node *m, Node *val, Node ***out, size_t *nout);
+void genmatch(Node *m, Node *val, Node ***out, size_t *nout);
+void genonematch(Node *pat, Node *val, Node *iftrue, Node *iffalse, Node ***out, size_t *nout, Node ***cap, size_t *ncap);