summaryrefslogtreecommitdiff
path: root/lib/sys/systypes.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-09-03 09:35:19 -0400
committerOri Bernstein <ori@eigenstate.org>2015-09-04 16:06:00 -0400
commit177875c6a96d728a9a35ab6a52fd00a4ff837ce1 (patch)
tree9230515d91090b5e074f856abb741da0bc326839 /lib/sys/systypes.myr
parentca51f97ae84297763505654567d38a74dc8dad5b (diff)
downloadmc-177875c6a96d728a9a35ab6a52fd00a4ff837ce1.tar.gz
Split lib/sys out of lib/std
Diffstat (limited to 'lib/sys/systypes.myr')
-rw-r--r--lib/sys/systypes.myr7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sys/systypes.myr b/lib/sys/systypes.myr
new file mode 100644
index 0000000..e39f279
--- /dev/null
+++ b/lib/sys/systypes.myr
@@ -0,0 +1,7 @@
+pkg sys =
+ type size = int64 /* spans entire address space */
+ type usize = int64 /* signed size */
+ type off = int64 /* file offsets */
+ type intptr = uint64/* can hold any pointer losslessly */
+ type time = int64 /* milliseconds since epoch */
+;;