Fix errors in the lexer module

This commit is contained in:
2025-08-16 15:28:07 +02:00
parent f880e3d2d7
commit 569139d44a
5 changed files with 189 additions and 276 deletions

View File

@@ -239,8 +239,10 @@ namespace elna::gcc
{
visit(static_cast<boot::unit *>(program));
tree declaration_type = build_function_type_list(integer_type_node, elna_int_type_node,
build_global_pointer_type(build_global_pointer_type(elna_char_type_node)), NULL_TREE);
tree declaration_type = build_function_type_list(elna_int_type_node,
elna_int_type_node,
build_global_pointer_type(build_global_pointer_type(elna_char_type_node)),
NULL_TREE);
tree fndecl = build_fn_decl("main", declaration_type);
tree resdecl = build_decl(UNKNOWN_LOCATION, RESULT_DECL, NULL_TREE, integer_type_node);