aboutsummaryrefslogtreecommitdiff
path: root/src/as_analyzer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/as_analyzer.h')
-rw-r--r--src/as_analyzer.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/as_analyzer.h b/src/as_analyzer.h
index b59fe3c..58a9203 100644
--- a/src/as_analyzer.h
+++ b/src/as_analyzer.h
@@ -8,16 +8,18 @@ struct sym_table_entry {
const char * name;
size_t offset;
};
+typedef struct sym_table_entry sym_table_entry;
struct sym_table {
int size;
int cap;
struct sym_table_entry *buf;
};
+typedef struct sym_table sym_table;
-struct sym_table new_sym_table(struct allocator * alct);
-void sym_table_add(struct allocator * alct, struct sym_table* tbl, const char* name, int pos);
+sym_table new_sym_table(allocator* alct);
+void sym_table_add(allocator* alct, sym_table* tbl, const char* name, int pos);
-struct sym_table analyze_prog(struct allocator * alct, struct prog * prog);
+sym_table analyze_prog(allocator* alct, prog* prog);
#endif // FVM_AS_ANALYZER_H_