]> git.sur5r.net Git - cc65/blobdiff - src/ca65/error.c
Move all attributes and other information that is attached to a token into a
[cc65] / src / ca65 / error.c
index a0827de6136c28acc3b5d8f8fcd53d07897455a1..9c4ce1ede378a03a847fb28d52bf4e53373158c9 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2008 Ullrich von Bassewitz                                       */
-/*               Roemerstrasse 52                                            */
-/*               D-70794 Filderstadt                                         */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 1998-2011, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -94,7 +94,7 @@ void Warning (unsigned Level, const char* Format, ...)
 {
     va_list ap;
     va_start (ap, Format);
-    WarningMsg (&CurPos, Level, Format, ap);
+    WarningMsg (&CurTok.Pos, Level, Format, ap);
     va_end (ap);
 }
 
@@ -140,7 +140,7 @@ void Error (const char* Format, ...)
 {
     va_list ap;
     va_start (ap, Format);
-    ErrorMsg (&CurPos, Format, ap);
+    ErrorMsg (&CurTok.Pos, Format, ap);
     va_end (ap);
 }
 
@@ -162,7 +162,7 @@ void ErrorSkip (const char* Format, ...)
 {
     va_list ap;
     va_start (ap, Format);
-    ErrorMsg (&CurPos, Format, ap);
+    ErrorMsg (&CurTok.Pos, Format, ap);
     va_end (ap);
 
     SkipUntilSep ();