diff options
author | Adam NAILI | 2018-06-03 13:37:00 +0200 |
---|---|---|
committer | Adam NAILI | 2018-06-03 13:37:00 +0200 |
commit | 628b18fb15ee3d6633c73d404f109d01f0a7ece2 (patch) | |
tree | eff988eb57bfaa626eceee068461f3075b2b0cd7 /src/symbol_table.c | |
parent | 5ad57d142bcf05886c750018b067865fc97e13fe (diff) | |
download | tpc-compiler-628b18fb15ee3d6633c73d404f109d01f0a7ece2.tar.gz |
.bss section management (globals)
Diffstat (limited to 'src/symbol_table.c')
-rw-r--r-- | src/symbol_table.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/symbol_table.c b/src/symbol_table.c index 8e6db97..6dc3e64 100644 --- a/src/symbol_table.c +++ b/src/symbol_table.c | |||
@@ -47,7 +47,6 @@ int glo_lookup(const char name[]) { | |||
47 | 47 | ||
48 | int glo_get_addr(const char name[]) { | 48 | int glo_get_addr(const char name[]) { |
49 | int count; | 49 | int count; |
50 | |||
51 | for (count = 0; count < glo_symbol_table.size; count++) { | 50 | for (count = 0; count < glo_symbol_table.size; count++) { |
52 | if (!strcmp(glo_symbol_table.entries[count].name, name)) { | 51 | if (!strcmp(glo_symbol_table.entries[count].name, name)) { |
53 | return glo_symbol_table.entries[count].addr; | 52 | return glo_symbol_table.entries[count].addr; |