cleanup compiler/prettybase to not use redudant global variables
This commit is contained in:
parent
545b1582cd
commit
c640bd2d1b
5 changed files with 36 additions and 86 deletions
|
|
@ -714,11 +714,6 @@ proc handleCRLF(L: var TLexer, pos: int): int =
|
|||
if col > MaxLineLength:
|
||||
lexMessagePos(L, hintLineTooLong, pos)
|
||||
|
||||
if optEmbedOrigSrc in L.config.globalOptions:
|
||||
let lineStart = cast[ByteAddress](L.buf) + L.lineStart
|
||||
let line = newString(cast[cstring](lineStart), col)
|
||||
addSourceLine(L.config, L.fileIdx, line)
|
||||
|
||||
case L.buf[pos]
|
||||
of CR:
|
||||
registerLine()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue