aboutsummaryrefslogtreecommitdiff
path: root/src/symbol_table.c
diff options
context:
space:
mode:
authorAdam NAILI2018-06-04 23:26:01 +0200
committerAdam NAILI2018-06-04 23:26:01 +0200
commitfb9befa3d883250d67b6cec492018c78f89ef2e8 (patch)
treede82edd1e6129389e5fe70331685eb617fb982f7 /src/symbol_table.c
parentb8f7e7b6843c2bff778ce3c74e355a03e7565499 (diff)
downloadtpc-compiler-fb9befa3d883250d67b6cec492018c78f89ef2e8.tar.gz
Modifying print function to handle char and int automatically, implementing reade and readc, handling two variables with the same name in different scope => local variable has priority on the global one
Diffstat (limited to 'src/symbol_table.c')
-rw-r--r--src/symbol_table.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/symbol_table.c b/src/symbol_table.c
index d03f858..60f2cd6 100644
--- a/src/symbol_table.c
+++ b/src/symbol_table.c
@@ -172,8 +172,6 @@ int loc_get_addr(const char name[]) {
172 return loc_symbol_table.entries[count].addr; 172 return loc_symbol_table.entries[count].addr;
173 } 173 }
174 } 174 }
175 fprintf(stderr, "No definition of the variable %s near line %d\n", name,
176 lineno);
177 return -1; 175 return -1;
178} 176}
179void loc_display_table() { 177void loc_display_table() {