diff options
author | Zahary Karadjov <zahary@gmail.com> | 2012-11-16 01:48:12 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2012-11-28 01:15:13 +0200 |
commit | 36e25a6849f4d06ab6919e60664e6c04b0a63aa7 (patch) | |
tree | 62431014f96230c9ee899e688136622d43c07c49 /compiler/msgs.nim | |
parent | 091c1b30756a15c76ca09c0d95cfbb946aa9ea13 (diff) | |
download | Nim-36e25a6849f4d06ab6919e60664e6c04b0a63aa7.tar.gz |
CaaS in-memory caching
removed some redundant filepath params and variables and switched to canonical paths in most places
Diffstat (limited to 'compiler/msgs.nim')
-rwxr-xr-x | compiler/msgs.nim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim index 0f795c07d..030a14e4c 100755 --- a/compiler/msgs.nim +++ b/compiler/msgs.nim @@ -416,9 +416,13 @@ type ERecoverableError* = object of EInvalidValue ESuggestDone* = object of EBase +const + InvalidFileIDX* = int32(-1) + var filenameToIndexTbl = initTable[string, int32]() - fileInfos: seq[TFileInfo] = @[] + fileInfos*: seq[TFileInfo] = @[] + SystemFileIdx*: int32 proc newFileInfo(fullPath, projPath: string): TFileInfo = result.fullPath = fullPath |