* fixes #21393 and misc style changes * progress --------- Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
This commit is contained in:
parent
7dc80a7fef
commit
8a19ac2070
11 changed files with 70 additions and 61 deletions
|
|
@ -570,12 +570,8 @@ when defined(windows) and not defined(useNimRtl):
|
|||
if a == 0: raiseOSError(osLastError())
|
||||
|
||||
proc newFileHandleStream(handle: Handle): owned FileHandleStream =
|
||||
new(result)
|
||||
result.handle = handle
|
||||
result.closeImpl = hsClose
|
||||
result.atEndImpl = hsAtEnd
|
||||
result.readDataImpl = hsReadData
|
||||
result.writeDataImpl = hsWriteData
|
||||
result = FileHandleStream(handle: handle, closeImpl: hsClose, atEndImpl: hsAtEnd,
|
||||
readDataImpl: hsReadData, writeDataImpl: hsWriteData)
|
||||
|
||||
proc buildCommandLine(a: string, args: openArray[string]): string =
|
||||
result = quoteShell(a)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue