Add the number of attached lines and scopes to a span.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5229 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-08-19 14:31:03 +00:00
parent bc0f3fd99b
commit 7fa197337b
2 changed files with 13 additions and 2 deletions

View File

@@ -1481,6 +1481,16 @@ static void CopySpanInfo (cc65_spandata* D, const SpanInfo* S)
D->span_start = S->Start;
D->span_end = S->End;
D->segment_id = S->Seg.Info->Id;
if (S->ScopeInfoList) {
D->scope_count = CollCount (S->ScopeInfoList);
} else {
D->scope_count = 0;
}
if (S->LineInfoList) {
D->line_count = CollCount (S->LineInfoList);
} else {
D->line_count = 0;
}
}