Improved type system

This commit is contained in:
Eduard Urbach 2025-02-09 23:52:07 +01:00
parent c0ffddaba8
commit 2e3857622a
Signed by: eduard
GPG key ID: 49226B848C78F6C8
30 changed files with 132 additions and 85 deletions

View file

@ -1,9 +1,9 @@
read(fd Int, address Pointer, length Int) -> Int {
read(fd Int, address *Any, length Int) -> Int {
kernel32.ReadFile(fd, address, length)
return length
}
write(fd Int, address Pointer, length Int) -> Int {
write(fd Int, address *Any, length Int) -> Int {
fd = kernel32.GetStdHandle(-10 - fd)
kernel32.WriteConsoleA(fd, address, length, 0)
return length