preparations of making compiler/msgs.nim free of global variables
This commit is contained in:
parent
2a7fc84c86
commit
bf6c2c5ccf
38 changed files with 179 additions and 183 deletions
|
|
@ -717,7 +717,7 @@ proc handleCRLF(L: var TLexer, pos: int): int =
|
|||
if optEmbedOrigSrc in L.config.globalOptions:
|
||||
let lineStart = cast[ByteAddress](L.buf) + L.lineStart
|
||||
let line = newString(cast[cstring](lineStart), col)
|
||||
addSourceLine(L.fileIdx, line)
|
||||
addSourceLine(L.config, L.fileIdx, line)
|
||||
|
||||
case L.buf[pos]
|
||||
of CR:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue