Trim remaining expr/stmt from stdlib (#6742)

This commit is contained in:
Lynn C. Rees 2017-11-15 09:34:48 -07:00 • committed by Andreas Rumpf
commit 0ab373115c
9 changed files with 16 additions and 16 deletions

View file

@ -3,12 +3,12 @@ export nativesockets
{.warning: "rawsockets module is deprecated, use nativesockets instead".}
template newRawSocket*(domain, sockType, protocol: cint): expr =
template newRawSocket*(domain, sockType, protocol: cint): untyped =
{.warning: "newRawSocket is deprecated, use newNativeSocket instead".}
newNativeSocket(domain, sockType, protocol)
template newRawSocket*(domain: Domain = AF_INET,
sockType: SockType = SOCK_STREAM,
protocol: Protocol = IPPROTO_TCP): expr =
protocol: Protocol = IPPROTO_TCP): untyped =
{.warning: "newRawSocket is deprecated, use newNativeSocket instead".}
newNativeSocket(domain, sockType, protocol)