summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'compiler')
-rwxr-xr-xcompiler/c2nim/clex.nim4
-rwxr-xr-xcompiler/pas2nim/paslex.nim4
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