Simplified standard library

This commit is contained in:
Eduard Urbach 2025-02-17 17:49:42 +01:00
parent b8e37fafae
commit b7685fd7ec
No known key found for this signature in database
GPG key ID: C874F672B1AF20C0
25 changed files with 232 additions and 231 deletions

View file

@ -1,13 +1,3 @@
extern kernel32 {
SetConsoleCP(cp uint)
SetConsoleOutputCP(cp uint)
ExitProcess(code uint)
}
const cp {
utf8 65001
}
init() {
kernel32.SetConsoleCP(cp.utf8)
kernel32.SetConsoleOutputCP(cp.utf8)
@ -17,4 +7,14 @@ init() {
exit() {
kernel32.ExitProcess(0)
}
const cp {
utf8 65001
}
extern kernel32 {
SetConsoleCP(cp uint)
SetConsoleOutputCP(cp uint)
ExitProcess(code uint)
}