about summary refs log tree commit diff stats
path: root/400.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-09-10 22:58:12 -0700
committerKartik Agaram <vc@akkartik.com>2020-09-10 23:00:19 -0700
commit492fb2783f3a72770359a252ffcefbf43c5d57ea (patch)
treefbffa06a6ed9dbbc909e0e2b2f9a4876d35f61f0 /400.mu
parent094b33c107bcb981adb45ffee85bb753e179de13 (diff)
downloadmu-492fb2783f3a72770359a252ffcefbf43c5d57ea.tar.gz
6769 - support for creating fake files in Mu tests
Diffstat (limited to '400.mu')
-rw-r--r--400.mu4
1 files changed, 3 insertions, 1 deletions
diff --git a/400.mu b/400.mu
index b1970f15..80cd63a0 100644
--- a/400.mu
+++ b/400.mu
@@ -46,7 +46,7 @@ sig write f: (addr stream byte), s: (addr array byte)  # writing to file descrip
 sig stream-data-equal? f: (addr stream byte), s: (addr array byte) -> result/eax: boolean
 sig check-stream-equal f: (addr stream byte), s: (addr array byte), msg: (addr array byte)
 sig next-stream-line-equal? f: (addr stream byte), s: (addr array byte) -> result/eax: boolean
-sig check-next-stream-line-equal
+sig check-next-stream-line-equal f: (addr stream byte), s: (addr array byte), msg: (addr array byte)
 sig tailor-exit-descriptor ed: (addr exit-descriptor), nbytes: int
 sig stop ed: (addr exit-descriptor), value: int
 #sig read f: fd or (addr stream byte), s: (addr stream byte) -> num-bytes-read/eax: int
@@ -158,6 +158,8 @@ sig enable-keyboard-immediate-mode
 sig enable-keyboard-type-mode
 sig read-key -> result/eax: byte
 sig open filename: (addr array byte), write?: boolean, out: (addr handle buffered-file)
+sig populate-buffered-file-containing contents: (addr array byte), out: (addr handle buffered-file)
+sig new-buffered-file out: (addr handle buffered-file)
 #sig size in: (addr array _) -> result/eax: int
 
 sig stream-empty? s: (addr stream _) -> result/eax: boolean