]> Shamusworld >> Repos - rmac/blobdiff - error.c
Roll back TOKENPTR changes and most of the .u32 changes weren't needed.
[rmac] / error.c
diff --git a/error.c b/error.c
index 6da93e2079a279a2c03f5b3a0e6a945c139cbea6..75e91490d3d44df485fed4cd180befc545055443 100644 (file)
--- a/error.c
+++ b/error.c
@@ -19,11 +19,19 @@ static long unused;                         // For supressing 'write' warnings
 
 //
 // Report error if not at EOL
+// N.B.: Since this should *never* happen, we can feel free to add whatever
+//       diagnostics that will help in tracking down a problem to this function.
 //
 int at_eol(void)
 {
        if (*tok != EOL)
+       {
                error("syntax error. expected EOL, found $%X ('%c')", *tok, *tok);
+               printf("Token = ");
+               DumpToken(*tok);
+               printf("\n");
+               DumpTokenBuffer();
+       }
 
        return 0;
 }