1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-26 08:32:00 +00:00

Output all positions in a file for unresolved externals.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5221 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2011-08-19 10:40:11 +00:00
parent c71d236da6
commit 5f0e6dd7e9

View File

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