File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ import ./isXImpl
3
3
import ./ [consts, types]
4
4
5
5
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 =
7
8
`S_IS name` int_AsMode_t(omode)
8
9
9
10
# Generate S_IS* functions
@@ -25,10 +26,10 @@ proc S_IMODE*(omode: int): int =
25
26
26
27
# const stat_S_IMODE_doc = "Return the portion of the file's mode that can be set by os.chmod()."
27
28
28
- proc S_IFMT_impl (omode: Mode): int =
29
+ proc S_IFMT * (omode: Mode): int =
29
30
int (omode and Mode S_IFMT_val)
30
31
31
32
proc S_IFMT* (omode: int ): int =
32
- S_IFMT_impl (int_AsMode_t(omode))
33
+ S_IFMT (int_AsMode_t(omode))
33
34
34
35
# const stat_S_IFMT_doc = "Return the portion of the file's mode that describes the file type."
You can’t perform that action at this time.
0 commit comments