Added asyncio module; irc, scgi and the ftpclient modules work with it. Added (de)allocCStringArray. Many async sockets fixes.
This commit is contained in:
parent
e92693ec8d
commit
b298b07567
8 changed files with 812 additions and 192 deletions
|
|
@ -487,13 +487,6 @@ elif not defined(useNimRtl):
|
|||
result[i] = cast[cstring](alloc(x.len+1))
|
||||
copyMem(result[i], addr(x[0]), x.len+1)
|
||||
inc(i)
|
||||
|
||||
proc deallocCStringArray(a: cstringArray) =
|
||||
var i = 0
|
||||
while a[i] != nil:
|
||||
dealloc(a[i])
|
||||
inc(i)
|
||||
dealloc(a)
|
||||
|
||||
proc startProcess(command: string,
|
||||
workingDir: string = "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue