further steps to get rid of deprecated endOfFile and readLine
This commit is contained in:
parent
a489161b16
commit
e261a88d07
11 changed files with 35 additions and 21 deletions
|
|
@ -117,8 +117,8 @@ proc callCompiler(cmdTemplate, filename, options: string): TSpec =
|
|||
var outp = p.outputStream
|
||||
var suc = ""
|
||||
var err = ""
|
||||
while running(p) or not atEnd(outp):
|
||||
var x = outp.readLine().string
|
||||
var x = newStringOfCap(120)
|
||||
while outp.readLine(x.TaintedString) or running(p):
|
||||
if x =~ pegOfInterest:
|
||||
# `s` should contain the last error/warning message
|
||||
err = x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue