aboutsummaryrefslogtreecommitdiff
path: root/include/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/parser.h')
-rw-r--r--include/parser.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/parser.h b/include/parser.h
index bc205f0..4427cc8 100644
--- a/include/parser.h
+++ b/include/parser.h
@@ -2,7 +2,7 @@
#define AMALGAM_PARSER_H
#include "std/buffer_view.h"
-#include "std/scoped_allocator.h"
+#include "std/arena_allocator.h"
#include "std/thread.h"
#include "bytecode/bytecode.h"
#include "tokenizer.h"
@@ -25,7 +25,7 @@ typedef enum {
struct ParserThreadData {
amal_thread thread;
ParserThreadStatus status;
- ScopedAllocator allocator;
+ ArenaAllocator allocator;
};
typedef enum {
@@ -41,7 +41,7 @@ struct Parser {
Scope *current_scope;
bool has_func_parent;
/* Borrowed from @compiler for faster access to allocator. The allocator is thread-specific */
- ScopedAllocator *allocator;
+ ArenaAllocator *allocator;
amal_compiler *compiler;
Ssa *ssa;
bool started;
@@ -56,7 +56,7 @@ void parser_thread_data_deinit(ParserThreadData *self);
CHECK_RESULT int parser_thread_data_start(ParserThreadData *self, AmalThreadCallbackFunc callback_func, void *userdata);
CHECK_RESULT int parser_thread_data_join(ParserThreadData *self, void **result);
-CHECK_RESULT int parser_init(Parser *self, amal_compiler *compiler, ScopedAllocator *allocator);
+CHECK_RESULT int parser_init(Parser *self, amal_compiler *compiler, ArenaAllocator *allocator);
/*
@buffer_name will be the path to the file when using parser_parse_file and when parsing a buffer