summaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parser.h b/src/parser.h
index e9a1cb7..d44a4df 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -18,6 +18,7 @@
#define PARSER_H
#include "lexer.h"
+#include "string_view.h"
typedef struct parser_t {
lexer_t *lexer;
@@ -32,7 +33,7 @@ typedef struct ast_return_stmt_t {
} ast_return_stmt_t;
typedef struct ast_function_t {
- char *name;
+ string_view_t name;
type_t return_type;
ast_return_stmt_t body;
} ast_function_t;