summaryrefslogtreecommitdiff
path: root/libstd
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-03-02 22:27:44 -0800
committerOri Bernstein <ori@eigenstate.org>2015-03-02 22:27:44 -0800
commit996e59437ef5c435689d2f669fb9c0e987d04c5e (patch)
tree5866859f9bf00bd2fcc4ef43111a31f4195b10bf /libstd
parentb4fe2c27b3a89e1e6ded71a147b6421df607855f (diff)
downloadmc-996e59437ef5c435689d2f669fb9c0e987d04c5e.tar.gz
Allow nonatomic constants in matches.
Until this commit: const Foo = "abc" match x | Foo: ... ;; would fail. This makes us look through the const to find its initializer.
Diffstat (limited to 'libstd')
-rw-r--r--libstd/sys+linux-x64.myr5
1 files changed, 1 insertions, 4 deletions
diff --git a/libstd/sys+linux-x64.myr b/libstd/sys+linux-x64.myr
index 82375ef..7d87422 100644
--- a/libstd/sys+linux-x64.myr
+++ b/libstd/sys+linux-x64.myr
@@ -12,7 +12,7 @@ pkg sys =
type fdopt = int64 /* fd options */
type fd = int32 /* fd */
type whence = uint64 /* seek from whence */
- type filemode = uint32 /*
+ type filemode = uint32 /* file open mode */
type mprot = int64 /* memory protection */
type mopt = int64 /* memory mapping options */
@@ -592,9 +592,6 @@ pkg sys =
/* wrappers to extract wait status */
const waitstatus : (st : int32 -> waitstatus)
- /* threading */
- const futex : (uaddr : int#, op : futexop, val : int, timeout : timespec#, uaddr2 : int#, val3 : int#)
-
/* file manipulation */
const open : (path:byte[:], opts:fdopt -> fd)
const openmode : (path:byte[:], opts:fdopt, mode:int64 -> fd)