From def61c9fcd618ef9a58dd4671978bff7ceaf601a Mon Sep 17 00:00:00 2001 From: def Date: Sat, 16 May 2015 12:38:53 +0200 Subject: Clean up stdin file reading of compiler. Uses "stdinfile" as the module identifier now, which prevents problems with - colliding with the minus operator. This fixes #2422 and #2702. --- compiler/passes.nim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'compiler/passes.nim') diff --git a/compiler/passes.nim b/compiler/passes.nim index 129d8ad47..e031dae10 100644 --- a/compiler/passes.nim +++ b/compiler/passes.nim @@ -170,11 +170,7 @@ proc processModule(module: PSym, stream: PLLStream, rd: PRodReader) = openPasses(a, module) if stream == nil: let filename = fileIdx.toFullPathConsiderDirty - if module.name.s == "-": - module.name.s = "stdinfile" - s = llStreamOpen(stdin) - else: - s = llStreamOpen(filename, fmRead) + s = llStreamOpen(filename, fmRead) if s == nil: rawMessage(errCannotOpenFile, filename) return -- cgit 1.4.1-2-gfad0