'nimfix' improvements; FdSet is TFdSet again

This commit is contained in:
Araq 2014-09-08 08:46:35 +02:00
commit 7333237be6
11 changed files with 46 additions and 54 deletions

View file

@ -883,13 +883,13 @@ elif not defined(useNimRtl):
else:
result = csystem(command)
proc createFdSet(fd: var FdSet, s: seq[Process], m: var int) =
proc createFdSet(fd: var TFdSet, s: seq[Process], m: var int) =
FD_ZERO(fd)
for i in items(s):
m = max(m, int(i.outHandle))
fdSet(cint(i.outHandle), fd)
proc pruneProcessSet(s: var seq[Process], fd: var FdSet) =
proc pruneProcessSet(s: var seq[Process], fd: var TFdSet) =
var i = 0
var L = s.len
while i < L:
@ -905,7 +905,7 @@ elif not defined(useNimRtl):
tv.tv_sec = 0
tv.tv_usec = timeout * 1000
var rd: FdSet
var rd: TFdSet
var m = 0
createFdSet((rd), readfds, m)