This commit is contained in:
Araq 2015-02-18 13:22:06 +01:00
commit b7f11b8b0a
7 changed files with 113 additions and 20 deletions

View file

@ -1298,6 +1298,12 @@ proc initIdTable(x: var TIdTable) =
x.counter = 0
newSeq(x.data, StartSize)
proc resetIdTable*(x: var TIdTable) =
x.counter = 0
# clear and set to old initial size:
setLen(x.data, 0)
setLen(x.data, StartSize)
proc initObjectSet(x: var TObjectSet) =
x.counter = 0
newSeq(x.data, StartSize)