diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-09-05 17:59:44 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-09-05 18:03:17 -0400 |
commit | c6d13abfc122c15ecc182b1fc5645628e8eb4d18 (patch) | |
tree | 3cc20de947e6cea8d725d9efd0dd6aeb1b2e95eb /scope.c | |
parent | d8a7a9b0ed653ec8061896efc0c8e11b5df6b166 (diff) |
Add function argument types
Diffstat (limited to 'scope.c')
-rw-r--r-- | scope.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -146,8 +146,13 @@ scope *s; for (i = 0; i < HASH_SIZE; i++) { for( tmp=s->table[i]; tmp; tmp = tmp->next) { - fprintf(stderr, "\t%s:%s\n", tmp->name, + fprintf(stderr, "\t%s:%s\t", tmp->name, pretty_type(tmp->var_type)); + if (tmp->func_info && tmp->func_info->argv) { + for (int i = 0; i < tmp->func_info->argc; i++) + fprintf(stderr, " %s ", pretty_type(tmp->func_info->argv[i])); + } + fprintf(stderr, "\n"); } } } |