hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit cbc7a0da8c5d574aa73b717fb099387b0f24e6c0
parent beccb4c6b92d4442e9f3034d897ddc4be6389e53
Author: Alexey Yerin <yyp@disroot.org>
Date:   Mon, 21 Feb 2022 21:22:05 +0300

rt+freebsd: fix global syntax for socket constants

Signed-off-by: Alexey Yerin <yyp@disroot.org>

Diffstat:
Mrt/+freebsd/socket.ha | 40++++++++++++++++++++--------------------
1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/rt/+freebsd/socket.ha b/rt/+freebsd/socket.ha @@ -176,12 +176,12 @@ export def SOCK_SEQPACKET: int = 5; export def SOCK_CLOEXEC: int = 0x10000000; export def SOCK_NONBLOCK: int = 0x20000000; -export def IPPROTO_IP = 0; -export def IPPROTO_ICMP = 1; -export def IPPROTO_TCP = 6; -export def IPPROTO_UDP = 17; -export def IPPROTO_IPV6 = 41; -export def IPPROTO_RAW = 255; +export def IPPROTO_IP: int = 0; +export def IPPROTO_ICMP: int = 1; +export def IPPROTO_TCP: int = 6; +export def IPPROTO_UDP: int = 17; +export def IPPROTO_IPV6: int = 41; +export def IPPROTO_RAW: int = 255; export def IPPROTO_HOPOPTS: int = 0; export def IPPROTO_IGMP: int = 2; export def IPPROTO_GGP: int = 3; @@ -278,20 +278,20 @@ export def IPPROTO_SCCSP: int = 96; export def IPPROTO_ETHERIP: int = 97; export def IPPROTO_ENCAP: int = 98; export def IPPROTO_APES: int = 99; -export def IPPROTO_GMTP = 100; -export def IPPROTO_IPCOMP = 108; -export def IPPROTO_SCTP = 132; -export def IPPROTO_MH = 135; -export def IPPROTO_UDPLITE = 136; -export def IPPROTO_HIP = 139; -export def IPPROTO_SHIM6 = 140; -export def IPPROTO_PIM = 103; -export def IPPROTO_CARP = 112; -export def IPPROTO_PGM = 113; -export def IPPROTO_MPLS = 137; -export def IPPROTO_PFSYNC = 240; -export def IPPROTO_RESERVED_253 = 253; -export def IPPROTO_RESERVED_254 = 254; +export def IPPROTO_GMTP: int = 100; +export def IPPROTO_IPCOMP: int = 108; +export def IPPROTO_SCTP: int = 132; +export def IPPROTO_MH: int = 135; +export def IPPROTO_UDPLITE: int = 136; +export def IPPROTO_HIP: int = 139; +export def IPPROTO_SHIM6: int = 140; +export def IPPROTO_PIM: int = 103; +export def IPPROTO_CARP: int = 112; +export def IPPROTO_PGM: int = 113; +export def IPPROTO_MPLS: int = 137; +export def IPPROTO_PFSYNC: int = 240; +export def IPPROTO_RESERVED_253: int = 253; +export def IPPROTO_RESERVED_254: int = 254; export def MSG_OOB: int = 0x00000001; export def MSG_PEEK: int = 0x00000002;