Skip to content

Commit d87b07d

Browse files
committed
Provide access to the symbol table.
1 parent ab2e2fa commit d87b07d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

symbols.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ parse_symbols_mode (const char *string)
4747
return 0;
4848
}
4949

50-
static struct symbol symbols[MAX_SYMBOLS];
51-
static int num_symbols = 0;
50+
struct symbol symbols[MAX_SYMBOLS];
51+
int num_symbols = 0;
5252

5353
typedef enum {
5454
SORT_NONE,

symbols.h

+2
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,7 @@ extern void add_symbol (const char *name, word_t value, int flags);
5050
extern const struct symbol *get_symbol_by_name (const char *name);
5151
extern const struct symbol *get_symbol_by_value (word_t value, int hint);
5252
extern word_t get_symbol_value (const char *name);
53+
extern struct symbol symbols[];
54+
extern int num_symbols;
5355

5456
#endif

0 commit comments

Comments
 (0)