[caas] first version that actually works (still has a lot of logical memory leaks on recompilation)

This commit is contained in:
Zahary Karadjov 2012-11-20 16:48:32 +02:00
commit f9bd8cc985
9 changed files with 259 additions and 62 deletions

View file

@ -795,7 +795,7 @@ proc GetCRC*(fileIdx: int32): TCrc32 =
gMods[fileIdx].crc = result
template growCache*(cache, pos) =
if cache.len <= fileIdx: cache.setLen(pos+1)
if cache.len <= pos: cache.setLen(pos+1)
proc checkDep(fileIdx: int32): TReasonForRecompile =
assert fileIdx != InvalidFileIDX