From 36e25a6849f4d06ab6919e60664e6c04b0a63aa7 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Fri, 16 Nov 2012 01:48:12 +0200 Subject: CaaS in-memory caching removed some redundant filepath params and variables and switched to canonical paths in most places --- compiler/msgs.nim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'compiler/msgs.nim') 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 -- cgit 1.4.1-2-gfad0