summaryrefslogtreecommitdiff
path: root/libstd/varargs.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-06-07 09:27:06 -0700
committerOri Bernstein <ori@eigenstate.org>2015-06-07 09:27:06 -0700
commitac965251351332f405c9e5390e00d436fa467ff4 (patch)
tree79120b3dcb7ef245ffe66e8f67fd30189f0f3a57 /libstd/varargs.myr
parente024022f35c31fa7f9dd85eaeb6719c57d817aba (diff)
downloadmc-ac965251351332f405c9e5390e00d436fa467ff4.tar.gz
Add support for custom formatting.
Diffstat (limited to 'libstd/varargs.myr')
-rw-r--r--libstd/varargs.myr10
1 files changed, 5 insertions, 5 deletions
diff --git a/libstd/varargs.myr b/libstd/varargs.myr
index d311585..bb44345 100644
--- a/libstd/varargs.myr
+++ b/libstd/varargs.myr
@@ -7,9 +7,9 @@ pkg std =
type valist
const vastart : (args : ...# -> valist)
- const vatype : (ap : valist -> byte[:])
- const vaskip : (ap : valist -> byte[:])
- generic vanext : (ap : valist -> (@a, valist))
+ const vatype : (ap : valist# -> byte[:])
+ const vaskip : (ap : valist# -> byte[:])
+ generic vanext : (ap : valist# -> @a)
;;
type valist = struct
@@ -55,7 +55,7 @@ const vatype = {ap
-> tcpeek(&ap.tc)
}
-generic vanext = {ap -> (@a, valist)
+generic vanext = {ap -> @a
var v : @a
var align
var p
@@ -83,5 +83,5 @@ generic vanext = {ap -> (@a, valist)
/* only move on after we read through the value */
ap.args = ((p castto(intptr)) + sizeof(@a)) castto(byte#)
- -> (v, ap)
+ -> v
}