[std/os clean up] import and export osseps (#20580)

import and export osseps
This commit is contained in:
ringabout 2022-10-18 02:29:00 +08:00 • committed by GitHub
commit c0824b9b80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View file

@ -364,7 +364,7 @@ Files that may need changed for your platform include:
Add os/cpu to `Project.Platforms` field.
* `lib/system/platforms.nim`
Add os/cpu.
* `lib/pure/include/osseps.nim`
* `std/private/osseps.nim`
Add os specializations.
* `lib/pure/distros.nim`
Add os, package handler.

View file

@ -95,7 +95,8 @@ type
OSErrorCode* = distinct int32 ## Specifies an OS Error Code.
include "includes/osseps"
import std/private/osseps
export osseps
proc absolutePathInternal(path: string): string {.gcsafe.}

View file

@ -14,7 +14,7 @@
# Yes, this uses import here, not include so that
# we don't end up exporting these symbols from pathnorm and os:
import includes/osseps
import std/private/osseps
type
PathIter* = object