diff options
author | Araq <rumpf_a@web.de> | 2012-02-29 00:04:34 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-02-29 00:04:34 +0100 |
commit | 34d3c042af7f70ce579c5ea76c8ca22298da368c (patch) | |
tree | 96e3626953ce9c6870e39d2a19751bf14c94325c /compiler | |
parent | f5eddcf9b663cd5ca2aef3cdf545b03388cba646 (diff) | |
download | Nim-34d3c042af7f70ce579c5ea76c8ca22298da368c.tar.gz |
c2nim, pas2nim compile again
Diffstat (limited to 'compiler')
-rwxr-xr-x | compiler/c2nim/clex.nim | 4 | ||||
-rwxr-xr-x | compiler/pas2nim/paslex.nim | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/compiler/c2nim/clex.nim b/compiler/c2nim/clex.nim index 1894fa99f..db8527aa0 100755 --- a/compiler/c2nim/clex.nim +++ b/compiler/c2nim/clex.nim @@ -130,11 +130,11 @@ proc getLineInfo*(L: TLexer): TLineInfo = result = newLineInfo(L.fileIdx, L.linenumber, getColNumber(L, L.bufpos)) proc lexMessage*(L: TLexer, msg: TMsgKind, arg = "") = - msgs.GenericMessage(getLineInfo(L), msg, arg) + msgs.GlobalError(getLineInfo(L), msg, arg) proc lexMessagePos(L: var TLexer, msg: TMsgKind, pos: int, arg = "") = var info = newLineInfo(L.fileIdx, L.linenumber, pos - L.lineStart) - msgs.GenericMessage(info, msg, arg) + msgs.GlobalError(info, msg, arg) proc TokKindToStr*(k: TTokKind): string = case k diff --git a/compiler/pas2nim/paslex.nim b/compiler/pas2nim/paslex.nim index df28a15ad..598a27158 100755 --- a/compiler/pas2nim/paslex.nim +++ b/compiler/pas2nim/paslex.nim @@ -109,11 +109,11 @@ proc getLineInfo*(L: TLexer): TLineInfo = result = newLineInfo(L.filename, L.linenumber, getColNumber(L, L.bufpos)) proc lexMessage*(L: TLexer, msg: TMsgKind, arg = "") = - msgs.GenericMessage(getLineInfo(L), msg, arg) + msgs.GlobalError(getLineInfo(L), msg, arg) proc lexMessagePos(L: var TLexer, msg: TMsgKind, pos: int, arg = "") = var info = newLineInfo(L.filename, L.linenumber, pos - L.lineStart) - msgs.GenericMessage(info, msg, arg) + msgs.GlobalError(info, msg, arg) proc TokKindToStr*(k: TTokKind): string = case k |