summary refs log tree commit diff stats
path: root/compiler/msgs.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2012-11-16 01:48:12 +0200
committerZahary Karadjov <zahary@gmail.com>2012-11-28 01:15:13 +0200
commit36e25a6849f4d06ab6919e60664e6c04b0a63aa7 (patch)
tree62431014f96230c9ee899e688136622d43c07c49 /compiler/msgs.nim
parent091c1b30756a15c76ca09c0d95cfbb946aa9ea13 (diff)
downloadNim-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-xcompiler/msgs.nim6
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