Make reading from stdin work again.

Bootstrapping tested on Linux from csources.
This commit is contained in:
def
2015-03-01 00:16:36 +01:00
parent 2df10fc4a6
commit cfab1394d2
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ proc llStreamOpen*(data: string): PLLStream =
result.s = data
result.kind = llsString
proc llStreamOpen*(f: var File): PLLStream =
proc llStreamOpen*(f: File): PLLStream =
new(result)
result.f = f
result.kind = llsFile

View File

@@ -172,7 +172,7 @@ proc processModule(module: PSym, stream: PLLStream, rd: PRodReader) =
let filename = fileIdx.toFullPathConsiderDirty
if module.name.s == "-":
module.name.s = "stdinfile"
s = llStreamOpenStdIn()
s = llStreamOpen(stdin)
else:
s = llStreamOpen(filename, fmRead)
if s == nil: