Skip to content

Commit 86698e4

Browse files
committed
feat(EXT): stat.S_I*(Mode): bool
1 parent 6c51835 commit 86698e4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/pylib/Lib/stat_impl/isX.nim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import ./isXImpl
33
import ./[consts, types]
44

55
template makeSIsFuncTemplate(name: untyped) {.dirty.} =
6-
proc `S_IS name`*(omode: int): bool=
6+
export isXImpl.`S_IS name`
7+
proc `S_IS name`*(omode: int): bool =
78
`S_IS name` int_AsMode_t(omode)
89

910
# Generate S_IS* functions
@@ -25,10 +26,10 @@ proc S_IMODE*(omode: int): int =
2526

2627
# const stat_S_IMODE_doc = "Return the portion of the file's mode that can be set by os.chmod()."
2728

28-
proc S_IFMT_impl(omode: Mode): int =
29+
proc S_IFMT*(omode: Mode): int =
2930
int(omode and Mode S_IFMT_val)
3031

3132
proc S_IFMT*(omode: int): int =
32-
S_IFMT_impl(int_AsMode_t(omode))
33+
S_IFMT(int_AsMode_t(omode))
3334

3435
# const stat_S_IFMT_doc = "Return the portion of the file's mode that describes the file type."

0 commit comments

Comments
 (0)