diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-07-27 21:08:22 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-07-27 21:08:22 -0400 |
commit | 60507214c098beaf3ae01a202e564bfe2f7c8364 (patch) | |
tree | f189004a59cf1a19a743469a92f996f7615cdc02 /scope.h | |
parent | d9ba5ec2f86dd69eae4edac586a889fccd8d31b1 (diff) |
Add basic scoping
Diffstat (limited to 'scope.h')
-rw-r--r-- | scope.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -5,16 +5,16 @@ typedef struct hash { node* table[HASH_SIZE]; - struct hash *prev, *next; - char function_boundry; + struct hash *prev; + node* ret_var; } scope; scope* mkscope(); void free_scope(scope*); /*stack routines*/ -scope* pop_scope(scope*); -scope* push_scope(scope*); +void pop_scope(scope**); +void push_scope(scope**); /*helpers*/ node* scope_insert(scope*, char*); |