'nimrod pretty' usable
This commit is contained in:
parent
805959378d
commit
731c6f9083
5 changed files with 55 additions and 63 deletions
|
|
@ -45,14 +45,10 @@ proc addStmt(w: PRodWriter, n: PNode)
|
|||
proc writeRod(w: PRodWriter)
|
||||
|
||||
proc getDefines(): string =
|
||||
var it: TTabIter
|
||||
var s = InitTabIter(it, gSymbols)
|
||||
result = ""
|
||||
while s != nil:
|
||||
if s.position == 1:
|
||||
if result.len != 0: add(result, " ")
|
||||
add(result, s.name.s)
|
||||
s = nextIter(it, gSymbols)
|
||||
for d in definedSymbolNames():
|
||||
if result.len != 0: add(result, " ")
|
||||
add(result, d)
|
||||
|
||||
proc fileIdx(w: PRodWriter, filename: string): int =
|
||||
for i in countup(0, high(w.files)):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue