Hi! On Fri, Aug 19, 2011 at 05:13:25PM +0300, thefox xofeht wrote: > > I've now reached a milestone, where things are still somewhat incomplete, but > > the new code is useful enough to be shown to and tested by a wider audience. > > Seems pretty nice! > > I didn't dig very deeply into it yet, but where did > cc65_lineinfo_byaddr() go? How can I get a line id from an address? This information is now kept in something called a "Span", which is a part of a segment with a start offset and a size. This was necessary, because there are now other items that have spans attached (like scopes). But you're right, I forgot to add a function to retrieve lines for a span. The information is already there internally, so 've already added cc65_line_byspan and cc65_scope_byspan. You will now need to call cc65_span_byaddr, and for spans where line_count is greater than zero, call cc65_line_byspan. Ignoring line_count does no harm but checking it saves you an API call and an allocation. I will build a new snapshot but can also offer to send the changed files by private mail. Thanks for the feedback! Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Fri Aug 19 16:51:53 2011
This archive was generated by hypermail 2.1.8 : 2011-08-19 16:51:56 CEST