Remove of @extname in stdlib.

This commit is contained in:
Christoffer Lerno
2023-02-02 21:53:37 +01:00
parent 3b3dd334e0
commit 6407eb47a4
29 changed files with 136 additions and 136 deletions

View File

@@ -8,11 +8,11 @@ const int F_SETFL = 4;
define NativeSocket = distinct int;
extern fn NativeSocket socket(int af, int type, int protocol) @extname("socket");
extern fn NativeSocket socket(int af, int type, int protocol) @extern("socket");
extern fn int getaddrinfo(ZString nodename, ZString servname, AddrInfo* hints, AddrInfo** res);
extern fn void freeaddrinfo(AddrInfo* addr);
extern fn int connect(NativeSocket, void*, usz);
extern fn int fcntl(NativeSocket socket, int cmd, ...) @extname("fcntl");
extern fn int fcntl(NativeSocket socket, int cmd, ...) @extern("fcntl");
extern fn int close(NativeSocket);
macro void! NativeSocket.close(NativeSocket this)

View File

@@ -24,7 +24,7 @@ struct AddrInfo
define NativeSocket = distinct uptr;
extern fn int wsa_startup(int, void*) @extname("WSAStartup");
extern fn int wsa_startup(int, void*) @extern("WSAStartup");
extern fn int ioctlsocket(NativeSocket, long cmd, ulong *argp);
extern fn int closesocket(NativeSocket);