diff options
| author | Carson Fleming <cflems@cflems.net> | 2026-07-26 11:09:14 -0700 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2026-07-26 11:09:14 -0700 |
| commit | 6a169de321b131e73b86967a1a8564365217275a (patch) | |
| tree | a407e682af226a9d77acbaef6cb8bf579f2a3ddf /scope.h | |
| parent | 0cabbd2a0853c332c82af621b8716643741d758a (diff) | |
| download | ccc-6a169de321b131e73b86967a1a8564365217275a.tar.gz | |
clean up types
Diffstat (limited to 'scope.h')
| -rw-r--r-- | scope.h | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -1,6 +1,8 @@ #ifndef SCOPE_H #define SCOPE_H +#include "ccc.h" + struct storage_location { enum { STO_REG, @@ -16,7 +18,7 @@ struct storage_location { const struct reg* reg; const char* label; long long bp_offset; - unsigned long long value; + integral_t value; struct fn_decl_node* decl; }; }; @@ -37,7 +39,7 @@ struct type_def { struct type_key key; bool is_signed; bool is_floating; - unsigned long long sz; + integral_t sz; }; struct var_def { @@ -49,15 +51,15 @@ struct var_def { struct scope { struct type_def** types; - unsigned long long type_sz; - unsigned long long type_cap; + integral_t type_sz; + integral_t type_cap; struct var_def** vars; - unsigned long long var_sz; - unsigned long long var_cap; + integral_t var_sz; + integral_t var_cap; struct scope* next_out; - unsigned long long bp_offset; + integral_t bp_offset; }; struct ast; |
