Moved const and extern identifiers to the left
This commit is contained in:
parent
1a2c21de15
commit
4c90b6ea6a
20 changed files with 69 additions and 86 deletions
|
@ -1,3 +1,13 @@
|
|||
cp const {
|
||||
utf8 65001
|
||||
}
|
||||
|
||||
kernel32 extern {
|
||||
SetConsoleCP(cp uint)
|
||||
SetConsoleOutputCP(cp uint)
|
||||
ExitProcess(code uint)
|
||||
}
|
||||
|
||||
init() {
|
||||
kernel32.SetConsoleCP(cp.utf8)
|
||||
kernel32.SetConsoleOutputCP(cp.utf8)
|
||||
|
@ -11,14 +21,4 @@ exit() {
|
|||
|
||||
crash() {
|
||||
kernel32.ExitProcess(1)
|
||||
}
|
||||
|
||||
const cp {
|
||||
utf8 65001
|
||||
}
|
||||
|
||||
extern kernel32 {
|
||||
SetConsoleCP(cp uint)
|
||||
SetConsoleOutputCP(cp uint)
|
||||
ExitProcess(code uint)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue