Convert codebase to C89 compatibility and update test scripts

This commit is contained in:
2026-04-29 10:20:30 +02:00
parent 189c21667b
commit 146aa4d9d1
14 changed files with 287 additions and 192 deletions
+11 -11
View File
@@ -4,15 +4,15 @@
#ifndef AST_H
#define AST_H
#include <stdbool.h>
#include "bool.h"
#include <stddef.h>
typedef struct {
/// @brief The name of the module being imported.
char* module_name;
/* @brief The name of the module being imported. */
char* module_name;
/// @brief Whether the import is public or not.
bool is_public;
/* @brief Whether the import is public or not. */
bool is_public;
} ImportDeclaration;
/**
@@ -20,14 +20,14 @@ typedef struct {
* Every file matches an entire Module.
*/
typedef struct {
/// @brief The name of the module.
char* name;
/* @brief The name of the module. */
char* name;
/// @brief The list of imports in the module.
ImportDeclaration* imports;
/* @brief The list of imports in the module. */
ImportDeclaration* imports;
/// @brief The number of imports in the module.
size_t import_count;
/* @brief The number of imports in the module. */
size_t import_count;
} Module;
#endif