]> git.sur5r.net Git - cc65/commitdiff
Output all positions in a file for unresolved externals.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 19 Aug 2011 10:40:11 +0000 (10:40 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 19 Aug 2011 10:40:11 +0000 (10:40 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5221 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ld65/exports.c

index 405bf5407c03cff2535151ada249eefa5d417158..34f4f53e7718f82be1d6a83896f882e3e2390cc4 100644 (file)
@@ -749,12 +749,15 @@ static void PrintUnresolved (ExpCheckFunc F, void* Data)
                     "Unresolved external `%s' referenced in:\n",
                     GetString (E->Name));
            while (Imp) {
-                const LineInfo* LI = GetImportPos (Imp);
-               fprintf (stderr,
+                unsigned J;
+                for (J = 0; J < CollCount (&Imp->RefLines); ++J) {
+                    const LineInfo* LI = CollConstAt (&Imp->RefLines, J);
+                    fprintf (stderr,
                          "  %s(%lu)\n",
                          GetSourceName (LI),
                          GetSourceLine (LI));
-               Imp = Imp->Next;
+                }
+               Imp = Imp->Next;
            }
        }
     }