aboutsummaryrefslogtreecommitdiff
path: root/src/symbol_table.c
diff options
context:
space:
mode:
authorAdam NAILI2018-06-03 13:37:00 +0200
committerAdam NAILI2018-06-03 13:37:00 +0200
commit628b18fb15ee3d6633c73d404f109d01f0a7ece2 (patch)
treeeff988eb57bfaa626eceee068461f3075b2b0cd7 /src/symbol_table.c
parent5ad57d142bcf05886c750018b067865fc97e13fe (diff)
downloadtpc-compiler-628b18fb15ee3d6633c73d404f109d01f0a7ece2.tar.gz
.bss section management (globals)
Diffstat (limited to 'src/symbol_table.c')
-rw-r--r--src/symbol_table.c1
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
48int glo_get_addr(const char name[]) { 48int 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;