tests repaired; serious typo in the allocator fixed; fixes #32
This commit is contained in:
parent
569c1ce5ec
commit
246b8d18a1
9 changed files with 380 additions and 324 deletions
|
|
@ -6,7 +6,7 @@ proc walkDirTree(root: string) =
|
|||
for k, f in walkDir(root):
|
||||
case k
|
||||
of pcFile, pcLinkToFile: echo(f)
|
||||
of pcDirectory: walkDirTree(f)
|
||||
of pcLinkToDirectory: nil
|
||||
of pcDir: walkDirTree(f)
|
||||
of pcLinkToDir: nil
|
||||
|
||||
walkDirTree(".")
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import os
|
|||
proc rec_dir(dir: string): seq[string] =
|
||||
result = @[]
|
||||
for kind, path in walk_dir(dir):
|
||||
if kind == pcDirectory:
|
||||
if kind == pcDir:
|
||||
add(result, rec_dir(path))
|
||||
else:
|
||||
add(result, path)
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ proc main(filter: string) =
|
|||
for filename in walkFiles(filter):
|
||||
writeln(stdout, filename)
|
||||
|
||||
for key, val in iterOverEnvironment():
|
||||
for key, val in envPairs():
|
||||
writeln(stdout, key & '=' & val)
|
||||
|
||||
main("*.nim")
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ discard """
|
|||
file: "txmlgen.nim"
|
||||
output: "<h1><a href=\"http://force7.de/nimrod\">Nimrod</a></h1>"
|
||||
"""
|
||||
import xmlgen
|
||||
import htmlgen
|
||||
|
||||
var nim = "Nimrod"
|
||||
echo h1(a(href="http://force7.de/nimrod", nim))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue