Skip to content

Commit 25c8d3e

Browse files
sago35aykevl
authored andcommitted
wasm,wasi: stub runtime.buffered, runtime.getchar
1 parent 7b1e5f6 commit 25c8d3e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/runtime/runtime_tinygowasm.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ func putchar(c byte) {
4949
}
5050
}
5151

52+
func getchar() byte {
53+
// dummy, TODO
54+
return 0
55+
}
56+
57+
func buffered() int {
58+
// dummy, TODO
59+
return 0
60+
}
61+
5262
//go:linkname now time.now
5363
func now() (sec int64, nsec int32, mono int64) {
5464
mono = nanotime()

0 commit comments

Comments
 (0)