delete_if, retain_if, rindex_of, compact, compact_count added to List.

This commit is contained in:
Christoffer Lerno
2023-04-21 12:15:35 +02:00
parent 809321e20c
commit 8059dc1539
24 changed files with 278 additions and 70 deletions

View File

@@ -1,7 +1,7 @@
module std::net::os;
import libc;
$if (env::OS_TYPE == OsType.MACOS)
$if (env::os_is_darwin())
const AI_NUMERICSERV = 0x1000;
const AI_ALL = 0x100;

View File

@@ -1,7 +1,7 @@
module std::net::os;
import libc;
$if (env::OS_TYPE == OsType.LINUX)
$if (env::OS_TYPE == LINUX)
struct AddrInfo
{

View File

@@ -1,7 +1,7 @@
module std::net::os;
import libc;
$if (env::OS_TYPE != OsType.WIN32 && $defined(AddrInfo))
$if (env::os_is_win32() && $defined(AddrInfo))
const int F_GETFL = 3;
const int F_SETFL = 4;

View File

@@ -1,6 +1,6 @@
module std::net::os;
$if (env::OS_TYPE == OsType.WIN32)
$if (env::os_is_win32())
const int PLATFORM_AF_INET = 1;
const int PLATFORM_AF_IPX = 6;