mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Better lowering of distinct types. Noreturn function call expr recognized as a "jump" for escape analysis. Preferring "def" in libs. To upper / to lower for ascii. Initial dynlib support.
This commit is contained in:
committed by
Christoffer Lerno
parent
a877d4458c
commit
ddd0497922
@@ -6,7 +6,7 @@ $if !env::os_is_win32() && $defined(AddrInfo):
|
||||
const int F_GETFL = 3;
|
||||
const int F_SETFL = 4;
|
||||
|
||||
typedef NativeSocket = distinct int;
|
||||
def NativeSocket = distinct int;
|
||||
|
||||
extern fn NativeSocket socket(int af, int type, int protocol) @extern("socket");
|
||||
extern fn int getaddrinfo(ZString nodename, ZString servname, AddrInfo* hints, AddrInfo** res);
|
||||
|
||||
@@ -22,7 +22,7 @@ struct AddrInfo
|
||||
AddrInfo* ai_next;
|
||||
}
|
||||
|
||||
typedef NativeSocket = distinct uptr;
|
||||
def NativeSocket = distinct uptr;
|
||||
|
||||
extern fn int wsa_startup(int, void*) @extern("WSAStartup");
|
||||
extern fn int ioctlsocket(NativeSocket, long cmd, ulong *argp);
|
||||
|
||||
Reference in New Issue
Block a user