diff options
author | Ori Bernstein <ori@eigenstate.org> | 2015-05-07 11:16:12 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2015-05-07 11:16:12 -0700 |
commit | 6a8faed320bdd72e0ca316ee4f780ed25bf141ae (patch) | |
tree | aa38a0300a868c67919bf25b0234b42cbd22cc57 | |
parent | fb2f85ca9b8e7033d6d7190ecc59b0120f246830 (diff) | |
download | mc-6a8faed320bdd72e0ca316ee4f780ed25bf141ae.tar.gz |
Fix up OSX to work with previous tests.
-rw-r--r-- | libregex/bld.sub | 2 | ||||
-rw-r--r-- | libstd/sys+osx-x64.myr | 4 | ||||
-rw-r--r-- | test/mandelbrot.myr | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/libregex/bld.sub b/libregex/bld.sub index a56d611..fbd6de3 100644 --- a/libregex/bld.sub +++ b/libregex/bld.sub @@ -10,6 +10,8 @@ lib regex = bin redump {noinst} = redump.myr lib ../libstd:std + lib ../libbio:bio + lib regex ;; gen ranges.myr {durable} = diff --git a/libstd/sys+osx-x64.myr b/libstd/sys+osx-x64.myr index 566274c..f585776 100644 --- a/libstd/sys+osx-x64.myr +++ b/libstd/sys+osx-x64.myr @@ -39,6 +39,7 @@ pkg sys = `Waitexit int32 `Waitsig int32 `Waitstop int32 + `Waitfail int32 ;; type statbuf = struct @@ -924,6 +925,9 @@ const sysctl = {mib, old, new } const waitstatus = {st + if st < 0 + -> `Waitfail st + ;; match st & 0o177 | 0: -> `Waitexit (st >> 8) | 0o177:-> `Waitstop (st >> 8) diff --git a/test/mandelbrot.myr b/test/mandelbrot.myr index bfe8ca9..901696f 100644 --- a/test/mandelbrot.myr +++ b/test/mandelbrot.myr @@ -29,6 +29,7 @@ const mandelbrot = {x, y -> 0 ;; ;; + -> 0 } const main = {args : byte[:][:] |