Fix recently introduced imports poisoning. (#400)

* Fix import poison introduced.

* Move export to handles, and annotate it.
This commit is contained in:
Eugene Kabanov 2023-06-03 19:36:06 +03:00 committed by GitHub
parent 02fda01bf2
commit 6e80f16e0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -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].}