further steps to get rid of deprecated endOfFile and readLine

This commit is contained in:
Araq 2011-11-29 01:24:58 +01:00
commit e261a88d07
11 changed files with 35 additions and 21 deletions

View file

@ -1,6 +1,6 @@
discard """
line: 9
errmsg: "'a' is deprecated [Deprecated]"
errormsg: "'a' is deprecated [Deprecated]"
"""
var

View file

@ -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