bug concerning constant evaluation fixed
This commit is contained in:
parent
3710309d39
commit
196ef92c86
14 changed files with 296 additions and 245 deletions
|
|
@ -41,10 +41,10 @@ proc writeProfile() {.noconv.} =
|
|||
var i = 0
|
||||
var f: TFile
|
||||
var j = 1
|
||||
while openFile(f, filename & $j & ".txt"):
|
||||
closeFile(f)
|
||||
while open(f, filename & $j & ".txt"):
|
||||
close(f)
|
||||
inc(j)
|
||||
if openFile(f, filename & $j & ".txt", fmWrite):
|
||||
if open(f, filename & $j & ".txt", fmWrite):
|
||||
var N = 0
|
||||
# we have to compute the actual length of the array:
|
||||
while profileData[N].procname != nil: inc(N)
|
||||
|
|
@ -56,6 +56,6 @@ proc writeProfile() {.noconv.} =
|
|||
write(f, ": ")
|
||||
writeln(f, profileData[i].total)
|
||||
inc(i)
|
||||
closeFile(f)
|
||||
close(f)
|
||||
|
||||
addQuitProc(writeProfile)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue