Fix recently introduced imports poisoning. (#400)
* Fix import poison introduced. * Move export to handles, and annotate it.
This commit is contained in:
parent
02fda01bf2
commit
6e80f16e0c
|
@ -15,7 +15,10 @@ else:
|
||||||
import "."/[asyncloop, osdefs, osutils]
|
import "."/[asyncloop, osdefs, osutils]
|
||||||
import stew/results
|
import stew/results
|
||||||
from nativesockets import Domain, Protocol, SockType, toInt
|
from nativesockets import Domain, Protocol, SockType, toInt
|
||||||
export Domain, Protocol, SockType, results, osutils
|
export Domain, Protocol, SockType, results
|
||||||
|
|
||||||
|
when defined(windows):
|
||||||
|
export raiseSignal, raiseConsoleCtrlSignal
|
||||||
|
|
||||||
const
|
const
|
||||||
asyncInvalidSocket* = AsyncFD(osdefs.INVALID_SOCKET)
|
asyncInvalidSocket* = AsyncFD(osdefs.INVALID_SOCKET)
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
import stew/results
|
import stew/results
|
||||||
import osdefs, oserrno
|
import osdefs, oserrno
|
||||||
|
|
||||||
export results, osdefs, oserrno
|
export results
|
||||||
|
|
||||||
when (NimMajor, NimMinor) < (1, 4):
|
when (NimMajor, NimMinor) < (1, 4):
|
||||||
{.push raises: [Defect].}
|
{.push raises: [Defect].}
|
||||||
|
|
Loading…
Reference in New Issue