options.nim: no global variables anymore

This commit is contained in:
Andreas Rumpf 2018-05-13 17:52:21 +02:00
commit 328e7a1005
46 changed files with 509 additions and 507 deletions

View file

@ -1456,9 +1456,7 @@ proc renderModule*(n: PNode, infile, outfile: string,
nkCommentStmt: putNL(g)
else: discard
gcoms(g)
if optStdout in gGlobalOptions:
write(stdout, g.buf)
elif open(f, outfile, fmWrite):
if open(f, outfile, fmWrite):
write(f, g.buf)
close(f)
else: