summaryrefslogtreecommitdiff
path: root/libstd/varargs.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-02-20 02:15:01 -0500
committerOri Bernstein <ori@eigenstate.org>2013-02-20 02:15:01 -0500
commit3e92cda1745121a0545c581d9f135feed9e280bd (patch)
tree4a594c23003a52e5d66b2a79fbca5d5733631b11 /libstd/varargs.myr
parent543887f46d1d7796bd8f1e6d329401197b19ec56 (diff)
downloadmc-3e92cda1745121a0545c581d9f135feed9e280bd.tar.gz
'#' is now the postfix pointer deref operator.
This makes operator precedence less confusing.
Diffstat (limited to 'libstd/varargs.myr')
-rw-r--r--libstd/varargs.myr6
1 files changed, 3 insertions, 3 deletions
diff --git a/libstd/varargs.myr b/libstd/varargs.myr
index 96c7b38..f7b7ffb 100644
--- a/libstd/varargs.myr
+++ b/libstd/varargs.myr
@@ -3,11 +3,11 @@ use "types.use"
pkg std =
type valist
- const vastart : (args : ...* -> valist)
+ const vastart : (args : ...# -> valist)
generic vanext : (ap : valist -> [@a, valist])
;;
-type valist = byte*
+type valist = byte#
/*
* a valist is really just a pointer to the varargs.
@@ -44,7 +44,7 @@ generic vanext = {ap -> [@a, valist]
p = (p + align - 1) & ~(align - 1)
ap = p castto(valist)
- v = *(ap castto(@a*))
+ v = (ap castto(@a#))#
/* only move on after we read through the value */
ap = ((p castto(intptr)) + sizeof(@a)) castto(valist)