Convert codebase to C89 compatibility and update test scripts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user