cleanup: namespace Montauk (capital M) => montauk::abi
This commit is contained in:
1 parent
b6ac5ac994
commit
43d43ac9ea
165 files changed
+758
-758
No files matched your search
@@ -120,7 +120,7 @@ extern "C" void _start() {
|
||||
}
|
||||
|
||||
// Create socket
|
||||
int fd = montauk::socket(Montauk::SOCK_TCP);
|
||||
int fd = montauk::socket(montauk::abi::SOCK_TCP);
|
||||
if (fd < 0) {
|
||||
montauk::print("Error: failed to create socket\n");
|
||||
montauk::exit(1);
|
||||
@@ -159,7 +159,7 @@ extern "C" void _start() {
|
||||
|
||||
// Poll keyboard
|
||||
if (montauk::is_key_available()) {
|
||||
Montauk::KeyEvent ev;
|
||||
montauk::abi::KeyEvent ev;
|
||||
montauk::getkey(&ev);
|
||||
|
||||
if (!ev.pressed) continue;
|
||||
@@ -187,7 +187,7 @@ extern "C" void _start() {
|
||||
montauk::putchar(ev.ascii);
|
||||
}
|
||||
} else {
|
||||
montauk::wait_handle(fd, Montauk::IPC_SIGNAL_READABLE | Montauk::IPC_SIGNAL_PEER_CLOSED, 10);
|
||||
montauk::wait_handle(fd, montauk::abi::IPC_SIGNAL_READABLE | montauk::abi::IPC_SIGNAL_PEER_CLOSED, 10);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user