aboutsummaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/scope.c b/scope.c
index 6706765..00e2417 100644
--- a/scope.c
+++ b/scope.c
@@ -1,10 +1,12 @@
+#include "scope.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
-#include "node.h"
-#include "scope.h"
+#include "pc.h"
+
scope* mkscope()
{
@@ -138,9 +140,14 @@ scope *s;
{
int i;
node * tmp;
+
+ fprintf(stderr, "\n\nSCOPE\n"
+ "==========================================================\n");
+
for (i = 0; i < HASH_SIZE; i++) {
for( tmp=s->table[i]; tmp; tmp = tmp->next) {
- fprintf(stderr, "\t%s\n", tmp->name);
+ fprintf(stderr, "\t%s:%s\n", tmp->name,
+ pretty_type(tmp->var_type));
}
}
}