From 7e14390441662a73743badc2d8a2eaa9e815849e Mon Sep 17 00:00:00 2001 From: Maix0 Date: Sat, 25 May 2024 20:59:06 +0200 Subject: [PATCH] Update --- ast/include/ast/ast.h | 9 ++------- ast/src/build_ast.c | 13 +++++++++++++ stdme/include/me/types.h | 6 +++++- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/ast/include/ast/ast.h b/ast/include/ast/ast.h index 6613f89f..0e8884ed 100644 --- a/ast/include/ast/ast.h +++ b/ast/include/ast/ast.h @@ -6,21 +6,16 @@ /* By: maiboyer +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/05/25 19:30:30 by maiboyer #+# #+# */ -/* Updated: 2024/05/25 20:28:33 by maiboyer ### ########.fr */ +/* Updated: 2024/05/25 20:42:26 by maiboyer ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef AST_H #define AST_H +#include "me/types.h" #include "ast/forward.h" -#ifndef TYPES_H -typedef unsigned int t_usize; -typedef int t_isize; -typedef char *t_str; -#endif - /// @brief Node types enumeration /// @details This enumeration is used to identify the type of a node typedef enum e_ast_type diff --git a/ast/src/build_ast.c b/ast/src/build_ast.c index e69de29b..b2a152c4 100644 --- a/ast/src/build_ast.c +++ b/ast/src/build_ast.c @@ -0,0 +1,13 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* build_ast.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: maiboyer +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2024/05/25 20:41:33 by maiboyer #+# #+# */ +/* Updated: 2024/05/25 20:41:48 by maiboyer ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "ast/ast.h" diff --git a/stdme/include/me/types.h b/stdme/include/me/types.h index fdf69688..f4e8ec33 100644 --- a/stdme/include/me/types.h +++ b/stdme/include/me/types.h @@ -6,7 +6,7 @@ /* By: maiboyer +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/03 14:31:12 by maiboyer #+# #+# */ -/* Updated: 2024/05/24 14:45:04 by maiboyer ### ########.fr */ +/* Updated: 2024/05/25 20:43:05 by maiboyer ### ########.fr */ /* */ /* ************************************************************************** */ @@ -22,6 +22,10 @@ #include #include +#ifndef _Nullable +#define _Nullable +#endif + /// @brief A string, null terminated typedef char *t_str; /// @brief A constant string, null terminated