ref: ae494e5d5cbc5ff8094f47efdec22898d84dde63
parent: 18ddda57bcc621dcca8f5c2a6dda3408b073fb24
author: Ori Bernstein <[email protected]>
date: Fri Jul 31 18:49:17 EDT 2015
Fix benchmarks.
--- a/bench/regex-match.myr
+++ b/bench/regex-match.myr
@@ -13,12 +13,12 @@
for i = 0; i < 100; i++
match regex.compile(".*")
| `std.Ok r: re = r
- | `std.Fail m: std.fatal(1, "couldn't compile regex: %s\n", m)
+ | `std.Fail m: std.fatal("couldn't compile regex: %s\n", m)
;;
match regex.exec(re, str)
| `std.Some m:
- | `std.None: std.fatal(1, "Didn't match regex\n")
+ | `std.None: std.fatal("Didn't match regex\n")
;;
regex.free(re)
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -16,6 +16,7 @@
#include "parse.h"
+
Stab *curscope;
void yyerror(const char *s);