From 37f00e664454e98196fc7058d1de8e0f6dae99f5 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Wed, 10 Apr 2019 14:20:24 +0300 Subject: [PATCH] Export the label symbol table --- src/cc65/symtab.c | 6 ++++++ src/cc65/symtab.h | 3 +++ 2 files changed, 9 insertions(+) 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 */ -- 2.39.5