aboutsummaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-10-02 15:31:12 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-10-02 15:35:11 -0400
commite398b0beb33047b22a73d2d6a4302996dcdda67a (patch)
treeb3344104febc78ad70806fcb11af5870b98fa49d /scope.c
parent59f7f4ccb71eb489690ada8821977455ab377699 (diff)
Fix function recursion
Function were blocked from calling themselves because they could not look outside their scope. Functions are now duplicated to their scope to allow for recursion.
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/scope.c b/scope.c
index ef9e4f5..d7d50fc 100644
--- a/scope.c
+++ b/scope.c
@@ -105,9 +105,6 @@ char *name;
int hash;
node *tmp;
- if (root->ret_var && !strcmp(root->ret_var->name, name))
- return root->ret_var;
-
hash = hashpjw(name);
tmp = root->table[hash];
return list_search(tmp, name);