summaryrefslogtreecommitdiff
path: root/scope.h
diff options
context:
space:
mode:
Diffstat (limited to 'scope.h')
-rw-r--r--scope.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/scope.h b/scope.h
index 4d6cc7f..2dfa110 100644
--- a/scope.h
+++ b/scope.h
@@ -1,5 +1,5 @@
-#ifndef VARS_H
-#define VARS_H
+#ifndef SCOPE_H
+#define SCOPE_H
struct storage_location {
enum {
@@ -21,6 +21,8 @@ struct storage_location {
struct type_def {
const char* name;
unsigned long long sz;
+ bool is_primitive;
+ bool is_signed;
};
struct var_def {
@@ -44,6 +46,7 @@ struct scope {
void scope_push(struct scope** p_scope);
void scope_pop(struct scope** p_scope);
+void scope_destroy(struct scope* scope);
void scope_install_default_types(struct scope* scope);
bool scope_get_type(
const struct scope* scope,