From: Lauri Kasanen Date: Wed, 10 Apr 2019 11:20:24 +0000 (+0300) Subject: Export the label symbol table X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=37f00e664454e98196fc7058d1de8e0f6dae99f5;p=cc65 Export the label symbol table --- diff --git a/src/cc65/symtab.c b/src/cc65/symtab.c index 56196ea5a..7adafc413 100644 --- a/src/cc65/symtab.c +++ b/src/cc65/symtab.c @@ -997,6 +997,12 @@ SymTable* GetGlobalSymTab (void) return SymTab0; } +SymTable* GetLabelSymTab (void) +/* Return the global symbol table */ +{ + return LabelTab; +} + int SymIsLocal (SymEntry* Sym) diff --git a/src/cc65/symtab.h b/src/cc65/symtab.h index 0856740cc..cd736ec1e 100644 --- a/src/cc65/symtab.h +++ b/src/cc65/symtab.h @@ -178,6 +178,9 @@ SymTable* GetSymTab (void); SymTable* GetGlobalSymTab (void); /* Return the global symbol table */ +SymTable* GetLabelSymTab (void); +/* Return the label symbol table */ + int SymIsLocal (SymEntry* Sym); /* Return true if the symbol is defined in the highest lexical level */