Added cc65_symbol_byscope.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5197 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-08-17 19:12:59 +00:00
parent 0ec9ebbfaf
commit 0d8e8a9533
2 changed files with 74 additions and 8 deletions

View File

@@ -443,6 +443,14 @@ const cc65_symbolinfo* cc65_symbol_byname (cc65_dbginfo handle, const char* name
* no symbol with this name was found.
*/
const cc65_symbolinfo* cc65_symbol_byscope (cc65_dbginfo handle,
unsigned scope_id);
/* Return a list of symbols in the given scope. This includes cheap local
* symbols, but not symbols in subscopes. The function returns NULL if the
* scope id is invalid (no such scope) and otherwise a - possibly empty -
* symbol list.
*/
const cc65_symbolinfo* cc65_symbol_inrange (cc65_dbginfo handle,
cc65_addr start, cc65_addr end);
/* Return a list of labels in the given range. end is inclusive. The function