Modified const and extern to always use blocks

This commit is contained in:
Eduard Urbach 2025-04-05 19:34:50 +02:00
parent 4c90b6ea6a
commit 51fc0a1272
Signed by: eduard
GPG key ID: 49226B848C78F6C8
16 changed files with 164 additions and 90 deletions

View file

@ -10,8 +10,10 @@ write(fd int, buffer *byte, length int) -> int {
return length
}
kernel32 extern {
GetStdHandle(handle int64) -> int64
ReadConsole(fd int64, buffer *byte, length uint32, written *uint32) -> bool
WriteConsoleA(fd int64, buffer *byte, length uint32, written *uint32) -> bool
extern {
kernel32 {
GetStdHandle(handle int64) -> int64
ReadConsole(fd int64, buffer *byte, length uint32, written *uint32) -> bool
WriteConsoleA(fd int64, buffer *byte, length uint32, written *uint32) -> bool
}
}