mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
delete_if, retain_if, rindex_of, compact, compact_count added to List.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module std::net::os;
|
||||
import libc;
|
||||
|
||||
$if (env::OS_TYPE == OsType.LINUX)
|
||||
$if (env::OS_TYPE == LINUX)
|
||||
|
||||
struct AddrInfo
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user