diff options
author | Araq <rumpf_a@web.de> | 2011-11-26 10:49:48 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-11-26 10:49:48 +0100 |
commit | 840979b45caea47c97c3eaac145841464ab5e5b1 (patch) | |
tree | e362829bad55797efc0542993a8303b412022560 /compiler/msgs.nim | |
parent | f7f0c90ffe11952472ef6246c90c32d0e65c6b5f (diff) | |
parent | c617479c6848e07f25f92fd33b3397d65683812e (diff) | |
download | Nim-840979b45caea47c97c3eaac145841464ab5e5b1.tar.gz |
Merge branch 'master' of github.com:Araq/Nimrod
Diffstat (limited to 'compiler/msgs.nim')
-rwxr-xr-x | compiler/msgs.nim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/msgs.nim b/compiler/msgs.nim index 63204459a..a1fd73c88 100755 --- a/compiler/msgs.nim +++ b/compiler/msgs.nim @@ -377,7 +377,7 @@ const warnMax* = pred(hintSuccess) hintMin* = hintSuccess hintMax* = high(TMsgKind) - + type TNoteKind* = range[warnMin..hintMax] # "notes" are warnings or hints TNoteKinds* = set[TNoteKind] @@ -392,6 +392,7 @@ type ERecoverableError* = object of EInvalidValue +proc newLineInfo*(filename: string, line, col: int): TLineInfo proc raiseRecoverableError*() {.noinline, noreturn.} = raise newException(ERecoverableError, "") @@ -401,7 +402,7 @@ var gHintCounter*: int = 0 gWarnCounter*: int = 0 gErrorMax*: int = 1 # stop after gErrorMax errors - + # this format is understood by many text editors: it is the same that # Borland and Freepascal use const @@ -420,6 +421,7 @@ proc UnknownLineInfo*(): TLineInfo = var filenames: seq[tuple[filename: string, fullpath: string]] = @[] msgContext: seq[TLineInfo] = @[] + gCmdLineInfo* = newLineInfo("command line", -1, -1) proc pushInfoContext*(info: TLineInfo) = msgContext.add(info) |