ref: 3275466125600478539c2ceb172b23c86edd8894
parent: b643d83516f55c8628759aa654669b6eeb4f18ca
author: Ori Bernstein <[email protected]>
date: Thu Sep 5 13:21:38 EDT 2013
Add abort for formatted BIO output.
--- a/bio.myr
+++ b/bio.myr
@@ -52,7 +52,7 @@
const readtob : (f : biofile#, delim : byte -> byte[:])
/* formatted i/o */
- const print : (f : biofile#, fmt : byte[:], args : ... -> std.size)
+ const put : (f : biofile#, fmt : byte[:], args : ... -> std.size)
;;
const Bufsz = 16*1024 /* 16k */
@@ -284,6 +284,11 @@
const readln = {f
-> readto(f, '\n')
+}
+
+const put = {f, fmt, args
+ std.fatal(1, "Formatted put on BIO unimplemented")
+ -> 0
}
/*